Skip to content

Commit 7fc03e9

Browse files
committed
support MatrixExpr
1 parent 630a890 commit 7fc03e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyscipopt/matrix.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _is_number(e):
1818

1919

2020
def _matrixexpr_richcmp(self, other, op):
21-
if not _is_number(other) or not isinstance(other, (Expr, np.ndarray)):
21+
if not (_is_number(other) or isinstance(other, (Expr, MatrixExpr, np.ndarray))):
2222
raise TypeError(f"Unsupported type {type(other)}")
2323

2424
if op == 1: # <=

0 commit comments

Comments
 (0)