diff options
author | Sunil Shetye | 2018-06-26 14:59:47 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-26 14:59:47 +0530 |
commit | eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00 (patch) | |
tree | 6378935263fe5cafd389b6893ac3b37a1dd4b1a7 /js/MatrixOp/MATSING.js | |
parent | afed64f1a0eab0b2d742088186d7bc340a2c895b (diff) | |
download | sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.tar.gz sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.tar.bz2 sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.zip |
add return value from scicos_getvalue to global vars
Diffstat (limited to 'js/MatrixOp/MATSING.js')
-rw-r--r-- | js/MatrixOp/MATSING.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/MatrixOp/MATSING.js b/js/MatrixOp/MATSING.js index aefdb157..6c26c5b9 100644 --- a/js/MatrixOp/MATSING.js +++ b/js/MatrixOp/MATSING.js @@ -39,18 +39,18 @@ function MATSING() { label[9-1] = []; } while (true) { - [ok,typ,decomptyp,lab] = scicos_getvalue("Set MATSVD block parameters",[["Datatype(1=real double 2=Complex)"],["decomposition type (1=singular values 2=sing values+matrix U & V)"]],list("vec",1,"vec",1),label); + [ok,this.typ,this.decomptyp,this.lab] = scicos_getvalue("Set MATSVD block parameters",[["Datatype(1=real double 2=Complex)"],["decomposition type (1=singular values 2=sing values+matrix U & V)"]],list("vec",1,"vec",1),label); if (!ok) { break; } - label = lab; - if ((typ==1)) { - if ((decomptyp==1)) { + label = this.lab; + if ((this.typ==1)) { + if ((this.decomptyp==1)) { function_name = "mat_sing"; in1 = [-1,-2]; out = [-1,1]; ot = 1; - } else if ((decomptyp==2)) { + } else if ((this.decomptyp==2)) { function_name = "mat_svd"; in1 = [-1,-2]; out = [[-1,-1],[-1,-2],[-2,-2]]; @@ -60,13 +60,13 @@ function MATSING() { ok = false; } it = 1; - } else if ((typ==2)) { - if ((decomptyp==1)) { + } else if ((this.typ==2)) { + if ((this.decomptyp==1)) { function_name = "matz_sing"; in1 = [-1,-2]; out = [-1,1]; ot = 1; - } else if ((decomptyp==2)) { + } else if ((this.decomptyp==2)) { function_name = "matz_svd"; in1 = [-1,-2]; out = [[-1,-1],[-1,-2],[-2,-2]]; |