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:306
ConstRowwiseReturnType rowwise() const
Definition: DenseBase.h:504
static const RandomReturnType Random()
Definition: Random.h:113
Derived & setZero(Index size)
Definition: CwiseNullaryOp.h:515
const MatrixFunctionReturnValue< Derived > cos() const
This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise cosine...
Scalar sum() const
Definition: Redux.h:448
ConstColwiseReturnType colwise() const
Definition: DenseBase.h:516
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:178
static const IdentityReturnType Identity()
Definition: CwiseNullaryOp.h:700
DiagonalReturnType diagonal()
Definition: Diagonal.h:191
Derived & setIdentity()
Definition: CwiseNullaryOp.h:774
TransposeReturnType transpose()
Definition: Transpose.h:174