aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/solvelin.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/solvelin.spad.pamphlet')
-rw-r--r--src/algebra/solvelin.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/solvelin.spad.pamphlet b/src/algebra/solvelin.spad.pamphlet
index 470dd200..c7412659 100644
--- a/src/algebra/solvelin.spad.pamphlet
+++ b/src/algebra/solvelin.spad.pamphlet
@@ -79,8 +79,8 @@ LinearSystemMatrixPackage(F, Row, Col, M): Cat == Capsule where
-- find leading elements of diagonal
v := new(nvar, minRowIndex m - 1)$PrimitiveArray(Integer)
for i in minRowIndex m .. rk repeat
- j : Integer
- for j in 0.. while zero? qelt(m, i, j+minColIndex m) repeat 0
+ j : Integer := 0
+ while zero? qelt(m, i, j+minColIndex m) repeat j := j + 1
v.j := i
for j in 0..nvar-1 repeat
if v.j >= minRowIndex m then