summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/testLinearAlgebra/testfullrf/testfullrf.sci7
-rw-r--r--tests/unit_tests/testLinearAlgebra/testgivens/testgivens.sci7
-rw-r--r--tests/unit_tests/testLinearAlgebra/testhouseholder/testhouseholder.sci6
-rw-r--r--tests/unit_tests/testLinearAlgebra/testqr/testQR.sci8
-rw-r--r--tests/unit_tests/testLinearAlgebra/testrowcomp/testrcomp.sci6
5 files changed, 34 insertions, 0 deletions
diff --git a/tests/unit_tests/testLinearAlgebra/testfullrf/testfullrf.sci b/tests/unit_tests/testLinearAlgebra/testfullrf/testfullrf.sci
new file mode 100644
index 0000000..49d3c7a
--- /dev/null
+++ b/tests/unit_tests/testLinearAlgebra/testfullrf/testfullrf.sci
@@ -0,0 +1,7 @@
+function testfullrf()
+ A = [1,2,3;4,5,6;7,8,9]
+ [Q,M,rk] = fullrf(A)
+ disp(Q)
+ disp(M)
+ disp(rk)
+endfunction
diff --git a/tests/unit_tests/testLinearAlgebra/testgivens/testgivens.sci b/tests/unit_tests/testLinearAlgebra/testgivens/testgivens.sci
new file mode 100644
index 0000000..3ef0d28
--- /dev/null
+++ b/tests/unit_tests/testLinearAlgebra/testgivens/testgivens.sci
@@ -0,0 +1,7 @@
+function testgivens()
+ a = [1]
+ b = [2]
+ [u,c] = givens(a,b)
+ disp(u)
+ disp(c)
+endfunction
diff --git a/tests/unit_tests/testLinearAlgebra/testhouseholder/testhouseholder.sci b/tests/unit_tests/testLinearAlgebra/testhouseholder/testhouseholder.sci
new file mode 100644
index 0000000..30b4c20
--- /dev/null
+++ b/tests/unit_tests/testLinearAlgebra/testhouseholder/testhouseholder.sci
@@ -0,0 +1,6 @@
+function testhouseholder()
+ A = [1;2;3;4;5]
+ B = [6;7;8;9;10]
+ u = householder(A,B)
+ disp(u)
+endfunction
diff --git a/tests/unit_tests/testLinearAlgebra/testqr/testQR.sci b/tests/unit_tests/testLinearAlgebra/testqr/testQR.sci
new file mode 100644
index 0000000..292e1cb
--- /dev/null
+++ b/tests/unit_tests/testLinearAlgebra/testqr/testQR.sci
@@ -0,0 +1,8 @@
+function testQR()
+ A = [1,2,3;4,5,6]
+ [u,a,rk,e] = qr(A);
+ disp(u)
+ disp(a)
+ disp(rk)
+ disp(e)
+endfunction
diff --git a/tests/unit_tests/testLinearAlgebra/testrowcomp/testrcomp.sci b/tests/unit_tests/testLinearAlgebra/testrowcomp/testrcomp.sci
new file mode 100644
index 0000000..f8da948
--- /dev/null
+++ b/tests/unit_tests/testLinearAlgebra/testrowcomp/testrcomp.sci
@@ -0,0 +1,6 @@
+function testrcomp()
+ A = [1,2,3;4,5,6]
+ [u,rk] = rowcomp(A,"qr")
+ disp(u)
+ disp(rk)
+endfunction