Skip to content

Commit

Permalink
Fix return Python int
Browse files Browse the repository at this point in the history
Fixes #566
  • Loading branch information
mhostetter committed Nov 13, 2024
1 parent d4e3770 commit 9750042
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/galois/_domains/_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ def __call__(self, A: Array) -> int:
verify_isinstance(A, self.field)
A_rre, _ = row_reduce_jit(self.field)(A)
rank = np.sum(~np.all(A_rre == 0, axis=1))
rank = int(rank)
return rank


Expand Down

0 comments on commit 9750042

Please sign in to comment.