We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 630a890 commit 7fc03e9Copy full SHA for 7fc03e9
src/pyscipopt/matrix.pxi
@@ -18,7 +18,7 @@ def _is_number(e):
18
19
20
def _matrixexpr_richcmp(self, other, op):
21
- if not _is_number(other) or not isinstance(other, (Expr, np.ndarray)):
+ if not (_is_number(other) or isinstance(other, (Expr, MatrixExpr, np.ndarray))):
22
raise TypeError(f"Unsupported type {type(other)}")
23
24
if op == 1: # <=
0 commit comments