@Test
public void testSyrDenseDense() {

    double alpha = 2.0;
    DenseVector x = new DenseVector(new double[] {1.0, 2.0});
    DenseMatrix a = new DenseMatrix(new double[][] {{10.0, 20.0}, {20.0, 10.0}});
    // alpha * x * x^T + A
    DenseMatrix exp = (DenseMatrix)new DenseMatrix(new double[][] {
        {1.0, 2.0},
        {2.0, 4.0}}).times(alpha).plus(a);
    Blas.syr(alpha, x, a);
    Assert.assertEquals(exp, a);
}