From 0047c3bea1d86b12a08544f6f0833c63e77f6eac Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 11 Jul 2018 15:19:38 +0530 Subject: support vector also --- js/Linear/CLR.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/Linear/CLR.js') 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; -- cgit