mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
NEON Complex Intrinsics
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
f91f8e9ab9
commit
2bf8fe1489
@@ -654,6 +654,16 @@ struct unpacket_traits<Packet2ul> {
|
||||
};
|
||||
};
|
||||
|
||||
template <>
|
||||
EIGEN_STRONG_INLINE Packet2f pzero(const Packet2f& /*a*/) {
|
||||
return vdup_n_f32(0.0f);
|
||||
}
|
||||
|
||||
template <>
|
||||
EIGEN_STRONG_INLINE Packet4f pzero(const Packet4f& /*a*/) {
|
||||
return vdupq_n_f32(0.0f);
|
||||
}
|
||||
|
||||
template <>
|
||||
EIGEN_STRONG_INLINE Packet2f pset1<Packet2f>(const float& from) {
|
||||
return vdup_n_f32(from);
|
||||
@@ -5147,6 +5157,11 @@ struct unpacket_traits<Packet2d> {
|
||||
};
|
||||
};
|
||||
|
||||
template <>
|
||||
EIGEN_STRONG_INLINE Packet2d pzero<Packet2d>(const Packet2d& /*a*/) {
|
||||
return vdupq_n_f64(0.0);
|
||||
}
|
||||
|
||||
template <>
|
||||
EIGEN_STRONG_INLINE Packet2d pset1<Packet2d>(const double& from) {
|
||||
return vdupq_n_f64(from);
|
||||
|
||||
Reference in New Issue
Block a user