Skip to content
This repository was archived by the owner on Feb 18, 2020. It is now read-only.

Commit 39933a0

Browse files
Removed matmul dimensionality restriction
1 parent 1fd2013 commit 39933a0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kernel/linalg.c

-4
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ CArray_Matmul(CArray * ap1, CArray * ap2, CArray * out, MemoryPointer * ptr)
145145
CArrayIterator * it1, * it2;
146146
char * op;
147147

148-
if (CArray_NDIM(ap1) > 2 || CArray_NDIM(ap2) > 2) {
149-
throw_valueerror_exception("Matrix product is not implemented for DIM > 2");
150-
return NULL;
151-
}
152148
if (CArray_NDIM(ap1) == 0 || CArray_NDIM(ap2) == 0) {
153149
throw_valueerror_exception("Scalar operands are not allowed, use '*' instead");
154150
return NULL;

0 commit comments

Comments
 (0)