10 #ifndef EIGEN_TYPE_CASTING_AVX_H 11 #define EIGEN_TYPE_CASTING_AVX_H 20 struct type_casting_traits<float, int> {
29 struct type_casting_traits<int, float> {
39 template<> EIGEN_STRONG_INLINE Packet8i pcast<Packet8f, Packet8i>(
const Packet8f& a) {
40 return _mm256_cvtps_epi32(a);
43 template<> EIGEN_STRONG_INLINE Packet8f pcast<Packet8i, Packet8f>(
const Packet8i& a) {
44 return _mm256_cvtepi32_ps(a);
51 #endif // EIGEN_TYPE_CASTING_AVX_H Namespace containing all symbols from the Eigen library.
Definition: Core:287
Definition: Eigen_Colamd.h:50