summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/FULLRF.dem.sce18
-rw-r--r--demos/GIVENS.dem.sce18
-rw-r--r--demos/HESS.dem.sce18
-rw-r--r--demos/HOUSEHOLDER.dem.sce18
-rw-r--r--demos/NORM.dem.sce18
-rw-r--r--demos/QR.dem.sce18
-rw-r--r--demos/ROWCOMP.dem.sce18
-rw-r--r--demos/SPEC.dem.sce18
-rw-r--r--demos/SQROOT.dem.sce18
-rw-r--r--demos/SVA.dem.sce18
-rw-r--r--demos/SVD.dem.sce4
-rw-r--r--demos/scilab2c.dem.gateway.sce13
-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
17 files changed, 194 insertions, 5 deletions
diff --git a/demos/FULLRF.dem.sce b/demos/FULLRF.dem.sce
new file mode 100644
index 0000000..3aeeba2
--- /dev/null
+++ b/demos/FULLRF.dem.sce
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testfullrf/testfullrf.sci", TMPDIR,SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testfullrf");
+
+editor(TMPDIR+"/main.c");
diff --git a/demos/GIVENS.dem.sce b/demos/GIVENS.dem.sce
new file mode 100644
index 0000000..0ab2d2a
--- /dev/null
+++ b/demos/GIVENS.dem.sce
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testgivens/testgivens.sci", TMPDIR,SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testgivens");
+
+editor(TMPDIR+"/main.c");
diff --git a/demos/HESS.dem.sce b/demos/HESS.dem.sce
new file mode 100644
index 0000000..4c70d67
--- /dev/null
+++ b/demos/HESS.dem.sce
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testhess/testhess.sci", TMPDIR,SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testhess");
+
+editor(TMPDIR+"/main.c");
diff --git a/demos/HOUSEHOLDER.dem.sce b/demos/HOUSEHOLDER.dem.sce
new file mode 100644
index 0000000..7447407
--- /dev/null
+++ b/demos/HOUSEHOLDER.dem.sce
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testhouseholder/testhouseholder.sci", TMPDIR,SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testhouseholder");
+
+editor(TMPDIR+"/main.c");
diff --git a/demos/NORM.dem.sce b/demos/NORM.dem.sce
new file mode 100644
index 0000000..1de3feb
--- /dev/null
+++ b/demos/NORM.dem.sce
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testnorm/testnorm.sci", TMPDIR,SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testnorm");
+
+editor(TMPDIR+"/main.c");
diff --git a/demos/QR.dem.sce b/demos/QR.dem.sce
new file mode 100644
index 0000000..7d2fc1a
--- /dev/null
+++ b/demos/QR.dem.sce
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testqr/testQR.sci", TMPDIR,SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testqr");
+
+editor(TMPDIR+"/main.c");
diff --git a/demos/ROWCOMP.dem.sce b/demos/ROWCOMP.dem.sce
new file mode 100644
index 0000000..6557eb4
--- /dev/null
+++ b/demos/ROWCOMP.dem.sce
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testrowcomp/testrcomp.sci", TMPDIR,SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testrowcomp");
+
+editor(TMPDIR+"/main.c");
diff --git a/demos/SPEC.dem.sce b/demos/SPEC.dem.sce
new file mode 100644
index 0000000..423c152
--- /dev/null
+++ b/demos/SPEC.dem.sce
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testspec/testspec.sci", TMPDIR,SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testspec");
+
+editor(TMPDIR+"/main.c");
diff --git a/demos/SQROOT.dem.sce b/demos/SQROOT.dem.sce
new file mode 100644
index 0000000..676d5e5
--- /dev/null
+++ b/demos/SQROOT.dem.sce
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci", TMPDIR,SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testsqroot");
+
+editor(TMPDIR+"/main.c");
diff --git a/demos/SVA.dem.sce b/demos/SVA.dem.sce
new file mode 100644
index 0000000..3ced74f5
--- /dev/null
+++ b/demos/SVA.dem.sce
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testsva/testsva.sci", TMPDIR,SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/testsva");
+
+editor(TMPDIR+"/main.c");
diff --git a/demos/SVD.dem.sce b/demos/SVD.dem.sce
index d466964..aa35cce 100644
--- a/demos/SVD.dem.sce
+++ b/demos/SVD.dem.sce
@@ -13,8 +13,6 @@ lines(0);
global SCI2CHOME
-scilab2c(SCI2CHOME+"tests/unit_tests/testLinearAlgebra/testsvd/testsvd.sci", TMPDIR);
+scilab2c(SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/test_svd/testsvd.sci", TMPDIR,SCI2CHOME+"/tests/unit_tests/testLinearAlgebra/test_svd");
editor(TMPDIR+"/main.c");
-
-
diff --git a/demos/scilab2c.dem.gateway.sce b/demos/scilab2c.dem.gateway.sce
index bb5d4d8..a9fb0fb 100644
--- a/demos/scilab2c.dem.gateway.sce
+++ b/demos/scilab2c.dem.gateway.sce
@@ -15,13 +15,24 @@ demopath = get_absolute_file_path("scilab2c.dem.gateway.sce");
subdemolist = ["Trigonometric Identity" , "TrigonometricIdentity.dem.sce";
"Linear Regression" , "LinearRegression.dem.sce";
"Symbols", "Symbols.dem.sce";
- "High Pass Filter", "Filter.dem.sce";
+ "High Pass Filter", "Filter.dem.sce";
"Jacobi functions","Jacobi.dem.sce";
"Analog Filters","analogFilter.dem.sce";
"Discrete Cosine Transform" , "test_dct.dem.sce";
"Inverse Cosine Transform" , "test_idct.dem.sce";
"String Functions","string.dem.sce";
"Filter Responses","FilterResponse.dem.sce";
+ "Singular Value Decomposition", "SVD.dem.sce";
+ "Singular Value Approximation", "SVA.dem.sce";
+ "SQROOT", "SQROOT.dem.sce";
+ "SPEC", "SPEC.dem.sce";
+ "ROWCOMP","ROWCOMP.dem.sce";
+ "QR Decomposition", "QR.dem.sce";
+ "NORM type 2", "NORM.dem.sce";
+ "HOUSEHOLDER","HOUSEHOLDER.dem.sce";
+ "HESS", "HESS.dem.sce";
+ "GIVENS Transformation", "GIVENS.dem.sce";
+ "Full rank factorization","FULLRF.dem.sce";
];
subdemolist(:,2) = demopath + subdemolist(:,2);
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