summaryrefslogtreecommitdiff
path: root/js/MatrixOp/MATMUL.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/MatrixOp/MATMUL.js')
-rw-r--r--js/MatrixOp/MATMUL.js86
1 files changed, 43 insertions, 43 deletions
diff --git a/js/MatrixOp/MATMUL.js b/js/MatrixOp/MATMUL.js
index 2c2cc096..955f4d7a 100644
--- a/js/MatrixOp/MATMUL.js
+++ b/js/MatrixOp/MATMUL.js
@@ -1,17 +1,17 @@
/* autogenerated from "macros/MatrixOp/MATMUL.sci" */
function MATMUL() {
MATMUL.prototype.define = function MATMUL() {
- model = scicos_model();
- model.sim = list("matmul_m",4);
- model.in1 = [[-1],[-2]];
- model.in2 = [[-2],[-3]];
- model.out = -1;
- model.out2 = -3;
- model.dep_ut = [true,false];
- model.ipar = 1;
- label = [sci2exp(model.ipar)];
+ this.model = scicos_model();
+ this.model.sim = list("matmul_m",4);
+ this.model.in1 = [[-1],[-2]];
+ this.model.in2 = [[-2],[-3]];
+ this.model.out = new ScilabDouble(-1);
+ this.model.out2 = new ScilabDouble(-3);
+ this.model.dep_ut = [true,false];
+ this.model.ipar = new ScilabDouble(1);
+ label = [sci2exp(this.model.ipar)];
gr_i = [];
- this.x = standard_define([3,2],model,label,gr_i);
+ this.x = standard_define([3,2],this.model,label,gr_i);
return new BasicBlock(this.x);
}
MATMUL.prototype.details = function MATMUL() {
@@ -32,9 +32,9 @@ function MATMUL() {
this.x = arg1;
graphics = this.x.graphics;
label = graphics.exprs;
- model = this.x.model;
- if (model.ipar==[]) {
- model.ipar = 1;
+ this.model = this.x.model;
+ if (this.model.ipar==[]) {
+ this.model.ipar = new ScilabDouble(1);
}
if (size(label,"*")==1) {
label[2-1] = sci2exp(1);
@@ -63,72 +63,72 @@ function MATMUL() {
TABMAX = [[0],[0],[(2^31)-1],[(2^15)-1],[(2^7)-1],[(2^32)-1],[(2^16)-1],[(2^8)-1]];
if (this.rule==2) {
if (this.np==0) {
- model.sim = list("matmul2_m",4);
+ this.model.sim = list("matmul2_m",4);
} else if (this.np==1) {
- model.sim = list("matmul2_s",4);
+ this.model.sim = list("matmul2_s",4);
} else {
- model.sim = list("matmul2_e",4);
+ this.model.sim = list("matmul2_e",4);
}
} else if (this.rule==3) {
if (this.np==0) {
- model.sim = list("matbyscal",4);
+ this.model.sim = list("matbyscal",4);
} else if (this.np==1) {
- model.sim = list("matbyscal_s",4);
+ this.model.sim = list("matbyscal_s",4);
} else {
- model.sim = list("matbyscal_e",4);
+ this.model.sim = list("matbyscal_e",4);
}
} else {
if ((this.dtype==1)) {
- model.sim = list("matmul_m",4);
+ this.model.sim = list("matmul_m",4);
} else if ((this.dtype==2)) {
- model.sim = list("matzmul_m",4);
+ this.model.sim = list("matzmul_m",4);
} else if (this.dtype==3) {
if (this.np==0) {
- model.sim = list("matmul_i32n",4);
+ this.model.sim = list("matmul_i32n",4);
} else if (this.np==1) {
- model.sim = list("matmul_i32s",4);
+ this.model.sim = list("matmul_i32s",4);
} else {
- model.sim = list("matmul_i32e",4);
+ this.model.sim = list("matmul_i32e",4);
}
} else if (this.dtype==4) {
if (this.np==0) {
- model.sim = list("matmul_i16n",4);
+ this.model.sim = list("matmul_i16n",4);
} else if (this.np==1) {
- model.sim = list("matmul_i16s",4);
+ this.model.sim = list("matmul_i16s",4);
} else {
- model.sim = list("matmul_i16e",4);
+ this.model.sim = list("matmul_i16e",4);
}
} else if (this.dtype==5) {
if (this.np==0) {
- model.sim = list("matmul_i8n",4);
+ this.model.sim = list("matmul_i8n",4);
} else if (this.np==1) {
- model.sim = list("matmul_i8s",4);
+ this.model.sim = list("matmul_i8s",4);
} else {
- model.sim = list("matmul_i8e",4);
+ this.model.sim = list("matmul_i8e",4);
}
} else if (this.dtype==6) {
if (this.np==0) {
- model.sim = list("matmul_ui32n",4);
+ this.model.sim = list("matmul_ui32n",4);
} else if (this.np==1) {
- model.sim = list("matmul_ui32s",4);
+ this.model.sim = list("matmul_ui32s",4);
} else {
- model.sim = list("matmul_ui32e",4);
+ this.model.sim = list("matmul_ui32e",4);
}
} else if (this.dtype==7) {
if (this.np==0) {
- model.sim = list("matmul_ui16n",4);
+ this.model.sim = list("matmul_ui16n",4);
} else if (this.np==1) {
- model.sim = list("matmul_ui16s",4);
+ this.model.sim = list("matmul_ui16s",4);
} else {
- model.sim = list("matmul_ui16e",4);
+ this.model.sim = list("matmul_ui16e",4);
}
} else if (this.dtype==8) {
if (this.np==0) {
- model.sim = list("matmul_ui8n",4);
+ this.model.sim = list("matmul_ui8n",4);
} else if (this.np==1) {
- model.sim = list("matmul_ui8s",4);
+ this.model.sim = list("matmul_ui8s",4);
} else {
- model.sim = list("matmul_ui8e",4);
+ this.model.sim = list("matmul_ui8e",4);
}
}
}
@@ -146,14 +146,14 @@ function MATMUL() {
in1 = [[-1,-2],[1,1]];
out = [-1,-2];
}
- [model,graphics,ok] = set_io(model,graphics,list(in1,it),list(out,ot),[],[]);
+ [model,graphics,ok] = set_io(this.model,graphics,list(in1,it),list(out,ot),[],[]);
if (ok) {
label = exprs;
- model.ipar = this.rule;
- model.rpar = [[kmin],[kmax]];
+ this.model.ipar = new ScilabDouble(this.rule);
+ this.model.rpar = [[kmin],[kmax]];
graphics.exprs = label;
this.x.graphics = graphics;
- this.x.model = model;
+ this.x.model = this.model;
arg1 = this.x;
break;
}