10#ifndef EIGEN_ALLANDANY_H
11#define EIGEN_ALLANDANY_H
17template<
typename Derived,
int UnrollCount,
int InnerSize>
21 IsRowMajor = (int(Derived::Flags) & int(
RowMajor)),
26 EIGEN_DEVICE_FUNC
static inline bool run(
const Derived &
mat)
32template<
typename Derived,
int InnerSize>
35 EIGEN_DEVICE_FUNC
static inline bool run(
const Derived &) {
return true; }
38template<
typename Derived,
int InnerSize>
41 EIGEN_DEVICE_FUNC
static inline bool run(
const Derived &) {
return false; }
44template<
typename Derived,
int UnrollCount,
int InnerSize>
48 IsRowMajor = (int(Derived::Flags) & int(
RowMajor)),
53 EIGEN_DEVICE_FUNC
static inline bool run(
const Derived &
mat)
59template<
typename Derived,
int InnerSize>
62 EIGEN_DEVICE_FUNC
static inline bool run(
const Derived & ) {
return false; }
65template<
typename Derived,
int InnerSize>
68 EIGEN_DEVICE_FUNC
static inline bool run(
const Derived &) {
return false; }
80template<
typename Derived>
88 Evaluator evaluator(derived());
93 for(
Index i = 0; i < derived().outerSize(); ++i)
94 for(
Index j = 0; j < derived().innerSize(); ++j)
104template<
typename Derived>
112 Evaluator evaluator(derived());
117 for(
Index i = 0; i < derived().outerSize(); ++i)
118 for(
Index j = 0; j < derived().innerSize(); ++j)
128template<
typename Derived>
138template<
typename Derived>
141#if EIGEN_COMP_MSVC || (defined __FAST_MATH__)
142 return derived().array().isNaN().
any();
144 return !((derived().array()==derived().array()).
all());
152template<
typename Derived>
155#if EIGEN_COMP_MSVC || (defined __FAST_MATH__)
156 return derived().array().isFinite().
all();
158 return !((derived()-derived()).
hasNaN());
Base class for all dense matrices, vectors, and arrays.
Definition DenseBase.h:47
@ IsRowMajor
True if this expression has row-major storage order.
Definition DenseBase.h:170
EIGEN_DEVICE_FUNC bool all() const
Definition BooleanRedux.h:81
bool hasNaN() const
Definition BooleanRedux.h:139
EIGEN_DEVICE_FUNC Scalar sum() const
Definition Redux.h:459
EIGEN_DEVICE_FUNC bool any() const
Definition BooleanRedux.h:105
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
@ SizeAtCompileTime
This is equal to the number of coefficients, i.e.
Definition DenseBase.h:113
@ RowMajor
Storage order is row major (see TopicStorageOrders).
Definition Constants.h:321
Namespace containing all symbols from the Eigen library.
Definition LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
const int Dynamic
This value means that a positive quantity (e.g., a size) is not known at compile-time,...
Definition Constants.h:22
Holds information about the various numeric (i.e.
Definition NumTraits.h:236
Definition BooleanRedux.h:19
Definition BooleanRedux.h:46
Definition CoreEvaluators.h:91