summaryrefslogtreecommitdiff
path: root/js/MatrixOp/MATSUM.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/MatrixOp/MATSUM.js
parent214ade87a6cef2bf55f9b9f2848ffafc02f37f18 (diff)
downloadsci2js-6ee02952c836bb31e9b51783e6a16724fba64637.tar.gz
sci2js-6ee02952c836bb31e9b51783e6a16724fba64637.tar.bz2
sci2js-6ee02952c836bb31e9b51783e6a16724fba64637.zip
change in1 to in
Diffstat (limited to 'js/MatrixOp/MATSUM.js')
-rw-r--r--js/MatrixOp/MATSUM.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/js/MatrixOp/MATSUM.js b/js/MatrixOp/MATSUM.js
index f6e5631a..b62dfd04 100644
--- a/js/MatrixOp/MATSUM.js
+++ b/js/MatrixOp/MATSUM.js
@@ -5,7 +5,7 @@ function MATSUM() {
var function_name = "mat_sum";
var funtyp = 4;
this.model.sim = list(new ScilabString([function_name]), new ScilabDouble([funtyp]));
- this.model.in1 = new ScilabDouble([-1]);
+ this.model.in = new ScilabDouble([-1]);
this.model.in2 = new ScilabDouble([-2]);
this.model.intyp = new ScilabDouble([1]);
this.model.out = new ScilabDouble([1]);
@@ -39,9 +39,6 @@ function MATSUM() {
this.typ = inverse(arguments[0]["typ"])
this.decomptyp = arguments[0]["decomptyp"]
this.lab = arguments[0]["lab"]
- this.x = arg1;
- this.model = arg1.model;
- this.graphics = arg1.graphics;
var label = this.graphics.exprs;
if (size(label,"*")==14) {
label[9-1] = [];
@@ -88,7 +85,7 @@ function MATSUM() {
message("Datatype is not supported");
var ok = false;
}
- var in1 = [this.model.in1,this.model.in2];
+ var in1 = [this.model.in,this.model.in2];
var funtyp = 4;
if (ok) {
var tmpvar0 = set_io(this.model,this.graphics,list(in1,it),list(out,ot),[],[]);
@@ -98,10 +95,7 @@ function MATSUM() {
}
if (ok) {
this.model.sim = list(new ScilabString([function_name]), new ScilabDouble([funtyp]));
- arg1.model = this.model;
this.graphics.exprs = new ScilabDouble([label]);
- arg1.graphics = this.graphics;
- this.x = arg1;
break;
}
}