summaryrefslogtreecommitdiff
path: root/js/MatrixOp/MATLU.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-09 11:43:39 +0530
committerSunil Shetye2018-07-09 12:16:25 +0530
commit62b1d7dd9183ed75733b44104890586b03818214 (patch)
tree9859e9ca295df98df945bd5fcccc3a264e8bede1 /js/MatrixOp/MATLU.js
parent5c011853630a1b466ef4789d5b600dd530d0a3ec (diff)
downloadsci2js-62b1d7dd9183ed75733b44104890586b03818214.tar.gz
sci2js-62b1d7dd9183ed75733b44104890586b03818214.tar.bz2
sci2js-62b1d7dd9183ed75733b44104890586b03818214.zip
support ScilabBoolean, ScilabDouble, ScilabString
Diffstat (limited to 'js/MatrixOp/MATLU.js')
-rw-r--r--js/MatrixOp/MATLU.js44
1 files changed, 22 insertions, 22 deletions
diff --git a/js/MatrixOp/MATLU.js b/js/MatrixOp/MATLU.js
index 09cce1c8..41a6989a 100644
--- a/js/MatrixOp/MATLU.js
+++ b/js/MatrixOp/MATLU.js
@@ -1,28 +1,28 @@
/* autogenerated from "macros/MatrixOp/MATLU.sci" */
function MATLU() {
MATLU.prototype.define = function MATLU() {
- model = scicos_model();
+ this.model = scicos_model();
function_name = "mat_lu";
funtyp = 4;
- model.sim = list(function_name,funtyp);
- model.in1 = -1;
- model.in2 = -1;
- model.intyp = 1;
- model.out = [[-1],[-1]];
- model.out2 = [[-1],[-1]];
- model.outtyp = [1,1];
- model.evtin = [];
- model.evtout = [];
- model.state = [];
- model.dstate = [];
- model.rpar = [];
- model.ipar = [];
- model.blocktype = "c";
- model.firing = [];
- model.dep_ut = [true,false];
+ this.model.sim = list(function_name,funtyp);
+ this.model.in1 = new ScilabDouble(-1);
+ this.model.in2 = new ScilabDouble(-1);
+ this.model.intyp = new ScilabDouble(1);
+ this.model.out = [[-1],[-1]];
+ this.model.out2 = [[-1],[-1]];
+ this.model.outtyp = [1,1];
+ this.model.evtin = [];
+ this.model.evtout = [];
+ this.model.state = [];
+ this.model.dstate = [];
+ this.model.rpar = [];
+ this.model.ipar = [];
+ this.model.blocktype = new ScilabString("c");
+ this.model.firing = [];
+ this.model.dep_ut = [true,false];
label = sci2exp(1);
gr_i = [];
- this.x = standard_define([2,2],model,label,gr_i);
+ this.x = standard_define([2,2],this.model,label,gr_i);
return new BasicBlock(this.x);
}
MATLU.prototype.details = function MATLU() {
@@ -38,7 +38,7 @@ function MATLU() {
this.typ = inverse(arguments[0]["typ"])
this.lab = arguments[0]["lab"]
this.x = arg1;
- model = arg1.model;
+ this.model = arg1.model;
graphics = arg1.graphics;
label = graphics.exprs;
if (size(label,"*")==14) {
@@ -62,14 +62,14 @@ function MATLU() {
ok = false;
}
if (ok) {
- [model,graphics,ok] = set_io(model,graphics,list([model.in1,model.in2],it),list([model.out,model.out2],ot),[],[]);
+ [model,graphics,ok] = set_io(this.model,graphics,list([this.model.in1,this.model.in2],it),list([this.model.out,this.model.out2],ot),[],[]);
}
if (ok) {
funtyp = 4;
- model.sim = list(function_name,funtyp);
+ this.model.sim = list(function_name,funtyp);
graphics.exprs = this.lab;
this.x.graphics = graphics;
- this.x.model = model;
+ this.x.model = this.model;
break;
}
}