@Test(expected = NonSquareMatrixException.class)
public void testSyrNonSquareMatrix() {

    double alpha = 3.0;
    DenseMatrix a = new DenseMatrix(new double[][] {{10.0, 11.0, 12.0}, {0.0, 1.0, 2.0}}, 2);
    Vector x = new DenseVector(new double[] {1.0, 2.0});
    new Blas().syr(alpha, x, a);
}