aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent7b679c464516e0c3e3bf7bfba4e8eb3249c3890b (diff)
downloadopen-axiom-3a8a000fa4fb3f284dac5eeb5aa5f35332f5e811.tar.gz
* algebra/matfuns.spad.pamphlet
(InnerMatrixLinearAlgebraFunctions) [rank]: Tidy.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/algebra/matfuns.spad.pamphlet4
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5a05ae7f..4eee6517 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,7 +1,12 @@
+2011-12-27 Gabriel Dos Reis <gdr@cs.tamu.edu>
+
+ * algebra/matfuns.spad.pamphlet
+ (InnerMatrixLinearAlgebraFunctions) [rank]: Tidy.
+
2011-12-24 Gabriel Dos Reis <gdr@cs.tamu.edu>
* interp/g-opt.boot (unnestWhen!): Recurse into more control
- structures.
+ structures.
2011-12-24 Gabriel Dos Reis <gdr@cs.tamu.edu>
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