summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhitya Kamakshidasan2016-07-03 17:37:49 +0530
committerGitHub2016-07-03 17:37:49 +0530
commit5b7d23e59ba3ac9a96b326be682fe876ba8094d4 (patch)
tree2cc6037dee1a1d66d341d9115bc57954ad804a0b
parent21ac73969ae297e6985fc05c6b377b208e69fa3c (diff)
parent7c2c8701844182cb2338795c8e98514d19de42ca (diff)
downloadxcos-on-web-5b7d23e59ba3ac9a96b326be682fe876ba8094d4.tar.gz
xcos-on-web-5b7d23e59ba3ac9a96b326be682fe876ba8094d4.tar.bz2
xcos-on-web-5b7d23e59ba3ac9a96b326be682fe876ba8094d4.zip
Merge pull request #113 from Pooja-Mahadev-Soundalgekar/master
DS
-rw-r--r--data_structures_correct/MATCATV.js36
-rw-r--r--data_structures_correct/MATDIAG.js35
-rw-r--r--data_structures_correct/MATEIG.js35
-rw-r--r--data_structures_correct/MATEXPM.js34
-rw-r--r--data_structures_correct/MATINV.js35
-rw-r--r--data_structures_correct/MATLU.js35
-rw-r--r--data_structures_correct/MATMAGPHI.js35
-rw-r--r--data_structures_correct/MATMUL.js24
-rw-r--r--data_structures_correct/MATPINV.js36
-rw-r--r--data_structures_correct/MATRESH.js35
10 files changed, 340 insertions, 0 deletions
diff --git a/data_structures_correct/MATCATV.js b/data_structures_correct/MATCATV.js
new file mode 100644
index 0000000..317309b
--- /dev/null
+++ b/data_structures_correct/MATCATV.js
@@ -0,0 +1,36 @@
+function MATCATV() {
+
+ MATCATV.prototype.define = function MATCATV() {
+ this.l1 = [[2], [2]];
+ this.function_name = "mat_catv";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in2 = new ScilabDouble([-1], [-1]);
+ model.in = new ScilabDouble([-2], [-3]);
+ model.intyp = new ScilabDouble([-1, -1]);
+ model.out = new ScilabDouble([0]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(2)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATCATV\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 3]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATCATV.prototype.details = function MATCATV() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/MATDIAG.js b/data_structures_correct/MATDIAG.js
new file mode 100644
index 0000000..c622a95
--- /dev/null
+++ b/data_structures_correct/MATDIAG.js
@@ -0,0 +1,35 @@
+function MATDIAG() {
+
+ MATDIAG.prototype.define = function MATDIAG() {
+ this.function_name = "mat_diag";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATDIAG\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATDIAG.prototype.details = function MATDIAG() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/MATEIG.js b/data_structures_correct/MATEIG.js
new file mode 100644
index 0000000..aefc690
--- /dev/null
+++ b/data_structures_correct/MATEIG.js
@@ -0,0 +1,35 @@
+function MATEIG() {
+
+ MATEIG.prototype.define = function MATEIG() {
+ this.function_name = "mat_vps";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([2]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)], [sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATEIG\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATEIG.prototype.details = function MATEIG() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/MATEXPM.js b/data_structures_correct/MATEXPM.js
new file mode 100644
index 0000000..6e58a87
--- /dev/null
+++ b/data_structures_correct/MATEXPM.js
@@ -0,0 +1,34 @@
+function MATEXPM() {
+
+ MATEXPM.prototype.define = function MATEXPM() {
+ this.function_name = "mat_expm";
+ this.funtyp = 4;
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATEXPM\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATEXPM.prototype.details = function MATEXPM() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/MATINV.js b/data_structures_correct/MATINV.js
new file mode 100644
index 0000000..e118137
--- /dev/null
+++ b/data_structures_correct/MATINV.js
@@ -0,0 +1,35 @@
+function MATINV() {
+
+ MATINV.prototype.define = function MATINV() {
+ this.function_name = "mat_inv";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATINV\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATINV.prototype.details = function MATINV() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/MATLU.js b/data_structures_correct/MATLU.js
new file mode 100644
index 0000000..126d164
--- /dev/null
+++ b/data_structures_correct/MATLU.js
@@ -0,0 +1,35 @@
+function MATLU() {
+
+ MATLU.prototype.define = function MATLU() {
+ this.function_name = "mat_lu";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1], [-1]);
+ model.out2 = new ScilabDouble([-1], [-1]);
+ model.outtyp = new ScilabDouble([1, 1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATLU\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATLU.prototype.details = function CSCOPE() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/MATMAGPHI.js b/data_structures_correct/MATMAGPHI.js
new file mode 100644
index 0000000..0748d27
--- /dev/null
+++ b/data_structures_correct/MATMAGPHI.js
@@ -0,0 +1,35 @@
+function MATMAGPHI() {
+
+ MATMAGPHI.prototype.define = function MATMAGPHI() {
+ this.function_name = "matz_abs";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([2]);
+ model.out = new ScilabDouble([-1], [-1]);
+ model.out2 = new ScilabDouble([-2], [-2]);
+ model.outtyp = new ScilabDouble([1, 1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATMAGPHI\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATMAGPHI.prototype.details = function MATMAGPHI() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/MATMUL.js b/data_structures_correct/MATMUL.js
new file mode 100644
index 0000000..88f425b
--- /dev/null
+++ b/data_structures_correct/MATMUL.js
@@ -0,0 +1,24 @@
+function MATMUL() {
+
+ MATMUL.prototype.define = function MATMUL() {
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["matmul_m"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1], [-2]);
+ model.in2 = new ScilabDouble([-2], [-3]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-3]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.ipar = new ScilabDouble([1]);
+
+ var label = new ScilabString([sci2exp(parseInt(getData(model.ipar)))]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATMUL\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATMUL.prototype.details = function MATMUL() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/MATPINV.js b/data_structures_correct/MATPINV.js
new file mode 100644
index 0000000..855d8a3
--- /dev/null
+++ b/data_structures_correct/MATPINV.js
@@ -0,0 +1,36 @@
+function MATPINV() {
+
+ MATPINV.prototype.define = function MATPINV() {
+ this.function_name = "mat_pinv";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATPINV\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATPINV.prototype.details = function MATPINV() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/MATRESH.js b/data_structures_correct/MATRESH.js
new file mode 100644
index 0000000..1db99fa
--- /dev/null
+++ b/data_structures_correct/MATRESH.js
@@ -0,0 +1,35 @@
+function MATRESH() {
+
+ MATRESH.prototype.define = function MATRESH() {
+ this.function_name = "mat_reshape";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)], [sci2exp([1, 1])], [sci2exp([1, 1])]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATRESH\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATRESH.prototype.details = function MATRESH() {
+ return this.x;
+ }
+}
+