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/SOM_f.js | |
parent | cd5b0819762aa4a1cb72d29ab7b8c3ac65bbad76 (diff) | |
download | sci2js-1170404c7650cb531534b308f103c9b6abd50d14.tar.gz sci2js-1170404c7650cb531534b308f103c9b6abd50d14.tar.bz2 sci2js-1170404c7650cb531534b308f103c9b6abd50d14.zip |
handle multiple rows
Diffstat (limited to 'js/Linear/SOM_f.js')
-rw-r--r-- | js/Linear/SOM_f.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Linear/SOM_f.js b/js/Linear/SOM_f.js index 57198085..2f948a32 100644 --- a/js/Linear/SOM_f.js +++ b/js/Linear/SOM_f.js @@ -1,15 +1,15 @@ /* autogenerated from "macros/Linear/SOM_f.sci" */ function SOM_f() { SOM_f.prototype.define = function SOM_f() { -sgn=[1,1,1]; +sgn=[[1],[1],[1]]; model=scicos_model(); model.sim=list("sum",2); -model.in1=[-1,-1,-1]; +model.in1=[[-1],[-1],[-1]]; model.out=-1; model.rpar=sgn; model.blocktype="c"; model.dep_ut=[true,false]; -exprs=[sci2exp(1),sci2exp(sgn)]; +exprs=[[sci2exp(1)],[sci2exp(sgn)]]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); } @@ -33,8 +33,8 @@ labs=["down","left","up"]; } else { labs=["down","right","up"]; } -str=["This sum block is obsolete","parameters cannot be modified. Please replace it with new sum block","and gain blocks in the linear palette"," ","Input ports are located at up, side and down positions.","Current gains are:"]; -str=[str,(part(labs.slice(),1,7)+exprs.slice())]; +str=[["This sum block is obsolete","parameters cannot be modified. Please replace it with new sum block"],["and gain blocks in the linear palette"," ","Input ports are located at up, side and down positions.","Current gains are:"]]; +str=[[str],[(part(labs.slice(),1,7)+exprs.slice())]]; message(str); } } |