@Test
public void testGemvSparseTranspose() throws Exception {

    DenseVector y1 = DenseVector.ones(3);
    BLAS.gemv(2.0, mat, true, spv1, 0., y1);
    Assert.assertArrayEquals(new double[]{18, 24, 30}, y1.data, TOL);
    DenseVector y2 = DenseVector.ones(3);
    BLAS.gemv(2.0, mat, true, spv1, 1., y2);
    Assert.assertArrayEquals(new double[]{19, 25, 31}, y2.data, TOL);
}