summaryrefslogtreecommitdiff
path: root/js/MatrixOp/MATRESH.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-19 23:23:04 +0530
committerSunil Shetye2018-06-21 18:33:20 +0530
commit8cf65fe92b28b8809abcb0eb59f951d26f30792f (patch)
treed9509c35b6a4c3096d4be449935f88af5568276a /js/MatrixOp/MATRESH.js
parent3f563b9e29d42266d6680229da5c29f847804834 (diff)
downloadsci2js-8cf65fe92b28b8809abcb0eb59f951d26f30792f.tar.gz
sci2js-8cf65fe92b28b8809abcb0eb59f951d26f30792f.tar.bz2
sci2js-8cf65fe92b28b8809abcb0eb59f951d26f30792f.zip
distinguish between functions and arrays
maintain a list of functions
Diffstat (limited to 'js/MatrixOp/MATRESH.js')
-rw-r--r--js/MatrixOp/MATRESH.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/MatrixOp/MATRESH.js b/js/MatrixOp/MATRESH.js
index eacbd0a0..7136c644 100644
--- a/js/MatrixOp/MATRESH.js
+++ b/js/MatrixOp/MATRESH.js
@@ -52,15 +52,15 @@ message("input must have at least one element");
ok=false;
}
if (ok) {
-if (((out(1)>(l1(1)*l1(2))))) {
+if (((out[1-1]>(l1[1-1]*l1[2-1])))) {
message("the first dimension of the output is too big");
ok=false;
}
-if (((out(2)>(l1(1)*l1(2))))) {
+if (((out[2-1]>(l1[1-1]*l1[2-1])))) {
message("the second dimension of the output is too big");
ok=false;
}
-if ((((out(2)*out(1))>(l1(1)*l1(2))))) {
+if ((((out[2-1]*out[1-1])>(l1[1-1]*l1[2-1])))) {
message("the dimensions of the output are too big");
ok=false;
}