aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/matfuns.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-12-27 10:54:18 +0000
committerdos-reis <gdr@axiomatics.org>2011-12-27 10:54:18 +0000
commit3a8a000fa4fb3f284dac5eeb5aa5f35332f5e811 (patch)
tree3828486ced10ed1b7a1745229150f9583319e3be /src/algebra/matfuns.spad.pamphlet
parent7b679c464516e0c3e3bf7bfba4e8eb3249c3890b (diff)
downloadopen-axiom-3a8a000fa4fb3f284dac5eeb5aa5f35332f5e811.tar.gz
* algebra/matfuns.spad.pamphlet
(InnerMatrixLinearAlgebraFunctions) [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 cf739082..2f42249c 100644
--- a/src/algebra/matfuns.spad.pamphlet
+++ b/src/algebra/matfuns.spad.pamphlet
@@ -108,8 +108,10 @@ InnerMatrixLinearAlgebraFunctions(R,Row,Col,M):_
x
rank x ==
+ rk := nrows x
y :=
- (rk := nrows x) > (rh := ncols x) =>
+ rh := ncols x
+ rk > rh =>
rk := rh
transpose x
copy x