Mentions légales du service

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

Fix matfaust/pyfaust butterfly unit tests of DFT factorization (it needs the...

Fix matfaust/pyfaust butterfly unit tests of DFT factorization (it needs the perm='bitrev' argument now).
parent 1b6a88e7
Branches
Tags
No related merge requests found
...@@ -678,7 +678,11 @@ classdef FaustFactoryTest < matlab.unittest.TestCase ...@@ -678,7 +678,11 @@ classdef FaustFactoryTest < matlab.unittest.TestCase
end end
for i=1:3 for i=1:3
type = types{i}; type = types{i};
F = butterfly(M, 'type', type); args = {M, 'type', type};
if ~ isreal(M)
args = [args, {'perm', 'bitrev'}];
end
F = butterfly(args{:});
this.verifyEqual(norm(full(F)-M)/norm(M), 0, 'AbsTol', 1e-6); this.verifyEqual(norm(full(F)-M)/norm(M), 0, 'AbsTol', 1e-6);
end end
end end
......
...@@ -1996,7 +1996,7 @@ class TestFaustFactory(unittest.TestCase): ...@@ -1996,7 +1996,7 @@ class TestFaustFactory(unittest.TestCase):
self.assertAlmostEqual((FH-H).norm()/norm(H), 0) self.assertAlmostEqual((FH-H).norm()/norm(H), 0)
D = dft(64).toarray() D = dft(64).toarray()
for dir in ['right', 'left', 'bbtree']: for dir in ['right', 'left', 'bbtree']:
FD = butterfly(D, type=dir) FD = butterfly(D, type=dir, perm='bitrev')
self.assertAlmostEqual((FD-D).norm()/norm(D), 0) self.assertAlmostEqual((FD-D).norm()/norm(D), 0)
def test_palm4msa_mhtp(self): def test_palm4msa_mhtp(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment