@Test
public void testGemmSizeCheck() throws Exception {

    thrown.expect(IllegalArgumentException.class);
    DenseMatrix m32 = DenseMatrix.rand(3, 2);
    DenseMatrix m42 = DenseMatrix.rand(4, 2);
    DenseMatrix a34 = DenseMatrix.zeros(3, 4);
    BLAS.gemm(1.0, m32, false, m42, false, 0., a34);
}