Mentions légales du service

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

Update matfaust tests as 4b3cc14f did for pyfaust (change in default norm2 parameters).

parent f84234f8
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,7 @@ classdef FaustFactoryTest < matlab.unittest.TestCase ...@@ -115,7 +115,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'), 0.26851, 'AbsTol', 0.00001) this.verifyEqual(norm(E,'fro')/norm(M,'fro'), 0.26844, 'AbsTol', 0.00001)
end end
function test_hierarchicalCplx(this) function test_hierarchicalCplx(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'),0.272704, 'AbsTol', 0.0001) this.verifyEqual(norm(E,'fro')/norm(M,'fro'),0.27353, 'AbsTol', 0.0001)
end end
function test_fgft_givens(this) function test_fgft_givens(this)
...@@ -274,7 +274,7 @@ classdef FaustFactoryTest < matlab.unittest.TestCase ...@@ -274,7 +274,7 @@ classdef FaustFactoryTest < matlab.unittest.TestCase
err = norm(E,'fro')/norm(U,'fro') err = norm(E,'fro')/norm(U,'fro')
% matrix to factorize and reference relative error come from % matrix to factorize and reference relative error come from
% misc/test/src/C++/hierarchicalFactorizationFFT.cpp % misc/test/src/C++/hierarchicalFactorizationFFT.cpp
this.verifyEqual(err, 0.05539, 'AbsTol', 0.00001) this.verifyEqual(err, 0.05550, 'AbsTol', 0.00001)
end end
function testHadamard(this) function testHadamard(this)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment