diff options
author | Sunil Shetye | 2018-07-11 15:19:38 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-11 15:21:08 +0530 |
commit | 0047c3bea1d86b12a08544f6f0833c63e77f6eac (patch) | |
tree | 36fc72fa9e5ea73c64a44e061b2c9c80e0307884 /js/MatrixOp | |
parent | 079d0b4a3ec15a4d7d2644484d116df9d1c694bb (diff) | |
download | sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.gz sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.bz2 sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.zip |
support vector also
Diffstat (limited to 'js/MatrixOp')
-rw-r--r-- | js/MatrixOp/CUMSUM.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/EXTRACT.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/EXTTRI.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/MATBKSL.js | 18 | ||||
-rw-r--r-- | js/MatrixOp/MATCATH.js | 18 | ||||
-rw-r--r-- | js/MatrixOp/MATCATV.js | 18 | ||||
-rw-r--r-- | js/MatrixOp/MATDET.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/MATDIAG.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/MATDIV.js | 18 | ||||
-rw-r--r-- | js/MatrixOp/MATEIG.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/MATEXPM.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/MATINV.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/MATLU.js | 18 | ||||
-rw-r--r-- | js/MatrixOp/MATMAGPHI.js | 18 | ||||
-rw-r--r-- | js/MatrixOp/MATMUL.js | 2 | ||||
-rw-r--r-- | js/MatrixOp/MATPINV.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/MATRESH.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/MATSING.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/MATSUM.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/MATTRAN.js | 2 | ||||
-rw-r--r-- | js/MatrixOp/MATZCONJ.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/MATZREIM.js | 18 | ||||
-rw-r--r-- | js/MatrixOp/RICC.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/ROOTCOEF.js | 16 | ||||
-rw-r--r-- | js/MatrixOp/SQRT.js | 2 | ||||
-rw-r--r-- | js/MatrixOp/SUBMAT.js | 14 |
26 files changed, 193 insertions, 193 deletions
diff --git a/js/MatrixOp/CUMSUM.js b/js/MatrixOp/CUMSUM.js index 04df6b00..08dc68c9 100644 --- a/js/MatrixOp/CUMSUM.js +++ b/js/MatrixOp/CUMSUM.js @@ -11,15 +11,15 @@ function CUMSUM() { this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-2]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [[sci2exp(1)],[sci2exp(0)]]; var gr_i = []; this.x = standard_define([3,2],this.model,label,gr_i); diff --git a/js/MatrixOp/EXTRACT.js b/js/MatrixOp/EXTRACT.js index ad64ec4c..9839cb99 100644 --- a/js/MatrixOp/EXTRACT.js +++ b/js/MatrixOp/EXTRACT.js @@ -11,15 +11,15 @@ function EXTRACT() { this.model.out = new ScilabDouble([1]); this.model.out2 = new ScilabDouble([1]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = [1,1,1,1]; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([1,1,1,1]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [[sci2exp(1)],[sci2exp([1])],[sci2exp([1])]]; var gr_i = []; this.x = standard_define([3,2],this.model,label,gr_i); diff --git a/js/MatrixOp/EXTTRI.js b/js/MatrixOp/EXTTRI.js index 07bd5b9c..28ad3677 100644 --- a/js/MatrixOp/EXTTRI.js +++ b/js/MatrixOp/EXTTRI.js @@ -11,15 +11,15 @@ function EXTTRI() { this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-2]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [[sci2exp(1)],[sci2exp(1)]]; var gr_i = []; this.x = standard_define([3,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATBKSL.js b/js/MatrixOp/MATBKSL.js index 2039befb..3e5efd96 100644 --- a/js/MatrixOp/MATBKSL.js +++ b/js/MatrixOp/MATBKSL.js @@ -7,19 +7,19 @@ function MATBKSL() { this.model.sim = list(new ScilabString([function_name]), new ScilabDouble([funtyp])); this.model.in1 = new ScilabDouble([-1],[-1]); this.model.in2 = new ScilabDouble([-2],[-3]); - this.model.intyp = [1,1]; + this.model.intyp = new ScilabDouble([1,1]); this.model.out = new ScilabDouble([-2]); this.model.out2 = new ScilabDouble([-3]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(1)]; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATCATH.js b/js/MatrixOp/MATCATH.js index d0ba82c1..7eb28d79 100644 --- a/js/MatrixOp/MATCATH.js +++ b/js/MatrixOp/MATCATH.js @@ -7,19 +7,19 @@ function MATCATH() { this.model.sim = list(new ScilabString([function_name]), new ScilabDouble([funtyp])); this.model.in1 = new ScilabDouble([-1],[-1]); this.model.in2 = new ScilabDouble([-2],[-3]); - this.model.intyp = [1,1]; + this.model.intyp = new ScilabDouble([1,1]); this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([0]); this.model.outtyp = new ScilabDouble([-1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(2)]; var gr_i = []; this.x = standard_define([2,3],this.model,label,gr_i); diff --git a/js/MatrixOp/MATCATV.js b/js/MatrixOp/MATCATV.js index a54a2a05..dfe4cfcd 100644 --- a/js/MatrixOp/MATCATV.js +++ b/js/MatrixOp/MATCATV.js @@ -8,19 +8,19 @@ function MATCATV() { this.model.sim = list(new ScilabString([function_name]), new ScilabDouble([funtyp])); this.model.in2 = new ScilabDouble([-1],[-1]); this.model.in1 = new ScilabDouble([-2],[-3]); - this.model.intyp = [-1,-1]; + this.model.intyp = new ScilabDouble([-1,-1]); this.model.out = new ScilabDouble([0]); this.model.out2 = new ScilabDouble([-1]); this.model.outtyp = new ScilabDouble([-1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(2)]; var gr_i = []; this.x = standard_define([2,3],this.model,label,gr_i); diff --git a/js/MatrixOp/MATDET.js b/js/MatrixOp/MATDET.js index ea37a5d3..f3a4fa9d 100644 --- a/js/MatrixOp/MATDET.js +++ b/js/MatrixOp/MATDET.js @@ -11,15 +11,15 @@ function MATDET() { this.model.out = new ScilabDouble([1]); this.model.out2 = new ScilabDouble([1]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(1)]; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATDIAG.js b/js/MatrixOp/MATDIAG.js index 1871efa6..a9775a91 100644 --- a/js/MatrixOp/MATDIAG.js +++ b/js/MatrixOp/MATDIAG.js @@ -11,15 +11,15 @@ function MATDIAG() { this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-1]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(1)]; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATDIV.js b/js/MatrixOp/MATDIV.js index d295365d..c43b1e89 100644 --- a/js/MatrixOp/MATDIV.js +++ b/js/MatrixOp/MATDIV.js @@ -7,19 +7,19 @@ function MATDIV() { this.model.sim = list(new ScilabString([function_name]), new ScilabDouble([funtyp])); this.model.in1 = new ScilabDouble([-1],[-2]); this.model.in2 = new ScilabDouble([-3],[-3]); - this.model.intyp = [1,1]; + this.model.intyp = new ScilabDouble([1,1]); this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-2]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(1)]; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATEIG.js b/js/MatrixOp/MATEIG.js index 53c4e86d..1e605fd8 100644 --- a/js/MatrixOp/MATEIG.js +++ b/js/MatrixOp/MATEIG.js @@ -11,15 +11,15 @@ function MATEIG() { this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([1]); this.model.outtyp = new ScilabDouble([2]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [[sci2exp(1)],[sci2exp(1)]]; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATEXPM.js b/js/MatrixOp/MATEXPM.js index 08d383ad..a01ec75a 100644 --- a/js/MatrixOp/MATEXPM.js +++ b/js/MatrixOp/MATEXPM.js @@ -11,15 +11,15 @@ function MATEXPM() { this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-1]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(1)]; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATINV.js b/js/MatrixOp/MATINV.js index 9ad78085..3986609c 100644 --- a/js/MatrixOp/MATINV.js +++ b/js/MatrixOp/MATINV.js @@ -11,15 +11,15 @@ function MATINV() { this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-1]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(1)]; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATLU.js b/js/MatrixOp/MATLU.js index c1c29c69..63965b50 100644 --- a/js/MatrixOp/MATLU.js +++ b/js/MatrixOp/MATLU.js @@ -10,16 +10,16 @@ function MATLU() { this.model.intyp = new ScilabDouble([1]); this.model.out = new ScilabDouble([-1],[-1]); this.model.out2 = new ScilabDouble([-1],[-1]); - this.model.outtyp = [1,1]; - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.outtyp = new ScilabDouble([1,1]); + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = sci2exp(1); var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATMAGPHI.js b/js/MatrixOp/MATMAGPHI.js index bbe2d7d9..93992460 100644 --- a/js/MatrixOp/MATMAGPHI.js +++ b/js/MatrixOp/MATMAGPHI.js @@ -10,16 +10,16 @@ function MATMAGPHI() { this.model.intyp = new ScilabDouble([2]); this.model.out = new ScilabDouble([-1],[-1]); this.model.out2 = new ScilabDouble([-2],[-2]); - this.model.outtyp = [1,1]; - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.outtyp = new ScilabDouble([1,1]); + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(1)]; var gr_i = []; this.x = standard_define([3,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATMUL.js b/js/MatrixOp/MATMUL.js index 81217de2..fac108ea 100644 --- a/js/MatrixOp/MATMUL.js +++ b/js/MatrixOp/MATMUL.js @@ -7,7 +7,7 @@ function MATMUL() { this.model.in2 = new ScilabDouble([-2],[-3]); this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-3]); - this.model.dep_ut = [true,false]; + this.model.dep_ut = new ScilabDouble([true,false]); this.model.ipar = new ScilabDouble([1]); var label = [sci2exp(this.model.ipar)]; var gr_i = []; diff --git a/js/MatrixOp/MATPINV.js b/js/MatrixOp/MATPINV.js index ca0b3185..41dcdc64 100644 --- a/js/MatrixOp/MATPINV.js +++ b/js/MatrixOp/MATPINV.js @@ -11,15 +11,15 @@ function MATPINV() { this.model.out = new ScilabDouble([-2]); this.model.out2 = new ScilabDouble([-1]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(1)]; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATRESH.js b/js/MatrixOp/MATRESH.js index 6de8b8bc..a369ebfe 100644 --- a/js/MatrixOp/MATRESH.js +++ b/js/MatrixOp/MATRESH.js @@ -11,15 +11,15 @@ function MATRESH() { this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-2]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [[sci2exp(1)],[sci2exp([1,1])],[sci2exp([1,1])]]; var gr_i = []; this.x = standard_define([3,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATSING.js b/js/MatrixOp/MATSING.js index 66956d3f..217bfa44 100644 --- a/js/MatrixOp/MATSING.js +++ b/js/MatrixOp/MATSING.js @@ -11,15 +11,15 @@ function MATSING() { this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([1]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [[sci2exp(1)],[sci2exp(1)]]; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATSUM.js b/js/MatrixOp/MATSUM.js index f4348aa7..41531c10 100644 --- a/js/MatrixOp/MATSUM.js +++ b/js/MatrixOp/MATSUM.js @@ -11,15 +11,15 @@ function MATSUM() { this.model.out = new ScilabDouble([1]); this.model.out2 = new ScilabDouble([1]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [[sci2exp(1)],[sci2exp(0)]]; var gr_i = []; this.x = standard_define([3,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATTRAN.js b/js/MatrixOp/MATTRAN.js index 5189898a..c731d6ba 100644 --- a/js/MatrixOp/MATTRAN.js +++ b/js/MatrixOp/MATTRAN.js @@ -7,7 +7,7 @@ function MATTRAN() { this.model.in2 = new ScilabDouble([-2]); this.model.out = new ScilabDouble([-2]); this.model.out2 = new ScilabDouble([-1]); - this.model.dep_ut = [true,false]; + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(1)]; var gr_i = []; this.x = standard_define([3,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATZCONJ.js b/js/MatrixOp/MATZCONJ.js index 43dab206..4a5dd180 100644 --- a/js/MatrixOp/MATZCONJ.js +++ b/js/MatrixOp/MATZCONJ.js @@ -11,15 +11,15 @@ function MATZCONJ() { this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-2]); this.model.outtyp = new ScilabDouble([2]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = []; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/MATZREIM.js b/js/MatrixOp/MATZREIM.js index b36f0466..9aa71803 100644 --- a/js/MatrixOp/MATZREIM.js +++ b/js/MatrixOp/MATZREIM.js @@ -10,16 +10,16 @@ function MATZREIM() { this.model.intyp = new ScilabDouble([2]); this.model.out = new ScilabDouble([-1],[-1]); this.model.out2 = new ScilabDouble([-2],[-2]); - this.model.outtyp = [1,1]; - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.outtyp = new ScilabDouble([1,1]); + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = sci2exp(1); var gr_i = []; this.x = standard_define([3,2],this.model,label,gr_i); diff --git a/js/MatrixOp/RICC.js b/js/MatrixOp/RICC.js index 6cdfff18..8ab320ba 100644 --- a/js/MatrixOp/RICC.js +++ b/js/MatrixOp/RICC.js @@ -7,19 +7,19 @@ function RICC() { this.model.sim = list(new ScilabString([function_name]), new ScilabDouble([funtyp])); this.model.in1 = new ScilabDouble([-1],[-1],[-1]); this.model.in2 = new ScilabDouble([-1],[-1],[-1]); - this.model.intyp = [1,1,1]; + this.model.intyp = new ScilabDouble([1,1,1]); this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-1]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); this.model.ipar = new ScilabDouble([1],[1]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [[sci2exp(1)],[sci2exp(1)]]; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/ROOTCOEF.js b/js/MatrixOp/ROOTCOEF.js index a468a2ba..661b496d 100644 --- a/js/MatrixOp/ROOTCOEF.js +++ b/js/MatrixOp/ROOTCOEF.js @@ -11,15 +11,15 @@ function ROOTCOEF() { this.model.out = new ScilabDouble([-2]); this.model.out2 = new ScilabDouble([1]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; - this.model.ipar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); + this.model.ipar = new ScilabDouble([]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [[sci2exp(1)],[sci2exp(1)]]; var gr_i = []; this.x = standard_define([3,2],this.model,label,gr_i); diff --git a/js/MatrixOp/SQRT.js b/js/MatrixOp/SQRT.js index b109ab09..3f6acb79 100644 --- a/js/MatrixOp/SQRT.js +++ b/js/MatrixOp/SQRT.js @@ -9,7 +9,7 @@ function SQRT() { this.model.outtyp = new ScilabDouble([1]); this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-2]); - this.model.dep_ut = [true,false]; + this.model.dep_ut = new ScilabDouble([true,false]); var label = [sci2exp(1)]; var gr_i = []; this.x = standard_define([2,2],this.model,label,gr_i); diff --git a/js/MatrixOp/SUBMAT.js b/js/MatrixOp/SUBMAT.js index 9e039c9b..ce83e0f3 100644 --- a/js/MatrixOp/SUBMAT.js +++ b/js/MatrixOp/SUBMAT.js @@ -11,15 +11,15 @@ function SUBMAT() { this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-2]); this.model.outtyp = new ScilabDouble([1]); - this.model.evtin = []; - this.model.evtout = []; - this.model.state = []; - this.model.dstate = []; - this.model.rpar = []; + this.model.evtin = new ScilabDouble([]); + this.model.evtout = new ScilabDouble([]); + this.model.state = new ScilabDouble([]); + this.model.dstate = new ScilabDouble([]); + this.model.rpar = new ScilabDouble([]); this.model.ipar = new ScilabDouble([1],[1],[1],[1]); this.model.blocktype = new ScilabString(["c"]); - this.model.firing = []; - this.model.dep_ut = [true,false]; + this.model.firing = new ScilabDouble([]); + this.model.dep_ut = new ScilabDouble([true,false]); var label = [[sci2exp(1)],[sci2exp(1)],[sci2exp(1)],[sci2exp(1)],[sci2exp(1)]]; var gr_i = []; this.x = standard_define([2.5,2],this.model,label,gr_i); |