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/Sources/CONST_f.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/Sources/CONST_f.js') diff --git a/js/Sources/CONST_f.js b/js/Sources/CONST_f.js index cb76e0fb..5f7bd3f7 100644 --- a/js/Sources/CONST_f.js +++ b/js/Sources/CONST_f.js @@ -4,11 +4,11 @@ function CONST_f() { this.C = 1; this.model = scicos_model(); this.model.sim = list(new ScilabString(["cstblk"]), new ScilabDouble([1])); - this.model.in1 = []; + this.model.in1 = new ScilabDouble([]); this.model.out = new ScilabDouble([1]); this.model.rpar = new ScilabDouble([this.C]); this.model.blocktype = new ScilabString(["d"]); - this.model.dep_ut = [false,false]; + this.model.dep_ut = new ScilabDouble([false,false]); var exprs = strcat(sci2exp(this.C)); var gr_i = []; this.x = standard_define([2,2],this.model,exprs,gr_i); @@ -37,7 +37,7 @@ function CONST_f() { if (nout==0) { message("C must have at least one element"); } else { - this.model.rpar = this.C.slice(); + this.model.rpar = new ScilabDouble(this.C.slice()); this.model.out = new ScilabDouble([nout]); graphics.exprs = exprs; this.x.graphics = graphics; -- cgit