aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/matfuns.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/matfuns.spad.pamphlet')
-rw-r--r--src/algebra/matfuns.spad.pamphlet4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/algebra/matfuns.spad.pamphlet b/src/algebra/matfuns.spad.pamphlet
index 2f42249c..1fdf3cc9 100644
--- a/src/algebra/matfuns.spad.pamphlet
+++ b/src/algebra/matfuns.spad.pamphlet
@@ -676,8 +676,10 @@ MatrixLinearAlgebraFunctions(R,Row,Col,M):Exports == Implementation where
fm(maxRowIndex fm,maxColIndex fm)
rank x ==
+ rk := nrows x
y :=
- (rk := nrows x) > (rh := ncols x) =>
+ rh := ncols x
+ rk > rh =>
rk := rh
transpose x
copy x