10#ifndef EIGEN_ALLANDANY_H
11#define EIGEN_ALLANDANY_H
17template<
typename Derived,
int UnrollCount,
int Rows>
21 col = (UnrollCount-1) / Rows,
22 row = (UnrollCount-1) % Rows
31template<
typename Derived,
int Rows>
37template<
typename Derived,
int Rows>
43template<
typename Derived,
int UnrollCount,
int Rows>
47 col = (UnrollCount-1) / Rows,
48 row = (UnrollCount-1) % Rows
57template<
typename Derived,
int Rows>
63template<
typename Derived,
int Rows>
78template<
typename Derived>
83 unroll = SizeAtCompileTime !=
Dynamic
86 Evaluator evaluator(derived());
91 for(
Index j = 0; j < cols(); ++j)
92 for(
Index i = 0; i < rows(); ++i)
93 if (!evaluator.coeff(i, j))
return false;
102template<
typename Derived>
107 unroll = SizeAtCompileTime !=
Dynamic
110 Evaluator evaluator(derived());
115 for(
Index j = 0; j < cols(); ++j)
116 for(
Index i = 0; i < rows(); ++i)
117 if (evaluator.coeff(i, j))
return true;
126template<
typename Derived>
129 return derived().template cast<bool>().template cast<Index>().sum();
136template<
typename Derived>
139#if EIGEN_COMP_MSVC || (defined __FAST_MATH__)
140 return derived().array().isNaN().any();
142 return !((derived().array()==derived().array()).
all());
150template<
typename Derived>
153#if EIGEN_COMP_MSVC || (defined __FAST_MATH__)
154 return derived().array().isFinite().all();
156 return !((derived()-derived()).hasNaN());
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:986
#define EIGEN_UNROLLING_LIMIT
Defines the maximal loop size to enable meta unrolling of loops.
Definition: Settings.h:24
EIGEN_DEVICE_FUNC bool all() const
Definition: BooleanRedux.h:79
EIGEN_DEVICE_FUNC Index count() const
Definition: BooleanRedux.h:127
bool hasNaN() const
Definition: BooleanRedux.h:137
EIGEN_DEVICE_FUNC bool any() const
Definition: BooleanRedux.h:103
bool allFinite() const
Definition: BooleanRedux.h:151
static const Eigen::internal::all_t all
Can be used as a parameter to DenseBase::operator()(const RowIndices&, const ColIndices&) to index al...
Definition: IndexedViewHelper.h:171
Namespace containing all symbols from the Eigen library.
Definition: Core:141
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
Definition: Eigen_Colamd.h:50
Holds information about the various numeric (i.e.
Definition: NumTraits.h:233
static EIGEN_DEVICE_FUNC bool run(const Derived &)
Definition: BooleanRedux.h:34
static EIGEN_DEVICE_FUNC bool run(const Derived &)
Definition: BooleanRedux.h:40
Definition: BooleanRedux.h:19
static EIGEN_DEVICE_FUNC bool run(const Derived &mat)
Definition: BooleanRedux.h:25
@ row
Definition: BooleanRedux.h:22
@ col
Definition: BooleanRedux.h:21
static EIGEN_DEVICE_FUNC bool run(const Derived &)
Definition: BooleanRedux.h:60
static EIGEN_DEVICE_FUNC bool run(const Derived &)
Definition: BooleanRedux.h:66
Definition: BooleanRedux.h:45
static EIGEN_DEVICE_FUNC bool run(const Derived &mat)
Definition: BooleanRedux.h:51
@ col
Definition: BooleanRedux.h:47
@ row
Definition: BooleanRedux.h:48
Definition: CoreEvaluators.h:91
Definition: ForwardDeclarations.h:17