aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/matfuns.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-12-27 14:23:54 +0000
committerdos-reis <gdr@axiomatics.org>2011-12-27 14:23:54 +0000
commit2181cb4813bbe491a56d32218da2d56508bfccfe (patch)
tree8234273dd00c682a669072e74bb3a519941b879b /src/algebra/matfuns.spad.pamphlet
parent3a8a000fa4fb3f284dac5eeb5aa5f35332f5e811 (diff)
downloadopen-axiom-2181cb4813bbe491a56d32218da2d56508bfccfe.tar.gz
* interp/g-opt.boot (changeVariableDefinitionToStore): Tidy.
Remove handling of IF forms as no longer relevant. * algebra/matfuns.spad.pamphlet (MatrixLinearAlgebraFunctions) [rank]: Tidy.
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