diff options
author | 2011-02-23 14:20:33 +0100 | |
---|---|---|
committer | 2011-02-23 14:20:33 +0100 | |
commit | 59eeb671871bb21930fc7baa667bb948301dcc62 (patch) | |
tree | be44cab58e60cc9ae22c1f618c2a6dc23d50255c /test | |
parent | b8374aec005ef86f71b2f8ac1d37eda254f796b8 (diff) |
add unit test for pcplxflip
Diffstat (limited to 'test')
-rw-r--r-- | test/packetmath.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/packetmath.cpp b/test/packetmath.cpp index c6c5bd3b0..32ee62752 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -325,6 +325,14 @@ template<typename Scalar> void packetmath_complex() VERIFY(areApprox(ref, pval, PacketSize) && "conj_helper"); } + { + for(int i=0;i<PacketSize;++i) + ref[i] = Scalar(std::imag(data1[i]),std::real(data1[i])); + internal::pstore(pval,internal::pcplxflip(internal::pload<Packet>(data1))); + VERIFY(areApprox(ref, pval, PacketSize) && "pcplxflip"); + } + + } void test_packetmath() |