10 #ifndef EIGEN_ALLANDANY_H 11 #define EIGEN_ALLANDANY_H 17 template<
typename Derived,
int UnrollCount,
int Rows>
21 col = (UnrollCount-1) / Rows,
22 row = (UnrollCount-1) % Rows
31 template<
typename Derived,
int Rows>
37 template<
typename Derived,
int Rows>
43 template<
typename Derived,
int UnrollCount,
int Rows>
47 col = (UnrollCount-1) / Rows,
48 row = (UnrollCount-1) % Rows
57 template<
typename Derived,
int Rows>
63 template<
typename Derived,
int Rows>
78 template<
typename Derived>
83 unroll = SizeAtCompileTime !=
Dynamic 86 Evaluator evaluator(derived());
93 if (!evaluator.coeff(
i,
j))
return false;
102 template<
typename Derived>
107 unroll = SizeAtCompileTime !=
Dynamic 110 Evaluator evaluator(derived());
117 if (evaluator.coeff(
i,
j))
return true;
126 template<
typename Derived>
129 return derived().template cast<bool>().
template cast<Index>().sum();
136 template<
typename Derived>
139 #if EIGEN_COMP_MSVC || (defined __FAST_MATH__) 140 return derived().array().isNaN().any();
142 return !((derived().array()==derived().array()).
all());
150 template<
typename Derived>
153 #if EIGEN_COMP_MSVC || (defined __FAST_MATH__) 154 return derived().array().isFinite().all();
156 return !((derived()-derived()).hasNaN());
162 #endif // EIGEN_ALLANDANY_H EIGEN_DEVICE_FUNC bool all() const
static EIGEN_DEVICE_FUNC bool run(const Derived &)
static const Eigen::internal::all_t all
static EIGEN_DEVICE_FUNC bool run(const Derived &)
EIGEN_DEVICE_FUNC Index count() const
static EIGEN_DEVICE_FUNC bool run(const Derived &mat)
static EIGEN_DEVICE_FUNC bool run(const Derived &)
Namespace containing all symbols from the Eigen library.
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
static EIGEN_DEVICE_FUNC bool run(const Derived &mat)
EIGEN_DEVICE_FUNC bool any() const
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
#define EIGEN_DEVICE_FUNC
static EIGEN_DEVICE_FUNC bool run(const Derived &)
#define EIGEN_UNROLLING_LIMIT