diff options
author | Brijeshcr | 2017-07-07 18:19:27 +0530 |
---|---|---|
committer | GitHub | 2017-07-07 18:19:27 +0530 |
commit | a505550d38b2b886c61863a85be67faf02ad604b (patch) | |
tree | c0424024c16aa122a5a38686dfed75a4c4866e95 /2.3-1/tests | |
parent | 2a6c003c67faafd257984f4ae632e40bc6fa9a32 (diff) | |
parent | 8d1da9568248c9a0572da08a7039e75e84d782b0 (diff) | |
download | Scilab2C-a505550d38b2b886c61863a85be67faf02ad604b.tar.gz Scilab2C-a505550d38b2b886c61863a85be67faf02ad604b.tar.bz2 Scilab2C-a505550d38b2b886c61863a85be67faf02ad604b.zip |
Merge branch 'master' into master
Diffstat (limited to '2.3-1/tests')
8 files changed, 16 insertions, 2 deletions
diff --git a/2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci b/2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci index 13624cfb..c6e09a0c 100644 --- a/2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci +++ b/2.3-1/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/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci b/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci new file mode 100644 index 00000000..33c44622 --- /dev/null +++ b/2.3-1/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/2.3-1/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci b/2.3-1/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci new file mode 100644 index 00000000..deed0f99 --- /dev/null +++ b/2.3-1/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/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvd.sci b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvd.sci index 9a3a50a6..c5da4cd3 100644 --- a/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvd.sci +++ b/2.3-1/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/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdeconomy.sci b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci index 0459c790..0459c790 100644 --- a/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdeconomy.sci +++ b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdeconomy.sci diff --git a/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdim.sci b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdim.sci index 16633cce..16633cce 100644 --- a/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdim.sci +++ b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdim.sci diff --git a/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci index 108acde8..108acde8 100644 --- a/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci +++ b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdrank.sci diff --git a/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdreal.sci b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci index 0e68e003..0e68e003 100644 --- a/2.3-1/tests/unit_tests/testLinearAlgebra/testsvd/testsvdreal.sci +++ b/2.3-1/tests/unit_tests/testLinearAlgebra/test_svd/testsvdreal.sci |