10#ifndef EIGEN_ALLANDANY_H
11#define EIGEN_ALLANDANY_H
17template<
typename Derived,
int UnrollCount>
20 typedef typename Derived::ExpressionTraits Traits;
26 static inline bool run(
const Derived &
mat)
32template<
typename Derived>
35 static inline bool run(
const Derived &) {
return true; }
38template<
typename Derived>
41 static inline bool run(
const Derived &) {
return false; }
44template<
typename Derived,
int UnrollCount>
47 typedef typename Derived::ExpressionTraits Traits;
53 static inline bool run(
const Derived &
mat)
59template<
typename Derived>
62 static inline bool run(
const Derived & ) {
return false; }
65template<
typename Derived>
68 static inline bool run(
const Derived &) {
return false; }
80template<
typename Derived>
85 unroll = SizeAtCompileTime != Dynamic
88 Evaluator evaluator(derived());
93 for(Index
j = 0;
j < cols(); ++
j)
94 for(Index i = 0; i < rows(); ++i)
95 if (!evaluator.coeff(i,
j))
return false;
104template<
typename Derived>
109 unroll = SizeAtCompileTime != Dynamic
112 Evaluator evaluator(derived());
117 for(Index
j = 0;
j < cols(); ++
j)
118 for(Index i = 0; i < rows(); ++i)
119 if (evaluator.coeff(i,
j))
return true;
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:49
bool any() const
Definition BooleanRedux.h:105
bool all() const
Definition BooleanRedux.h:81
Pseudo expression representing a solving operation.
Definition Solve.h:63
Holds information about the various numeric (i.e.
Definition NumTraits.h:108
Definition BooleanRedux.h:19
Definition BooleanRedux.h:46
Definition CoreEvaluators.h:82