summaryrefslogtreecommitdiff
path: root/js/MatrixOp/MATPINV.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-12 23:16:08 +0530
committerSunil Shetye2018-07-13 10:21:08 +0530
commit214ade87a6cef2bf55f9b9f2848ffafc02f37f18 (patch)
tree50fdfe7b1e8850622825e362ca865be3f0911009 /js/MatrixOp/MATPINV.js
parenta2bfd6050ab2b5b6bbede92393b1f61d4ecc25aa (diff)
downloadsci2js-214ade87a6cef2bf55f9b9f2848ffafc02f37f18.tar.gz
sci2js-214ade87a6cef2bf55f9b9f2848ffafc02f37f18.tar.bz2
sci2js-214ade87a6cef2bf55f9b9f2848ffafc02f37f18.zip
add more global variables
Diffstat (limited to 'js/MatrixOp/MATPINV.js')
-rw-r--r--js/MatrixOp/MATPINV.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/js/MatrixOp/MATPINV.js b/js/MatrixOp/MATPINV.js
index 3bd87e74..df098edd 100644
--- a/js/MatrixOp/MATPINV.js
+++ b/js/MatrixOp/MATPINV.js
@@ -21,8 +21,8 @@ function MATPINV() {
this.model.firing = new ScilabDouble([]);
this.model.dep_ut = new ScilabDouble([true,false]);
var label = [sci2exp(1)];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATPINV\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,label,gr_i);
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATPINV\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,label,this.gr_i);
return new BasicBlock(this.x);
}
MATPINV.prototype.details = function MATPINV() {
@@ -36,6 +36,7 @@ function MATPINV() {
}
MATPINV.prototype.set = function MATPINV() {
this.typ = inverse(arguments[0]["typ"])
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
var label = this.graphics.exprs;
@@ -44,7 +45,7 @@ function MATPINV() {
label[9-1] = [];
}
while (true) {
- [ok,this.typ,exprs] = scicos_getvalue("Set MATPINV Block",["Datatype(1=real double 2=Complex)"],list("vec",1),label);
+ [ok,this.typ,this.exprs] = scicos_getvalue("Set MATPINV Block",["Datatype(1=real double 2=Complex)"],list("vec",1),label);
if (!ok) {
break;
}
@@ -64,7 +65,7 @@ function MATPINV() {
var out = [this.model.out,this.model.out2];
var funtyp = 4;
if (ok) {
- var label = exprs;
+ var label = this.exprs;
var tmpvar0 = set_io(this.model,this.graphics,list(in1,it),list(out,ot),[],[]);
this.model = tmpvar0[0];
this.graphics = tmpvar0[1];