Home | History | Annotate | Download | only in Core

Lines Matching refs:Derived

17 template<typename Derived, int UnrollCount>
21 col = (UnrollCount-1) / Derived::RowsAtCompileTime,
22 row = (UnrollCount-1) % Derived::RowsAtCompileTime
25 static inline bool run(const Derived &mat)
27 return all_unroller<Derived, UnrollCount-1>::run(mat) && mat.coeff(row, col);
31 template<typename Derived>
32 struct all_unroller<Derived, 0>
34 static inline bool run(const Derived &/*mat*/) { return true; }
37 template<typename Derived>
38 struct all_unroller<Derived, Dynamic>
40 static inline bool run(const Derived &) { return false; }
43 template<typename Derived, int UnrollCount>
47 col = (UnrollCount-1) / Derived::RowsAtCompileTime,
48 row = (UnrollCount-1) % Derived::RowsAtCompileTime
51 static inline bool run(const Derived &mat)
53 return any_unroller<Derived, UnrollCount-1>::run(mat) || mat.coeff(row, col);
57 template<typename Derived>
58 struct any_unroller<Derived, 0>
60 static inline bool run(const Derived & /*mat*/) { return false; }
63 template<typename Derived>
64 struct any_unroller<Derived, Dynamic>
66 static inline bool run(const Derived &) { return false; }
78 template<typename Derived>
79 inline bool DenseBase<Derived>::all() const
88 return internal::all_unroller<Derived, unroll ? int(SizeAtCompileTime) : Dynamic>::run(derived());
102 template<typename Derived>
103 inline bool DenseBase<Derived>::any() const
112 return internal::any_unroller<Derived, unroll ? int(SizeAtCompileTime) : Dynamic>::run(derived());
126 template<typename Derived>
127 inline typename DenseBase<Derived>::Index DenseBase<Derived>::count() const
129 return derived().template cast<bool>().template cast<Index>().sum();
136 template<typename Derived>
137 inline bool DenseBase<Derived>::hasNaN() const
139 return !((derived().array()==derived().array()).all());
146 template<typename Derived>
147 inline bool DenseBase<Derived>::allFinite() const
149 return !((derived()-derived()).hasNaN());