diff options
author | Sandeep Gupta | 2017-07-06 15:16:16 +0530 |
---|---|---|
committer | Sandeep Gupta | 2017-07-06 15:16:16 +0530 |
commit | cb1d99232e521c34e9f0c271a6c4176cc7b9cbe4 (patch) | |
tree | 47a9dacb127137102fefd3c4dfc7ce292381ae78 /src/c/linearAlgebra/sva | |
parent | d5463e3c142c57a8f4dcf64da54e72d6af9a968b (diff) | |
download | Scilab2C_fossee_old-cb1d99232e521c34e9f0c271a6c4176cc7b9cbe4.tar.gz Scilab2C_fossee_old-cb1d99232e521c34e9f0c271a6c4176cc7b9cbe4.tar.bz2 Scilab2C_fossee_old-cb1d99232e521c34e9f0c271a6c4176cc7b9cbe4.zip |
Changes
Diffstat (limited to 'src/c/linearAlgebra/sva')
-rw-r--r-- | src/c/linearAlgebra/sva/dsvaa.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/c/linearAlgebra/sva/dsvaa.c b/src/c/linearAlgebra/sva/dsvaa.c index 0d34d8d..691694e 100644 --- a/src/c/linearAlgebra/sva/dsvaa.c +++ b/src/c/linearAlgebra/sva/dsvaa.c @@ -20,6 +20,7 @@ #define eps 2.22044604925e-16 +/* Ref: Scilab source code */ void dsvaa(int ninp,double *in1,int row,int col,double in2,double *out1, \ double *out2,double *out3){ @@ -70,21 +71,21 @@ void dsvaa(int ninp,double *in1,int row,int col,double in2,double *out1, \ } } arow = M; - acol = Min(M,N); + acol = Min(M,N); /* Copying, the output in required format */ for(i=0;i<arow;i++){ for(j=0;j<rk;j++){ out1[i+j*row]=U[i+j*arow]; } } arow = Min(M,N); - for(i=0;i<rk;i++){ + for(i=0;i<rk;i++){ /* Copying, the output in required format */ for(j=0;j<rk;j++){ out2[i+j*(int)rk] = S[i+j*arow]; } } arow = N; acol = Min(M,N); - for(i=0;i<arow;i++){ + for(i=0;i<arow;i++){ /* Copying, the output in required format */ for(j=0;j<rk;j++){ out3[i+j*arow] = V[i+j*arow]; } |