From 8cf65fe92b28b8809abcb0eb59f951d26f30792f Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Tue, 19 Jun 2018 23:23:04 +0530 Subject: distinguish between functions and arrays maintain a list of functions --- js/MatrixOp/MATRESH.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/MatrixOp/MATRESH.js') 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; } -- cgit