@Test
public void testGemvSparseDenseDense() {

    // y := alpha * A * x + beta * y
    double alpha = 3.0;
    SparseMatrix a = (SparseMatrix)new SparseMatrix(2, 2)
        .assign(new double[][] {{10.0, 11.0}, {0.0, 1.0}});
    DenseVector x = new DenseVector(new double[] {1.0, 2.0});
    double beta = 2.0;
    DenseVector y = new DenseVector(new double[] {3.0, 4.0});
    DenseVector exp = (DenseVector)y.times(beta).plus(a.times(x).times(alpha));
    Blas.gemv(alpha, a, x, beta, y);
    Assert.assertEquals(exp, y);
}