From dc0c2354295fc1c80d5c0e10b053e5926861b5d3 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Sat, 16 Jun 2018 19:47:55 +0530 Subject: support var(:,:) syntax --- js/MatrixOp/MATRESH.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'js/MatrixOp/MATRESH.js') 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); -- cgit