aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/smith.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/smith.spad.pamphlet')
-rw-r--r--src/algebra/smith.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/smith.spad.pamphlet b/src/algebra/smith.spad.pamphlet
index 97fc3b76..34b8f55b 100644
--- a/src/algebra/smith.spad.pamphlet
+++ b/src/algebra/smith.spad.pamphlet
@@ -157,7 +157,7 @@ SmithNormalForm(R,Row,Col,M) : Exports == Implementation where
lastStep(sf : SmithForm) : SmithForm ==
m:=sf.Smith
m1:=min(nrows m,ncols m)
- for i in 1..m1 while (mii:=m(i,i)) ~=0 repeat
+ for i in 1..m1 while not zero?(mii:=m(i,i)) repeat
for j in i+1..m1 repeat
if (m(j,j) exquo mii) case "failed" then return
lastStep(ijDivide(sf,i,j))