Skip to content

Commit

Permalink
Fix consistency of optimized dot
Browse files Browse the repository at this point in the history
  • Loading branch information
teoliphant committed Mar 13, 2006
1 parent aa04352 commit 55b8604
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions numpy/core/blasdot/_dotblas.c
Expand Up @@ -248,8 +248,13 @@ dotblas_matrixproduct(PyObject *dummy, PyObject *args)
}
l = dimensions[0];
}
else {
nd = ap1->nd;
else if (ap1shape == _scalar) {
nd = 0;
l = 1;
dimensions[0] = 1;
}
else {
nd = ap1->nd;
for (l = 1, j = 0; j < nd; j++) {
dimensions[j] = ap1->dimensions[j];
l *= dimensions[j];
Expand Down

0 comments on commit 55b8604

Please sign in to comment.