Mentions légales du service

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

Exclude complex type from tests of palm4msa/hierarchical 2020 (not supported...

Exclude complex type from tests of palm4msa/hierarchical 2020 (not supported yet) and raise an exception in pyfaust wrapper when a complex matrix is passed with backend 2020.
parent 2a619363
No related branches found
No related tags found
No related merge requests found
......@@ -202,7 +202,7 @@ if(MATIO_LIB_FILE AND MATIO_INC_DIR AND BUILD_READ_MAT_FILE AND NOT NOCPPTESTS)
foreach(testin hierarchicalFactorization hierarchicalFactorizationFFT test_palm4MSA test_palm4MSAFFT faust_multiplication faust_matdense_conjugate GivensFGFT GivensFGFTSparse GivensFGFTParallel GivensFGFTParallelSparse test_MatDiag faust_matsparse_mul faust_matsparse_index_op GivensFGFTComplex GivensFGFTComplexSparse GivensFGFTParallelComplex faust_toeplitz faust_circ faust_hankel palm4msa_2020 hierarchical2020 hierarchical2020Hadamard hierarchicalFactorizationHadamard )
if(${TEST_FPP} MATCHES complex )
set(TEST_IS_COMPLEX 1)
if(${testin} MATCHES GivensFGFT)
if(${testin} MATCHES GivensFGFT OR ${testin} MATCHES palm4msa_2020 OR ${testin} MATCHES hierarchical2020 OR ${testin} MATCHES hierarchical2020Hadamard OR ${testin} MATCHES hierarchicalFactorizationHadamard)
continue()
endif()
# GivensFGFT doesn't handle complex matrices
......
......@@ -2009,6 +2009,9 @@ cdef class FaustFact:
nites = p.stop_crits[0].num_its
constraints = p.constraints
if(M.dtype == np.complex):
raise TypeError("2020 Hierarchical implementation doesn't support"
" complex matrices.")
# store only lambda as a return from Palm4MSA algo
_out_buf = np.array([0], dtype=M.dtype)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment