summaryrefslogtreecommitdiff
path: root/js/Sources/RAND_m.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 15:19:38 +0530
committerSunil Shetye2018-07-11 15:21:08 +0530
commit0047c3bea1d86b12a08544f6f0833c63e77f6eac (patch)
tree36fc72fa9e5ea73c64a44e061b2c9c80e0307884 /js/Sources/RAND_m.js
parent079d0b4a3ec15a4d7d2644484d116df9d1c694bb (diff)
downloadsci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.gz
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.bz2
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.zip
support vector also
Diffstat (limited to 'js/Sources/RAND_m.js')
-rw-r--r--js/Sources/RAND_m.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/js/Sources/RAND_m.js b/js/Sources/RAND_m.js
index a874bdda..f25eacce 100644
--- a/js/Sources/RAND_m.js
+++ b/js/Sources/RAND_m.js
@@ -9,21 +9,21 @@ function RAND_m() {
var funtyp = 4;
this.model = scicos_model();
this.model.sim = list(new ScilabString([function_name]), new ScilabDouble([funtyp]));
- this.model.in1 = [];
- this.model.in2 = [];
- this.model.intyp = [];
+ this.model.in1 = new ScilabDouble([]);
+ this.model.in2 = new ScilabDouble([]);
+ this.model.intyp = new ScilabDouble([]);
this.model.out = new ScilabDouble([1]);
this.model.out2 = new ScilabDouble([1]);
this.model.outtyp = new ScilabDouble([1]);
this.model.evtin = new ScilabDouble([1]);
- this.model.evtout = [];
- this.model.state = [];
+ this.model.evtout = new ScilabDouble([]);
+ this.model.state = new ScilabDouble([]);
this.model.dstate = new ScilabDouble([int(rand()*(10^7-1))],[0*this.a.slice()]);
- this.model.rpar = [this.a.slice(),this.b.slice()];
+ this.model.rpar = new ScilabDouble([this.a.slice(),this.b.slice()]);
this.model.ipar = new ScilabDouble([this.flag]);
this.model.blocktype = new ScilabString(["d"]);
- this.model.firing = [];
- this.model.dep_ut = [false,false];
+ this.model.firing = new ScilabDouble([]);
+ this.model.dep_ut = new ScilabDouble([false,false]);
var exprs = [[sci2exp(1)],[string(this.flag)],[sci2exp([this.a])],[sci2exp([this.b])],[sci2exp([this.model.dstate[1-1],int(rand()*(10^7-1))])]];
var gr_i = [];
this.x = standard_define([3,2],this.model,exprs,gr_i);