This crashed due to an assertion failure in blas before.
Thanks to Youngseok Choi for reporting the bug.
}
gsl_matrix *c = gsl_matrix_alloc (a->size1, b->size2);
- gsl_blas_dgemm (CblasNoTrans, CblasNoTrans, 1.0, a, b, 0.0, c);
+ if (a->size1 && b->size2)
+ gsl_blas_dgemm (CblasNoTrans, CblasNoTrans, 1.0, a, b, 0.0, c);
return c;
}
PRINT b.
COMPUTE c={a, 1, 2, 3}.
PRINT c.
+/* Multiplication of empty matrices previously assert-failed in blas.
+COMPUTE d = a * a.
+PRINT d.
END MATRIX.
])
AT_CHECK([pspp matrix.sps], [0], [dnl
c
1 2 3
+
+d
])
AT_CLEANUP