mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 18:19:34 +08:00
fix one more possible conflicts with real/imag
This commit is contained in:
parent
87427d2eaa
commit
d1def335dc
@ -485,10 +485,7 @@ template<typename Packet> EIGEN_DEVICE_FUNC inline Packet preverse(const Packet&
|
|||||||
/** \internal \returns \a a with real and imaginary part flipped (for complex type only) */
|
/** \internal \returns \a a with real and imaginary part flipped (for complex type only) */
|
||||||
template<typename Packet> EIGEN_DEVICE_FUNC inline Packet pcplxflip(const Packet& a)
|
template<typename Packet> EIGEN_DEVICE_FUNC inline Packet pcplxflip(const Packet& a)
|
||||||
{
|
{
|
||||||
// FIXME: uncomment the following in case we drop the internal imag and real functions.
|
return Packet(numext::imag(a),numext::real(a));
|
||||||
// using std::imag;
|
|
||||||
// using std::real;
|
|
||||||
return Packet(imag(a),real(a));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************************
|
/**************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user