mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add unit test for pcplxflip
This commit is contained in:
@@ -325,6 +325,14 @@ template<typename Scalar> void packetmath_complex()
|
|||||||
VERIFY(areApprox(ref, pval, PacketSize) && "conj_helper");
|
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()
|
void test_packetmath()
|
||||||
|
|||||||
Reference in New Issue
Block a user