diff options
author | Sandeep Gupta | 2017-07-07 02:44:54 +0530 |
---|---|---|
committer | Sandeep Gupta | 2017-07-07 02:44:54 +0530 |
commit | 39e059c0f4f7b517718bcc803c1e24873e25b164 (patch) | |
tree | 4ebe8e96dc50ced3b61a192556ca43eb62e9f461 | |
parent | 3afee83ada15920249b2ff15fc7c5ee8970bb1cb (diff) | |
download | Scilab2C_fossee_old-39e059c0f4f7b517718bcc803c1e24873e25b164.tar.gz Scilab2C_fossee_old-39e059c0f4f7b517718bcc803c1e24873e25b164.tar.bz2 Scilab2C_fossee_old-39e059c0f4f7b517718bcc803c1e24873e25b164.zip |
SQROOT
-rw-r--r-- | jar/scilab_en_US_help.jar | bin | 90519 -> 90519 bytes | |||
-rw-r--r-- | src/c/linearAlgebra/sqroot/dsqroota.c | 2 | ||||
-rw-r--r-- | tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci | 5 |
3 files changed, 6 insertions, 1 deletions
diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar Binary files differindex 459cfbb..cef95e2 100644 --- a/jar/scilab_en_US_help.jar +++ b/jar/scilab_en_US_help.jar diff --git a/src/c/linearAlgebra/sqroot/dsqroota.c b/src/c/linearAlgebra/sqroot/dsqroota.c index a9062e6..1ba9726 100644 --- a/src/c/linearAlgebra/sqroot/dsqroota.c +++ b/src/c/linearAlgebra/sqroot/dsqroota.c @@ -99,7 +99,7 @@ void dsqroota(double *inp,int row,int col, double *out){ printf("\n"); }*/ /*sqrt of S*/ - printf("%d ",rk); + //printf("%d ",rk); for(i=0;i<rk;i++){ for(j=0;j<rk;j++){ A[i*rk+j] = sqrt(S[i*row+j]); diff --git a/tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci b/tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci new file mode 100644 index 0000000..63db1f4 --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci @@ -0,0 +1,5 @@ +function testsqroot() + a = [1,2,3;4,5,6;7,8,9]; + e = sqroot(a); + disp(e) +endfunction |