diff options
author | Sunil Shetye | 2018-06-18 23:41:23 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-19 10:31:46 +0530 |
commit | 1170404c7650cb531534b308f103c9b6abd50d14 (patch) | |
tree | a6a61ae2a9a3592440483906ce6c7254b3243553 /js/Linear/SUMMATION.js | |
parent | cd5b0819762aa4a1cb72d29ab7b8c3ac65bbad76 (diff) | |
download | sci2js-1170404c7650cb531534b308f103c9b6abd50d14.tar.gz sci2js-1170404c7650cb531534b308f103c9b6abd50d14.tar.bz2 sci2js-1170404c7650cb531534b308f103c9b6abd50d14.zip |
handle multiple rows
Diffstat (limited to 'js/Linear/SUMMATION.js')
-rw-r--r-- | js/Linear/SUMMATION.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Linear/SUMMATION.js b/js/Linear/SUMMATION.js index a1ada670..4b54dda9 100644 --- a/js/Linear/SUMMATION.js +++ b/js/Linear/SUMMATION.js @@ -1,12 +1,12 @@ /* autogenerated from "macros/Linear/SUMMATION.sci" */ function SUMMATION() { SUMMATION.prototype.define = function SUMMATION() { -sgn=[1,-1]; +sgn=[[1],[-1]]; model=scicos_model(); model.sim=list("summation",4); -model.in1=[-1,-1]; +model.in1=[[-1],[-1]]; model.out=-1; -model.in2=[-2,-2]; +model.in2=[[-2],[-2]]; model.out2=-2; model.ipar=sgn; model.blocktype="c"; @@ -25,12 +25,12 @@ graphics=arg1.graphics; model=arg1.model; exprs=graphics.exprs; if (size(exprs,1)==1) { -exprs=[sci2exp(1),exprs,sci2exp(0)]; +exprs=[[sci2exp(1)],[exprs],[sci2exp(0)]]; } else if (size(exprs,1)==2) { -exprs=[exprs,sci2exp(0)]; +exprs=[[exprs],[sci2exp(0)]]; } while (true) { -[ok,Datatype,sgn,satur,exprs]=scicos_getvalue("Set sum block parameters",["Datatype (1=real double 2=complex 3=int32 ...)","Number of inputs or sign vector (of +1, -1)","Do on Overflow(0=Nothing 1=Saturate 2=Error)"],list("vec",1,"vec",-1,"vec",1),exprs); +[ok,Datatype,sgn,satur,exprs]=scicos_getvalue("Set sum block parameters",[["Datatype (1=real double 2=complex 3=int32 ...)"],["Number of inputs or sign vector (of +1, -1)"],["Do on Overflow(0=Nothing 1=Saturate 2=Error)"]],list("vec",1,"vec",-1,"vec",1),exprs); if (!ok) { break; } |