diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci | 2 | ||||
-rw-r--r-- | tests/unit_tests/test01_DCT/scilabcode/main.sci | 7 | ||||
-rw-r--r-- | tests/unit_tests/test02_IDCT/scilabcode/testidct.sci | 7 | ||||
-rw-r--r-- | tests/unit_tests/testLinearAlgebra/test_svd/testsvd.sci (renamed from tests/unit_tests/testLinearAlgebra/testsvd/testsvd.sci) | 2 | ||||
-rw-r--r-- | tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci (renamed from tests/unit_tests/testLinearAlgebra/testsvd/testsvdeconomy.sci) | 0 | ||||
-rw-r--r-- | tests/unit_tests/testLinearAlgebra/test_svd/testsvdim.sci (renamed from tests/unit_tests/testLinearAlgebra/testsvd/testsvdim.sci) | 0 | ||||
-rw-r--r-- | tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci (renamed from tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci) | 0 | ||||
-rw-r--r-- | tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci (renamed from tests/unit_tests/testLinearAlgebra/testsvd/testsvdreal.sci) | 0 |
8 files changed, 16 insertions, 2 deletions
diff --git a/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci b/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci index 13624cf..c6e09a0 100644 --- a/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci +++ b/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci @@ -1,4 +1,4 @@ -//SCI2C: DEFAULT_PRECISION= DOUBLE
+//SCI2C: DEFAULT_PRECISION= FLOAT
function mainfunction()
diff --git a/tests/unit_tests/test01_DCT/scilabcode/main.sci b/tests/unit_tests/test01_DCT/scilabcode/main.sci new file mode 100644 index 0000000..33c4462 --- /dev/null +++ b/tests/unit_tests/test01_DCT/scilabcode/main.sci @@ -0,0 +1,7 @@ +//SCI2C: DEFAULT_PRECISION= FLOAT +//test for discrete cosine tranform using precision as float +function main() + b=([5 2 6 7;1 9 7 6+%i]) + y=dct(b,1) //calling dct + disp(y) +endfunction diff --git a/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci b/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci new file mode 100644 index 0000000..deed0f9 --- /dev/null +++ b/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci @@ -0,0 +1,7 @@ +//SCI2C: DEFAULT_PRECISION= FLOAT +//test for inverse discrete cosine tranfrom +function testidct() + b=[1 2 3;4 5 6+%i] //declaring complex matrix + y=idct(b) //calling idct + disp(y) +endfunction diff --git a/tests/unit_tests/testLinearAlgebra/testsvd/testsvd.sci b/tests/unit_tests/testLinearAlgebra/test_svd/testsvd.sci index 9a3a50a..c5da4cd 100644 --- a/tests/unit_tests/testLinearAlgebra/testsvd/testsvd.sci +++ b/tests/unit_tests/testLinearAlgebra/test_svd/testsvd.sci @@ -1,6 +1,6 @@ function testsvd() disp(" ** SVD Function (Singular Value Decomposition)** ") A = [1,2,3,11;4,5,6,12;7,8,9,13] // Matrix - A - [s = svd(A) // Calling Function Sequence + s = svd(A) // Calling Function Sequence disp(s) endfunction diff --git a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdeconomy.sci b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci index 0459c79..0459c79 100644 --- a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdeconomy.sci +++ b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci diff --git a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdim.sci b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdim.sci index 16633cc..16633cc 100644 --- a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdim.sci +++ b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdim.sci diff --git a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci index 108acde..108acde 100644 --- a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci +++ b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci diff --git a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdreal.sci b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci index 0e68e00..0e68e00 100644 --- a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdreal.sci +++ b/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci |