Skip to content

Commit

Permalink
Use consistent variable names between LU and PLU
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed May 2, 2023
1 parent 43fe231 commit 09926f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/galois/_domains/_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ def __call__(self, A: Array) -> tuple[Array, Array]:
if not A.ndim == 2:
raise ValueError(f"Argument 'A' must be a 2-D matrix, not have shape {A.shape}.")

n = A.shape[0]
m = A.shape[0]
Ai = A.copy()
L = self.field.Identity(n)
L = self.field.Identity(m)

for i in range(0, n - 1):
for i in range(0, m - 1):
if Ai[i, i] == 0:
idxs = np.nonzero(Ai[i:, i])[0] # The first non-zero entry in column `i` below row `i`
if idxs.size == 0: # pylint: disable=no-else-continue
Expand Down

0 comments on commit 09926f2

Please sign in to comment.