mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
add unit test for pcplxflip
This commit is contained in:
parent
b8374aec00
commit
59eeb67187
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user