Skip to content

Commit

Permalink
Uploaded umatrix v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
iyassou authored Jul 15, 2019
1 parent 569b6a2 commit f9aca7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions umatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def round(self, places=0, inplace=False):
for j in range(len(rows[0])):
self.rows[i][j] = _round(rows[i][j],places)
def __eq__(self, other):
if not isinstance(other, matrix):
return False
assert isinstance(other, matrix), "Cannot compare matrix and {}.".format(type(other))
rows = self.rows
shape = len(rows), len(rows[0])
if shape != other.shape:
Expand Down

0 comments on commit f9aca7f

Please sign in to comment.