Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e0010b8e authored by hhakim's avatar hhakim
Browse files

Update pyfaust and matfaust unit tests in consequence of the fix bc7de9e1.

parent 114e4322
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ classdef FaustFactoryTest < matlab.unittest.TestCase ...@@ -76,7 +76,7 @@ classdef FaustFactoryTest < matlab.unittest.TestCase
E = full(F)-M; E = full(F)-M;
disp('err: ') disp('err: ')
norm(E,'fro')/norm(M,'fro') norm(E,'fro')/norm(M,'fro')
this.verifyEqual(norm(E,'fro')/norm(M,'fro'),1.17861, 'AbsTol', 0.0001) this.verifyEqual(norm(E,'fro')/norm(M,'fro'), 0.272814, 'AbsTol', 0.0001)
end end
function test_hierarchical(this) function test_hierarchical(this)
...@@ -155,7 +155,7 @@ classdef FaustFactoryTest < matlab.unittest.TestCase ...@@ -155,7 +155,7 @@ classdef FaustFactoryTest < matlab.unittest.TestCase
norm(E,'fro')/norm(M,'fro') norm(E,'fro')/norm(M,'fro')
% matrix to factorize and reference relative error come from % matrix to factorize and reference relative error come from
% misc/test/src/C++/hierarchicalFactorization.cpp % misc/test/src/C++/hierarchicalFactorization.cpp
this.verifyEqual(norm(E,'fro')/norm(M,'fro'),1.12118 , 'AbsTol', 0.0001) this.verifyEqual(norm(E,'fro')/norm(M,'fro'),0.272704, 'AbsTol', 0.0001)
end end
function test_fgft_givens(this) function test_fgft_givens(this)
......
...@@ -851,7 +851,7 @@ class TestFaustFactory(unittest.TestCase): ...@@ -851,7 +851,7 @@ class TestFaustFactory(unittest.TestCase):
print("err: ", norm(E,"fro")/norm(M,"fro")) print("err: ", norm(E,"fro")/norm(M,"fro"))
# matrix to factorize and reference relative error come from # matrix to factorize and reference relative error come from
# misc/test/src/C++/hierarchicalFactorization.cpp # misc/test/src/C++/hierarchicalFactorization.cpp
self.assertAlmostEqual(norm(E,"fro")/norm(M,"fro"), 1.12118, places=4) self.assertAlmostEqual(norm(E,"fro")/norm(M,"fro"), 0.272704 , places=4)
def testFactPalm4MSACplx(self): def testFactPalm4MSACplx(self):
print("Test pyfaust.fact.palm4msaCplx()") print("Test pyfaust.fact.palm4msaCplx()")
...@@ -888,7 +888,7 @@ class TestFaustFactory(unittest.TestCase): ...@@ -888,7 +888,7 @@ class TestFaustFactory(unittest.TestCase):
print("lambda:", _lambda) print("lambda:", _lambda)
# matrix to factorize and reference relative error come from # matrix to factorize and reference relative error come from
# misc/test/src/C++/test_palm4MSA.cpp # misc/test/src/C++/test_palm4MSA.cpp
self.assertAlmostEqual(norm(E,"fro")/norm(M,"fro"), 1.17861, places=4) self.assertAlmostEqual(norm(E,"fro")/norm(M,"fro"), 0.272814, places=4)
def testHadamard(self): def testHadamard(self):
print("Test pyfaust.wht()") print("Test pyfaust.wht()")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment