summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSandeep Gupta2017-07-07 01:57:31 +0530
committerSandeep Gupta2017-07-07 01:57:31 +0530
commiteecd667c2f6ad705cb56fa0c8718b4ab37ac92d5 (patch)
treea17277f57420952df633c686fae8e864152b3214 /tests
parent3f6c53783f04d515c4e63be884709983fa547d18 (diff)
downloadScilab2C_fossee_old-eecd667c2f6ad705cb56fa0c8718b4ab37ac92d5.tar.gz
Scilab2C_fossee_old-eecd667c2f6ad705cb56fa0c8718b4ab37ac92d5.tar.bz2
Scilab2C_fossee_old-eecd667c2f6ad705cb56fa0c8718b4ab37ac92d5.zip
SVA Function
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/testLinearAlgebra/testsva/testsva.sci7
-rw-r--r--tests/unit_tests/testLinearAlgebra/testsva/testsvatol.sci9
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/unit_tests/testLinearAlgebra/testsva/testsva.sci b/tests/unit_tests/testLinearAlgebra/testsva/testsva.sci
new file mode 100644
index 0000000..c710723
--- /dev/null
+++ b/tests/unit_tests/testLinearAlgebra/testsva/testsva.sci
@@ -0,0 +1,7 @@
+function testsva()
+ a = [1,2,3,4;5,6,7,8;9,10,11,12]
+ [u,s,v] = sva(a)
+ disp(u)
+ disp(s)
+ disp(v)
+endfunction
diff --git a/tests/unit_tests/testLinearAlgebra/testsva/testsvatol.sci b/tests/unit_tests/testLinearAlgebra/testsva/testsvatol.sci
new file mode 100644
index 0000000..b199ec3
--- /dev/null
+++ b/tests/unit_tests/testLinearAlgebra/testsva/testsvatol.sci
@@ -0,0 +1,9 @@
+// function Singular Value Approx.
+
+function testsvatol()
+ a = [1,2,3,4;5,6,7,8;9,10,11,12]
+ [u,s,v] = sva(a,1)
+ disp(u)
+ disp(s)
+ disp(v)
+endfunction