summaryrefslogtreecommitdiff
path: root/data_structures_correct
diff options
context:
space:
mode:
authorPooja Soundalgekar2016-07-03 01:51:40 +0530
committerPooja Soundalgekar2016-07-03 01:51:40 +0530
commit0a6f709dbf9851918baebade0b064f82c1ddcdaf (patch)
treea9dbe7d6903afa7a271d5ecaf524f3b62ebc0870 /data_structures_correct
parentf0fb591d425d58123b5ff765dfab75a199ef95cc (diff)
downloadxcos-on-web-0a6f709dbf9851918baebade0b064f82c1ddcdaf.tar.gz
xcos-on-web-0a6f709dbf9851918baebade0b064f82c1ddcdaf.tar.bz2
xcos-on-web-0a6f709dbf9851918baebade0b064f82c1ddcdaf.zip
ds_MATDIAG
Diffstat (limited to 'data_structures_correct')
-rw-r--r--data_structures_correct/MATDIAG.js35
1 files changed, 35 insertions, 0 deletions
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;
+ }
+}
+