summaryrefslogtreecommitdiff
path: root/js/IntegerOp/INTMUL.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-13 15:37:42 +0530
committerSunil Shetye2018-07-15 07:11:58 +0530
commit6ee02952c836bb31e9b51783e6a16724fba64637 (patch)
treebde996b5477f57f4faca4ba3a173bed2fdf0c359 /js/IntegerOp/INTMUL.js
parent214ade87a6cef2bf55f9b9f2848ffafc02f37f18 (diff)
downloadsci2js-6ee02952c836bb31e9b51783e6a16724fba64637.tar.gz
sci2js-6ee02952c836bb31e9b51783e6a16724fba64637.tar.bz2
sci2js-6ee02952c836bb31e9b51783e6a16724fba64637.zip
change in1 to in
Diffstat (limited to 'js/IntegerOp/INTMUL.js')
-rw-r--r--js/IntegerOp/INTMUL.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/IntegerOp/INTMUL.js b/js/IntegerOp/INTMUL.js
index c0f32924..7e781cf7 100644
--- a/js/IntegerOp/INTMUL.js
+++ b/js/IntegerOp/INTMUL.js
@@ -4,7 +4,7 @@ function INTMUL() {
var sgn = 0;
this.model = scicos_model();
this.model.sim = list(new ScilabString(["matmul_i32"]), new ScilabDouble([4]));
- this.model.in1 = new ScilabDouble([-1],[-2]);
+ this.model.in = new ScilabDouble([-1],[-2]);
this.model.out = new ScilabDouble([-1]);
this.model.in2 = new ScilabDouble([-2],[-3]);
this.model.out2 = new ScilabDouble([-3]);
@@ -33,9 +33,6 @@ function INTMUL() {
this.Datatype = arguments[0]["Datatype"]
this.np = arguments[0]["np"]
this.exprs = arguments[0]["exprs"]
- this.x = arg1;
- this.graphics = arg1.graphics;
- this.model = arg1.model;
this.exprs = this.graphics.exprs;
while (true) {
[ok,this.Datatype,this.np,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","INTMUL")],[" "],["Integer matrix multiplication"],[" "]],[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),"Do on Overflow (0:Nothing, 1:Saturate, 2:Error)"],list("vec",1,"vec",1),this.exprs);
@@ -99,7 +96,7 @@ function INTMUL() {
block_parameter_error(msprintf("Wrong value for \'%s\' parameter: %d.","Data Type",ot),msprintf("Must be in the interval %s.","[3, 8]"));
var ok = false;
}
- var in1 = [this.model.in1,this.model.in2];
+ var in1 = [this.model.in,this.model.in2];
var out = [this.model.out,this.model.out2];
if (ok) {
var tmpvar0 = set_io(this.model,this.graphics,list(in1,it),list(out,ot),[],[]);