Skip to content

Commit 72c42f4

Browse files
committed
Remove custom sum method from MatrixExpr
Deleted the overridden sum method in MatrixExpr to rely on the default numpy ndarray behavior.
1 parent 112a8fc commit 72c42f4

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/pyscipopt/matrix.pxi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ def _is_number(e):
1616
return False
1717

1818
class MatrixExpr(np.ndarray):
19-
def sum(self, **kwargs):
20-
return super().sum(**kwargs).item()
21-
2219
def __le__(self, other: Union[float, int, Variable, np.ndarray, 'MatrixExpr']) -> np.ndarray:
2320

2421
expr_cons_matrix = np.empty(self.shape, dtype=object)

0 commit comments

Comments
 (0)