From 59190035a74ebad7543660d54fa4e89cf24d8e6f Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Fri, 7 Jul 2017 13:09:29 +0530 Subject: Demo-updated --- tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci (limited to 'tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci') diff --git a/tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci new file mode 100644 index 00000000..108acde8 --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci @@ -0,0 +1,13 @@ +function testsvdrank() + disp(" ** SVD Function (Singular Value Decomposition)** ") + A = [1,2,3,11;4,5,6,12;7,8,9,13] // Matrix - A + [u,s,vt,rk] = svd(A) // Calling Function Sequence + disp("U Matrix") + disp(u) // A = U*sigma*Vt + disp("Sigma Matrix") + disp(s) + disp(" V transpose ") + disp(vt) + disp("Rank") + disp(rk) +endfunction -- cgit