@Test
public void testGemvDenseTranspose() throws Exception {

    DenseVector y1 = DenseVector.ones(3);
    BLAS.gemv(1.0, mat, true, dv1, 0., y1);
    Assert.assertArrayEquals(new double[]{9, 12, 15}, y1.data, TOL);
    DenseVector y2 = DenseVector.ones(3);
    BLAS.gemv(1.0, mat, true, dv1, 1., y2);
    Assert.assertArrayEquals(new double[]{10, 13, 16}, y2.data, TOL);
}