mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
feat: faster check for object equivalence added to is_matrix_symmetric
This commit is contained in:
parent
b56c4e7694
commit
7d280b3e26
1 changed files with 2 additions and 0 deletions
|
@ -244,6 +244,8 @@ class Corr:
|
|||
for t in range(self.T):
|
||||
for i in range(self.N):
|
||||
for j in range(i + 1, self.N):
|
||||
if self[t][i, j] is self[t][j, i]:
|
||||
continue
|
||||
if hash(self[t][i, j]) != hash(self[t][j, i]):
|
||||
return False
|
||||
return True
|
||||
|
|
Loading…
Add table
Reference in a new issue