diff options
author | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
commit | ca1a67f78f7de40a7956c69e41f4ddae2542f4f2 (patch) | |
tree | 6a07bd0428e542567726ff7325fcb71203ad6d15 /js/MatrixOp | |
parent | 5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (diff) | |
download | sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.gz sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.bz2 sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.zip |
add options block
Diffstat (limited to 'js/MatrixOp')
-rw-r--r-- | js/MatrixOp/CUMSUM.js | 5 | ||||
-rw-r--r-- | js/MatrixOp/EXTRACT.js | 6 | ||||
-rw-r--r-- | js/MatrixOp/EXTTRI.js | 5 | ||||
-rw-r--r-- | js/MatrixOp/MATBKSL.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/MATCATH.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/MATCATV.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/MATDET.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/MATDIAG.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/MATDIV.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/MATEIG.js | 5 | ||||
-rw-r--r-- | js/MatrixOp/MATEXPM.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/MATINV.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/MATLU.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/MATMAGPHI.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/MATMUL.js | 6 | ||||
-rw-r--r-- | js/MatrixOp/MATPINV.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/MATRESH.js | 6 | ||||
-rw-r--r-- | js/MatrixOp/MATSING.js | 5 | ||||
-rw-r--r-- | js/MatrixOp/MATSUM.js | 5 | ||||
-rw-r--r-- | js/MatrixOp/MATTRAN.js | 5 | ||||
-rw-r--r-- | js/MatrixOp/MATZCONJ.js | 3 | ||||
-rw-r--r-- | js/MatrixOp/MATZREIM.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/RICC.js | 5 | ||||
-rw-r--r-- | js/MatrixOp/ROOTCOEF.js | 5 | ||||
-rw-r--r-- | js/MatrixOp/SQRT.js | 4 | ||||
-rw-r--r-- | js/MatrixOp/SUBMAT.js | 9 |
26 files changed, 122 insertions, 0 deletions
diff --git a/js/MatrixOp/CUMSUM.js b/js/MatrixOp/CUMSUM.js index a940d7bb..b03ea3f0 100644 --- a/js/MatrixOp/CUMSUM.js +++ b/js/MatrixOp/CUMSUM.js @@ -29,6 +29,11 @@ function CUMSUM() { return this.x; } CUMSUM.prototype.get = function CUMSUM() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["Sum along (0=the first non singleton dimension 1=Rows 2=Columns)",this.decomptyp], + } + return options; } CUMSUM.prototype.set = function CUMSUM() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/EXTRACT.js b/js/MatrixOp/EXTRACT.js index 763e84fc..eb76f9c2 100644 --- a/js/MatrixOp/EXTRACT.js +++ b/js/MatrixOp/EXTRACT.js @@ -29,6 +29,12 @@ function EXTRACT() { return this.x; } EXTRACT.prototype.get = function EXTRACT() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + a:["Lines to extract",this.a], + b:["Columns to extract",this.b], + } + return options; } EXTRACT.prototype.set = function EXTRACT() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/EXTTRI.js b/js/MatrixOp/EXTTRI.js index 385c22d3..b7a48aca 100644 --- a/js/MatrixOp/EXTTRI.js +++ b/js/MatrixOp/EXTTRI.js @@ -29,6 +29,11 @@ function EXTTRI() { return this.x; } EXTTRI.prototype.get = function EXTTRI() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["extraction type (1=lower 2=upper 3=diagonal)",this.decomptyp], + } + return options; } EXTTRI.prototype.set = function EXTTRI() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATBKSL.js b/js/MatrixOp/MATBKSL.js index cd80d57f..2b1b613f 100644 --- a/js/MatrixOp/MATBKSL.js +++ b/js/MatrixOp/MATBKSL.js @@ -29,6 +29,10 @@ function MATBKSL() { return this.x; } MATBKSL.prototype.get = function MATBKSL() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + } + return options; } MATBKSL.prototype.set = function MATBKSL() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATCATH.js b/js/MatrixOp/MATCATH.js index 093ec5c4..945141bf 100644 --- a/js/MatrixOp/MATCATH.js +++ b/js/MatrixOp/MATCATH.js @@ -29,6 +29,10 @@ function MATCATH() { return this.x; } MATCATH.prototype.get = function MATCATH() { + var options = { + nin:["Number of input",this.nin], + } + return options; } MATCATH.prototype.set = function MATCATH() { this.nin = parseFloat((arguments[0]["nin"])) diff --git a/js/MatrixOp/MATCATV.js b/js/MatrixOp/MATCATV.js index b7f9a118..5a82ef49 100644 --- a/js/MatrixOp/MATCATV.js +++ b/js/MatrixOp/MATCATV.js @@ -30,6 +30,10 @@ function MATCATV() { return this.x; } MATCATV.prototype.get = function MATCATV() { + var options = { + nin:["Number od inputs",this.nin], + } + return options; } MATCATV.prototype.set = function MATCATV() { this.nin = parseFloat((arguments[0]["nin"])) diff --git a/js/MatrixOp/MATDET.js b/js/MatrixOp/MATDET.js index eb58d2a8..ebb0cef5 100644 --- a/js/MatrixOp/MATDET.js +++ b/js/MatrixOp/MATDET.js @@ -29,6 +29,10 @@ function MATDET() { return this.x; } MATDET.prototype.get = function MATDET() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATDET.prototype.set = function MATDET() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATDIAG.js b/js/MatrixOp/MATDIAG.js index ce4df9c6..5fe82b25 100644 --- a/js/MatrixOp/MATDIAG.js +++ b/js/MatrixOp/MATDIAG.js @@ -29,6 +29,10 @@ function MATDIAG() { return this.x; } MATDIAG.prototype.get = function MATDIAG() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + } + return options; } MATDIAG.prototype.set = function MATDIAG() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATDIV.js b/js/MatrixOp/MATDIV.js index 45fb81e3..113a3369 100644 --- a/js/MatrixOp/MATDIV.js +++ b/js/MatrixOp/MATDIV.js @@ -29,6 +29,10 @@ function MATDIV() { return this.x; } MATDIV.prototype.get = function MATDIV() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATDIV.prototype.set = function MATDIV() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATEIG.js b/js/MatrixOp/MATEIG.js index 2a365fe8..87568249 100644 --- a/js/MatrixOp/MATEIG.js +++ b/js/MatrixOp/MATEIG.js @@ -29,6 +29,11 @@ function MATEIG() { return this.x; } MATEIG.prototype.get = function MATEIG() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["decomposition type (1=eig values 2=eig values+eig vectors",this.decomptyp], + } + return options; } MATEIG.prototype.set = function MATEIG() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATEXPM.js b/js/MatrixOp/MATEXPM.js index cb40e3cd..02ba3c6b 100644 --- a/js/MatrixOp/MATEXPM.js +++ b/js/MatrixOp/MATEXPM.js @@ -29,6 +29,10 @@ function MATEXPM() { return this.x; } MATEXPM.prototype.get = function MATEXPM() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATEXPM.prototype.set = function MATEXPM() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATINV.js b/js/MatrixOp/MATINV.js index 74a32218..57d4987b 100644 --- a/js/MatrixOp/MATINV.js +++ b/js/MatrixOp/MATINV.js @@ -29,6 +29,10 @@ function MATINV() { return this.x; } MATINV.prototype.get = function MATINV() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATINV.prototype.set = function MATINV() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATLU.js b/js/MatrixOp/MATLU.js index 36497759..ff5564f2 100644 --- a/js/MatrixOp/MATLU.js +++ b/js/MatrixOp/MATLU.js @@ -29,6 +29,10 @@ function MATLU() { return this.x; } MATLU.prototype.get = function MATLU() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATLU.prototype.set = function MATLU() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATMAGPHI.js b/js/MatrixOp/MATMAGPHI.js index 25688e97..5ae544ac 100644 --- a/js/MatrixOp/MATMAGPHI.js +++ b/js/MatrixOp/MATMAGPHI.js @@ -29,6 +29,10 @@ function MATMAGPHI() { return this.x; } MATMAGPHI.prototype.get = function MATMAGPHI() { + var options = { + decomptyp:["decomposition type (1=Complex2MAG&PHI 2=MAG&PHI2Complex)",this.decomptyp], + } + return options; } MATMAGPHI.prototype.set = function MATMAGPHI() { this.decomptyp = parseFloat((arguments[0]["decomptyp"])) diff --git a/js/MatrixOp/MATMUL.js b/js/MatrixOp/MATMUL.js index a9e39de4..00e69390 100644 --- a/js/MatrixOp/MATMUL.js +++ b/js/MatrixOp/MATMUL.js @@ -18,6 +18,12 @@ function MATMUL() { return this.x; } MATMUL.prototype.get = function MATMUL() { + var options = { + dtype:["Datatype(1=real double 2=Complex 3=int32 ...)",this.dtype], + rule:["Multiplication rule",this.rule], + np:["Do on Overflow(0=Nothing 1=Saturate 2=Error)",this.np], + } + return options; } MATMUL.prototype.set = function MATMUL() { this.dtype = parseFloat((arguments[0]["dtype"])) diff --git a/js/MatrixOp/MATPINV.js b/js/MatrixOp/MATPINV.js index fd8ca1bd..ca3083a9 100644 --- a/js/MatrixOp/MATPINV.js +++ b/js/MatrixOp/MATPINV.js @@ -29,6 +29,10 @@ function MATPINV() { return this.x; } MATPINV.prototype.get = function MATPINV() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATPINV.prototype.set = function MATPINV() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATRESH.js b/js/MatrixOp/MATRESH.js index 1a44ec6d..f88b73ea 100644 --- a/js/MatrixOp/MATRESH.js +++ b/js/MatrixOp/MATRESH.js @@ -29,6 +29,12 @@ function MATRESH() { return this.x; } MATRESH.prototype.get = function MATRESH() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + l1:["input size",this.l1], + out:["output size desired",this.out], + } + return options; } MATRESH.prototype.set = function MATRESH() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATSING.js b/js/MatrixOp/MATSING.js index edeaf552..1d1aac24 100644 --- a/js/MatrixOp/MATSING.js +++ b/js/MatrixOp/MATSING.js @@ -29,6 +29,11 @@ function MATSING() { return this.x; } MATSING.prototype.get = function MATSING() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["decomposition type (1=singular values 2=sing values+matrix U & V)",this.decomptyp], + } + return options; } MATSING.prototype.set = function MATSING() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATSUM.js b/js/MatrixOp/MATSUM.js index 8200c76d..3d10db3c 100644 --- a/js/MatrixOp/MATSUM.js +++ b/js/MatrixOp/MATSUM.js @@ -29,6 +29,11 @@ function MATSUM() { return this.x; } MATSUM.prototype.get = function MATSUM() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["Sum along (0=all 1=lines 2=Columns)",this.decomptyp], + } + return options; } MATSUM.prototype.set = function MATSUM() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATTRAN.js b/js/MatrixOp/MATTRAN.js index 7f06522c..a983ea27 100644 --- a/js/MatrixOp/MATTRAN.js +++ b/js/MatrixOp/MATTRAN.js @@ -17,6 +17,11 @@ function MATTRAN() { return this.x; } MATTRAN.prototype.get = function MATTRAN() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + rule:["rule (1=.\' 2=\')",this.rule], + } + return options; } MATTRAN.prototype.set = function MATTRAN() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATZCONJ.js b/js/MatrixOp/MATZCONJ.js index 438500e2..f2a49d4d 100644 --- a/js/MatrixOp/MATZCONJ.js +++ b/js/MatrixOp/MATZCONJ.js @@ -29,6 +29,9 @@ function MATZCONJ() { return this.x; } MATZCONJ.prototype.get = function MATZCONJ() { + var options = { + } + return options; } MATZCONJ.prototype.set = function MATZCONJ() { this.x = arg1; diff --git a/js/MatrixOp/MATZREIM.js b/js/MatrixOp/MATZREIM.js index 66eb87c5..9cee64b3 100644 --- a/js/MatrixOp/MATZREIM.js +++ b/js/MatrixOp/MATZREIM.js @@ -29,6 +29,10 @@ function MATZREIM() { return this.x; } MATZREIM.prototype.get = function MATZREIM() { + var options = { + decomptyp:["decomposition type (1=Complex2Real&Imag 2=Real&Imag2Complex)",this.decomptyp], + } + return options; } MATZREIM.prototype.set = function MATZREIM() { this.decomptyp = parseFloat((arguments[0]["decomptyp"])) diff --git a/js/MatrixOp/RICC.js b/js/MatrixOp/RICC.js index 8e2b989d..7c8b496d 100644 --- a/js/MatrixOp/RICC.js +++ b/js/MatrixOp/RICC.js @@ -29,6 +29,11 @@ function RICC() { return this.x; } RICC.prototype.get = function RICC() { + var options = { + tpe:["Type (1=Cont 2=Disc)",this.tpe], + mod:["Model(1=Schr 2=sign(cont) inv(disc))",this.mod], + } + return options; } RICC.prototype.set = function RICC() { this.tpe = parseFloat((arguments[0]["tpe"])) diff --git a/js/MatrixOp/ROOTCOEF.js b/js/MatrixOp/ROOTCOEF.js index 9e84d04a..51c5f758 100644 --- a/js/MatrixOp/ROOTCOEF.js +++ b/js/MatrixOp/ROOTCOEF.js @@ -29,6 +29,11 @@ function ROOTCOEF() { return this.x; } ROOTCOEF.prototype.get = function ROOTCOEF() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + inp:["input row size",this.inp], + } + return options; } ROOTCOEF.prototype.set = function ROOTCOEF() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/SQRT.js b/js/MatrixOp/SQRT.js index 24d5f40d..d10eabdc 100644 --- a/js/MatrixOp/SQRT.js +++ b/js/MatrixOp/SQRT.js @@ -19,6 +19,10 @@ function SQRT() { return this.x; } SQRT.prototype.get = function SQRT() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } SQRT.prototype.set = function SQRT() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/SUBMAT.js b/js/MatrixOp/SUBMAT.js index 09ee6391..c613a1fd 100644 --- a/js/MatrixOp/SUBMAT.js +++ b/js/MatrixOp/SUBMAT.js @@ -29,6 +29,15 @@ function SUBMAT() { return this.x; } SUBMAT.prototype.get = function SUBMAT() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + a:["Starting Row Index",this.a], + b:["Ending Row Index",this.b], + c:["Starting Column Index",this.c], + d:["Ending Column Index",this.d], + inp:["Input Dimensions",this.inp], + } + return options; } SUBMAT.prototype.set = function SUBMAT() { this.typ = parseFloat((arguments[0]["typ"])) |