diff options
author | Sunil Shetye | 2018-06-16 19:47:55 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-18 10:46:22 +0530 |
commit | dc0c2354295fc1c80d5c0e10b053e5926861b5d3 (patch) | |
tree | f985ad20bba0639e5d85e3be91552b4dca6f7fc9 /js/MatrixOp/MATRESH.js | |
parent | 3a3e1d6aa7fd38a910a7416040050ffa9550566e (diff) | |
download | sci2js-dc0c2354295fc1c80d5c0e10b053e5926861b5d3.tar.gz sci2js-dc0c2354295fc1c80d5c0e10b053e5926861b5d3.tar.bz2 sci2js-dc0c2354295fc1c80d5c0e10b053e5926861b5d3.zip |
support var(:,:) syntax
Diffstat (limited to 'js/MatrixOp/MATRESH.js')
-rw-r--r-- | js/MatrixOp/MATRESH.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/MatrixOp/MATRESH.js b/js/MatrixOp/MATRESH.js index 3cdf2c00..77fb5bbb 100644 --- a/js/MatrixOp/MATRESH.js +++ b/js/MatrixOp/MATRESH.js @@ -19,24 +19,24 @@ nout=size(out); nin=size(l1); if (nout==0) { message("output must have at least one element"); -ok=None; +ok=false; } if (nin==0) { message("input must have at least one element"); -ok=None; +ok=false; } if (ok) { if (((out(1)>(l1(1)*l1(2))))) { message("the first dimension of the output is too big"); -ok=None; +ok=false; } if (((out(2)>(l1(1)*l1(2))))) { message("the second dimension of the output is too big"); -ok=None; +ok=false; } if ((((out(2)*out(1))>(l1(1)*l1(2))))) { message("the dimensions of the output are too big"); -ok=None; +ok=false; } } if ((typ==1)) { @@ -49,7 +49,7 @@ ot=2; it=2; } else { message("Datatype is not supported"); -ok=None; +ok=false; } if (ok) { label=lab; @@ -86,7 +86,7 @@ model.rpar=[]; model.ipar=[]; model.blocktype="c"; model.firing=[]; -model.dep_ut=[true,None]; +model.dep_ut=[true,false]; label=[sci2exp(1),sci2exp([1,1]),sci2exp([1,1])]; gr_i=[]; x=standard_define([3,2],model,label,gr_i); |