summaryrefslogtreecommitdiff
path: root/js/Linear/DLSS.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 17:51:05 +0530
committerSunil Shetye2018-07-12 23:01:50 +0530
commit44a3807a94783e831070f0e003340af58dc64d16 (patch)
treecce50388afa463583d7a7aead34d40f5b02281f7 /js/Linear/DLSS.js
parent0047c3bea1d86b12a08544f6f0833c63e77f6eac (diff)
downloadsci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.gz
sci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.bz2
sci2js-44a3807a94783e831070f0e003340af58dc64d16.zip
change graphics to object
Diffstat (limited to 'js/Linear/DLSS.js')
-rw-r--r--js/Linear/DLSS.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/js/Linear/DLSS.js b/js/Linear/DLSS.js
index eb201209..c3145a36 100644
--- a/js/Linear/DLSS.js
+++ b/js/Linear/DLSS.js
@@ -40,8 +40,8 @@ function DLSS() {
this.D = parseFloat(arguments[0]["D"])
this.x0 = parseFloat(arguments[0]["x0"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
if (size(exprs,"*")==7) {
var exprs = exprs[[1:4,7]-1];
}
@@ -59,8 +59,8 @@ function DLSS() {
if (in1==0) {
var in1 = [];
}
- var tmpvar0 = size(this.A)
- var ms = tmpvar0[0]
+ var tmpvar0 = size(this.A);
+ var ms = tmpvar0[0];
var ns = tmpvar0[1];
var okD = true;
if (size(this.D,"*")!=size(this.C,1)*size(this.B,2)) {
@@ -75,12 +75,12 @@ function DLSS() {
if (ms!=ns||!okD) {
message(_("Matrix A is not square or D has wrong dimension"));
} else {
- var tmpvar1 = check_io(this.model,graphics,in1,out,1,[])
- this.model = tmpvar1[0]
- var graphics = tmpvar1[1]
+ var tmpvar1 = check_io(this.model,this.graphics,in1,out,1,[]);
+ this.model = tmpvar1[0];
+ this.graphics = tmpvar1[1];
var ok = tmpvar1[2];
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
var rpar = [[this.A.slice()],[this.B.slice()],[this.C.slice()],[this.D.slice()]];
if (this.D!=[]) {
if (norm(this.D,1)!=0) {
@@ -96,7 +96,7 @@ function DLSS() {
}
this.model.dstate = new ScilabDouble(this.x0.slice());
this.model.rpar = new ScilabDouble(rpar);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}