summaryrefslogtreecommitdiff
path: root/js/Linear/CLR.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/Linear/CLR.js
parent079d0b4a3ec15a4d7d2644484d116df9d1c694bb (diff)
downloadsci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.gz
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.bz2
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.zip
support vector also
Diffstat (limited to 'js/Linear/CLR.js')
-rw-r--r--js/Linear/CLR.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Linear/CLR.js b/js/Linear/CLR.js
index b4abd599..5edba5dd 100644
--- a/js/Linear/CLR.js
+++ b/js/Linear/CLR.js
@@ -14,7 +14,7 @@ function CLR() {
this.model.state = new ScilabDouble([x0]);
this.model.rpar = new ScilabDouble([A.slice()],[B.slice()],[C.slice()],[D.slice()]);
this.model.blocktype = new ScilabString(["c"]);
- this.model.dep_ut = [false,true];
+ this.model.dep_ut = new ScilabDouble([false,true]);
var gr_i = [];
this.x = standard_define([3,2],this.model,exprs,gr_i);
return new BasicBlock(this.x);
@@ -70,14 +70,14 @@ function CLR() {
var mmm = [false,true];
}
if (or(this.model.dep_ut!=mmm)) {
- this.model.dep_ut = mmm;
+ this.model.dep_ut = new ScilabDouble(mmm);
}
if (ns1<=ns) {
var x0 = x0.slice(1-1,ns1);
} else {
x0[ns1-1][1-1] = 0;
}
- this.model.state = x0;
+ this.model.state = new ScilabDouble(x0);
this.model.rpar = new ScilabDouble(rpar);
this.x.graphics = graphics;
this.x.model = this.model;