Eigen  3.2.10
 
Loading...
Searching...
No Matches
DenseBase.h
1// This file is part of Eigen, a lightweight C++ template library
2// for linear algebra.
3//
4// Copyright (C) 2007-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
5// Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
6//
7// This Source Code Form is subject to the terms of the Mozilla
8// Public License v. 2.0. If a copy of the MPL was not distributed
9// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
11#ifndef EIGEN_DENSEBASE_H
12#define EIGEN_DENSEBASE_H
13
14namespace Eigen {
15
16namespace internal {
17
18// The index type defined by EIGEN_DEFAULT_DENSE_INDEX_TYPE must be a signed type.
19// This dummy function simply aims at checking that at compile time.
20static inline void check_DenseIndex_is_signed() {
21 EIGEN_STATIC_ASSERT(NumTraits<DenseIndex>::IsSigned,THE_INDEX_TYPE_MUST_BE_A_SIGNED_TYPE);
22}
23
24} // end namespace internal
25
41template<typename Derived> class DenseBase
42#ifndef EIGEN_PARSED_BY_DOXYGEN
43 : public internal::special_scalar_op_base<Derived, typename internal::traits<Derived>::Scalar,
44 typename NumTraits<typename internal::traits<Derived>::Scalar>::Real,
45 DenseCoeffsBase<Derived> >
46#else
47 : public DenseCoeffsBase<Derived>
48#endif // not EIGEN_PARSED_BY_DOXYGEN
49{
50 public:
51
52 class InnerIterator;
53
54 typedef typename internal::traits<Derived>::StorageKind StorageKind;
55
57 * \details To change this, \c \#define the preprocessor symbol \c EIGEN_DEFAULT_DENSE_INDEX_TYPE.
58 * \sa \ref TopicPreprocessorDirectives.
59 */
60 typedef typename internal::traits<Derived>::Index Index;
61
62 typedef typename internal::traits<Derived>::Scalar Scalar;
63 typedef typename internal::packet_traits<Scalar>::type PacketScalar;
64 typedef typename NumTraits<Scalar>::Real RealScalar;
65 typedef internal::special_scalar_op_base<Derived,Scalar,RealScalar, DenseCoeffsBase<Derived> > Base;
66
67 using Base::operator*;
68 using Base::derived;
69 using Base::const_cast_derived;
70 using Base::rows;
71 using Base::cols;
72 using Base::size;
73 using Base::rowIndexByOuterInner;
74 using Base::colIndexByOuterInner;
75 using Base::coeff;
76 using Base::coeffByOuterInner;
77 using Base::packet;
78 using Base::packetByOuterInner;
79 using Base::writePacket;
80 using Base::writePacketByOuterInner;
81 using Base::coeffRef;
82 using Base::coeffRefByOuterInner;
83 using Base::copyCoeff;
84 using Base::copyCoeffByOuterInner;
85 using Base::copyPacket;
86 using Base::copyPacketByOuterInner;
87 using Base::operator();
88 using Base::operator[];
89 using Base::x;
90 using Base::y;
91 using Base::z;
92 using Base::w;
93 using Base::stride;
94 using Base::innerStride;
95 using Base::outerStride;
96 using Base::rowStride;
97 using Base::colStride;
98 typedef typename Base::CoeffReturnType CoeffReturnType;
99
100 enum {
101
102 RowsAtCompileTime = internal::traits<Derived>::RowsAtCompileTime,
103 /**< The number of rows at compile-time. This is just a copy of the value provided
104 * by the \a Derived type. If a value is not known at compile-time,
105 * it is set to the \a Dynamic constant.
106 * \sa MatrixBase::rows(), MatrixBase::cols(), ColsAtCompileTime, SizeAtCompileTime */
107
108 ColsAtCompileTime = internal::traits<Derived>::ColsAtCompileTime,
110 * by the \a Derived type. If a value is not known at compile-time,
111 * it is set to the \a Dynamic constant.
112 * \sa MatrixBase::rows(), MatrixBase::cols(), RowsAtCompileTime, SizeAtCompileTime */
113
114
115 SizeAtCompileTime = (internal::size_at_compile_time<internal::traits<Derived>::RowsAtCompileTime,
116 internal::traits<Derived>::ColsAtCompileTime>::ret),
120
121 MaxRowsAtCompileTime = internal::traits<Derived>::MaxRowsAtCompileTime,
131
132 MaxColsAtCompileTime = internal::traits<Derived>::MaxColsAtCompileTime,
133 /**< This value is equal to the maximum possible number of columns that this expression
134 * might have. If this expression might have an arbitrarily high number of columns,
135 * this value is set to \a Dynamic.
136 *
137 * This value is useful to know when evaluating an expression, in order to determine
138 * whether it is possible to avoid doing a dynamic memory allocation.
139 *
140 * \sa ColsAtCompileTime, MaxRowsAtCompileTime, MaxSizeAtCompileTime
141 */
142
143 MaxSizeAtCompileTime = (internal::size_at_compile_time<internal::traits<Derived>::MaxRowsAtCompileTime,
144 internal::traits<Derived>::MaxColsAtCompileTime>::ret),
154
155 IsVectorAtCompileTime = internal::traits<Derived>::MaxRowsAtCompileTime == 1
156 || internal::traits<Derived>::MaxColsAtCompileTime == 1,
157 /**< This is set to true if either the number of rows or the number of
158 * columns is known at compile-time to be equal to 1. Indeed, in that case,
159 * we are dealing with a column-vector (if there is only one column) or with
160 * a row-vector (if there is only one row). */
161
162 Flags = internal::traits<Derived>::Flags,
163 /**< This stores expression \ref flags flags which may or may not be inherited by new expressions
164 * constructed from this one. See the \ref flags "list of flags".
165 */
166
168
169 InnerSizeAtCompileTime = int(IsVectorAtCompileTime) ? int(SizeAtCompileTime)
171
176
177 InnerStrideAtCompileTime = internal::inner_stride_at_compile_time<Derived>::ret,
178 OuterStrideAtCompileTime = internal::outer_stride_at_compile_time<Derived>::ret
179 };
180
181 enum { ThisConstantIsPrivateInPlainObjectBase };
182
185 inline Index nonZeros() const { return size(); }
186
193 {
194 return IsVectorAtCompileTime ? 1
195 : int(IsRowMajor) ? this->rows() : this->cols();
196 }
197
204 {
205 return IsVectorAtCompileTime ? this->size()
206 : int(IsRowMajor) ? this->cols() : this->rows();
207 }
212
213 void resize(Index newSize)
214 {
215 EIGEN_ONLY_USED_FOR_DEBUG(newSize);
216 eigen_assert(newSize == this->size()
217 && "DenseBase::resize() does not actually allow to resize.");
218 }
219
220
223 void resize(Index nbRows, Index nbCols)
224 {
225 EIGEN_ONLY_USED_FOR_DEBUG(nbRows);
226 EIGEN_ONLY_USED_FOR_DEBUG(nbCols);
227 eigen_assert(nbRows == this->rows() && nbCols == this->cols()
228 && "DenseBase::resize() does not actually allow to resize.");
229 }
230
231#ifndef EIGEN_PARSED_BY_DOXYGEN
234 typedef CwiseNullaryOp<internal::scalar_constant_op<Scalar>,Derived> ConstantReturnType;
236 typedef CwiseNullaryOp<internal::linspaced_op<Scalar,false>,Derived> SequentialLinSpacedReturnType;
238 typedef CwiseNullaryOp<internal::linspaced_op<Scalar,true>,Derived> RandomAccessLinSpacedReturnType;
240 typedef Matrix<typename NumTraits<typename internal::traits<Derived>::Scalar>::Real, internal::traits<Derived>::ColsAtCompileTime, 1> EigenvaluesReturnType;
241
242#endif // not EIGEN_PARSED_BY_DOXYGEN
243
245 template<typename OtherDerived>
246 Derived& operator=(const DenseBase<OtherDerived>& other);
247
251 Derived& operator=(const DenseBase& other);
252
253 template<typename OtherDerived>
254 Derived& operator=(const EigenBase<OtherDerived> &other);
255
256 template<typename OtherDerived>
257 Derived& operator+=(const EigenBase<OtherDerived> &other);
258
259 template<typename OtherDerived>
260 Derived& operator-=(const EigenBase<OtherDerived> &other);
261
262 template<typename OtherDerived>
263 Derived& operator=(const ReturnByValue<OtherDerived>& func);
264
266 template<typename OtherDerived>
267 Derived& lazyAssign(const DenseBase<OtherDerived>& other);
268
270 template<typename OtherDerived>
271 Derived& lazyAssign(const ReturnByValue<OtherDerived>& other);
272
273 CommaInitializer<Derived> operator<< (const Scalar& s);
274
275 template<unsigned int Added,unsigned int Removed>
276 const Flagged<Derived, Added, Removed> flagged() const;
277
278 template<typename OtherDerived>
280
282 typedef typename internal::add_const<Transpose<const Derived> >::type ConstTransposeReturnType;
283 ConstTransposeReturnType transpose() const;
284 void transposeInPlace();
285#ifndef EIGEN_NO_DEBUG
286 protected:
287 template<typename OtherDerived>
288 void checkTransposeAliasing(const OtherDerived& other) const;
289 public:
290#endif
291
292
293 static const ConstantReturnType
294 Constant(Index rows, Index cols, const Scalar& value);
295 static const ConstantReturnType
296 Constant(Index size, const Scalar& value);
297 static const ConstantReturnType
298 Constant(const Scalar& value);
299
300 static const SequentialLinSpacedReturnType
301 LinSpaced(Sequential_t, Index size, const Scalar& low, const Scalar& high);
302 static const RandomAccessLinSpacedReturnType
303 LinSpaced(Index size, const Scalar& low, const Scalar& high);
304 static const SequentialLinSpacedReturnType
305 LinSpaced(Sequential_t, const Scalar& low, const Scalar& high);
306 static const RandomAccessLinSpacedReturnType
307 LinSpaced(const Scalar& low, const Scalar& high);
308
309 template<typename CustomNullaryOp>
311 NullaryExpr(Index rows, Index cols, const CustomNullaryOp& func);
312 template<typename CustomNullaryOp>
314 NullaryExpr(Index size, const CustomNullaryOp& func);
315 template<typename CustomNullaryOp>
317 NullaryExpr(const CustomNullaryOp& func);
318
319 static const ConstantReturnType Zero(Index rows, Index cols);
320 static const ConstantReturnType Zero(Index size);
321 static const ConstantReturnType Zero();
322 static const ConstantReturnType Ones(Index rows, Index cols);
323 static const ConstantReturnType Ones(Index size);
324 static const ConstantReturnType Ones();
325
326 void fill(const Scalar& value);
327 Derived& setConstant(const Scalar& value);
328 Derived& setLinSpaced(Index size, const Scalar& low, const Scalar& high);
329 Derived& setLinSpaced(const Scalar& low, const Scalar& high);
330 Derived& setZero();
331 Derived& setOnes();
332 Derived& setRandom();
333
334 template<typename OtherDerived>
336 const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
337 bool isMuchSmallerThan(const RealScalar& other,
338 const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
339 template<typename OtherDerived>
340 bool isMuchSmallerThan(const DenseBase<OtherDerived>& other,
341 const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
342
343 bool isApproxToConstant(const Scalar& value, const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
344 bool isConstant(const Scalar& value, const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
345 bool isZero(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
346 bool isOnes(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const;
347
348 inline bool hasNaN() const;
349 inline bool allFinite() const;
350
351 inline Derived& operator*=(const Scalar& other);
352 inline Derived& operator/=(const Scalar& other);
353
354 typedef typename internal::add_const_on_value_type<typename internal::eval<Derived>::type>::type EvalReturnType;
358 * a const reference, in order to avoid a useless copy.
359 */
360 EIGEN_STRONG_INLINE EvalReturnType eval() const
361 {
362 // Even though MSVC does not honor strong inlining when the return type
363 // is a dynamic matrix, we desperately need strong inlining for fixed
364 // size types on MSVC.
365 return typename internal::eval<Derived>::type(derived());
366 }
367
369
371 template<typename OtherDerived>
372 void swap(const DenseBase<OtherDerived>& other,
373 int = OtherDerived::ThisConstantIsPrivateInPlainObjectBase)
374 {
375 SwapWrapper<Derived>(derived()).lazyAssign(other.derived());
376 }
377
381 template<typename OtherDerived>
383 {
384 SwapWrapper<Derived>(derived()).lazyAssign(other.derived());
385 }
386
388 inline const NestByValue<Derived> nestByValue() const;
389 inline const ForceAlignedAccess<Derived> forceAlignedAccess() const;
390 inline ForceAlignedAccess<Derived> forceAlignedAccess();
391 template<bool Enable> inline const typename internal::conditional<Enable,ForceAlignedAccess<Derived>,Derived&>::type forceAlignedAccessIf() const;
392 template<bool Enable> inline typename internal::conditional<Enable,ForceAlignedAccess<Derived>,Derived&>::type forceAlignedAccessIf();
393
394 Scalar sum() const;
395 Scalar mean() const;
396 Scalar trace() const;
397
398 Scalar prod() const;
399
400 typename internal::traits<Derived>::Scalar minCoeff() const;
401 typename internal::traits<Derived>::Scalar maxCoeff() const;
402
403 template<typename IndexType>
404 typename internal::traits<Derived>::Scalar minCoeff(IndexType* row, IndexType* col) const;
405 template<typename IndexType>
406 typename internal::traits<Derived>::Scalar maxCoeff(IndexType* row, IndexType* col) const;
407 template<typename IndexType>
408 typename internal::traits<Derived>::Scalar minCoeff(IndexType* index) const;
409 template<typename IndexType>
410 typename internal::traits<Derived>::Scalar maxCoeff(IndexType* index) const;
411
412 template<typename BinaryOp>
413 typename internal::result_of<BinaryOp(typename internal::traits<Derived>::Scalar)>::type
414 redux(const BinaryOp& func) const;
415
416 template<typename Visitor>
417 void visit(Visitor& func) const;
418
419 inline const WithFormat<Derived> format(const IOFormat& fmt) const;
420
422 CoeffReturnType value() const
423 {
424 EIGEN_STATIC_ASSERT_SIZE_1x1(Derived)
425 eigen_assert(this->rows() == 1 && this->cols() == 1);
426 return derived().coeff(0,0);
427 }
428
429 bool all(void) const;
430 bool any(void) const;
431 Index count() const;
432
433 typedef VectorwiseOp<Derived, Horizontal> RowwiseReturnType;
434 typedef const VectorwiseOp<const Derived, Horizontal> ConstRowwiseReturnType;
435 typedef VectorwiseOp<Derived, Vertical> ColwiseReturnType;
436 typedef const VectorwiseOp<const Derived, Vertical> ConstColwiseReturnType;
437
438 ConstRowwiseReturnType rowwise() const;
439 RowwiseReturnType rowwise();
440 ConstColwiseReturnType colwise() const;
441 ColwiseReturnType colwise();
442
446
447 template<typename ThenDerived,typename ElseDerived>
449 select(const DenseBase<ThenDerived>& thenMatrix,
450 const DenseBase<ElseDerived>& elseMatrix) const;
451
452 template<typename ThenDerived>
454 select(const DenseBase<ThenDerived>& thenMatrix, const typename ThenDerived::Scalar& elseScalar) const;
455
456 template<typename ElseDerived>
458 select(const typename ElseDerived::Scalar& thenScalar, const DenseBase<ElseDerived>& elseMatrix) const;
459
460 template<int p> RealScalar lpNorm() const;
462 template<int RowFactor, int ColFactor>
464
465 typedef Replicate<Derived,Dynamic,Dynamic> ReplicateReturnType;
466 inline const ReplicateReturnType replicate(Index rowFacor,Index colFactor) const;
467
468 typedef Reverse<Derived, BothDirections> ReverseReturnType;
469 typedef const Reverse<const Derived, BothDirections> ConstReverseReturnType;
470 ReverseReturnType reverse();
471 ConstReverseReturnType reverse() const;
472 void reverseInPlace();
473
474#define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::DenseBase
475# include "../plugins/BlockMethods.h"
476# ifdef EIGEN_DENSEBASE_PLUGIN
477# include EIGEN_DENSEBASE_PLUGIN
478# endif
479#undef EIGEN_CURRENT_STORAGE_BASE_CLASS
480
481#ifdef EIGEN2_SUPPORT
482
483 Block<Derived> corner(CornerType type, Index cRows, Index cCols);
484 const Block<Derived> corner(CornerType type, Index cRows, Index cCols) const;
485 template<int CRows, int CCols>
487 template<int CRows, int CCols>
488 const Block<Derived, CRows, CCols> corner(CornerType type) const;
489
490#endif // EIGEN2_SUPPORT
491
492
493 // disable the use of evalTo for dense objects with a nice compilation error
494 template<typename Dest> inline void evalTo(Dest& ) const
495 {
496 EIGEN_STATIC_ASSERT((internal::is_same<Dest,void>::value),THE_EVAL_EVALTO_FUNCTION_SHOULD_NEVER_BE_CALLED_FOR_DENSE_OBJECTS);
497 }
498
499 protected:
502 {
503 /* Just checks for self-consistency of the flags.
504 * Only do it when debugging Eigen, as this borders on paranoiac and could slow compilation down
505 */
506#ifdef EIGEN_INTERNAL_DEBUGGING
507 EIGEN_STATIC_ASSERT((EIGEN_IMPLIES(MaxRowsAtCompileTime==1 && MaxColsAtCompileTime!=1, int(IsRowMajor))
508 && EIGEN_IMPLIES(MaxColsAtCompileTime==1 && MaxRowsAtCompileTime!=1, int(!IsRowMajor))),
509 INVALID_STORAGE_ORDER_FOR_THIS_VECTOR_EXPRESSION)
510#endif
512
513 private:
514 explicit DenseBase(int);
515 DenseBase(int,int);
516 template<typename OtherDerived> explicit DenseBase(const DenseBase<OtherDerived>&);
517};
518
519} // end namespace Eigen
520
521#endif // EIGEN_DENSEBASE_H
Expression of a fixed-size or dynamic-size block.
Definition Block.h:104
Generic expression of a matrix where all coefficients are defined by a functor.
Definition CwiseNullaryOp.h:51
Base class for all dense matrices, vectors, and arrays.
Definition DenseBase.h:49
static const SequentialLinSpacedReturnType LinSpaced(Sequential_t, Index size, const Scalar &low, const Scalar &high)
Sets a linearly space vector.
Definition CwiseNullaryOp.h:242
Index count() const
Definition BooleanRedux.h:127
const WithFormat< Derived > format(const IOFormat &fmt) const
Definition IO.h:117
EvalReturnType eval() const
Definition DenseBase.h:360
Index nonZeros() const
Definition DenseBase.h:185
static const CwiseNullaryOp< CustomNullaryOp, Derived > NullaryExpr(Index rows, Index cols, const CustomNullaryOp &func)
Definition CwiseNullaryOp.h:117
Index innerSize() const
Definition DenseBase.h:203
Derived & setOnes()
Definition CwiseNullaryOp.h:625
const Replicate< Derived, RowFactor, ColFactor > replicate() const
Definition Replicate.h:139
bool isConstant(const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition CwiseNullaryOp.h:312
void swap(PlainObjectBase< OtherDerived > &other)
Definition DenseBase.h:382
static const ConstantReturnType Ones()
Definition CwiseNullaryOp.h:597
ConstColwiseReturnType colwise() const
Definition VectorwiseOp.h:599
static const ConstantReturnType Zero()
Definition CwiseNullaryOp.h:468
Derived & setConstant(const Scalar &value)
Definition CwiseNullaryOp.h:332
void transposeInPlace()
Definition Transpose.h:292
DenseBase()
Definition DenseBase.h:501
Eigen::Transpose< Derived > transpose()
Definition Transpose.h:199
void visit(Visitor &func) const
Definition Visitor.h:77
bool isApprox(const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition Fuzzy.h:98
internal::traits< Derived >::Index Index
The type of indices.
Definition DenseBase.h:60
ColXpr col(Index i)
Definition DenseBase.h:733
bool isZero(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition CwiseNullaryOp.h:482
bool allFinite() const
Definition BooleanRedux.h:147
internal::traits< Derived >::Scalar maxCoeff() const
Definition Redux.h:349
ReverseReturnType reverse()
Definition Reverse.h:205
bool isApproxToConstant(const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition CwiseNullaryOp.h:298
static const CwiseNullaryOp< internal::scalar_random_op< Scalar >, Derived > Random()
Definition Random.h:97
const NestByValue< Derived > nestByValue() const
Definition NestByValue.h:104
Derived & setZero()
Definition CwiseNullaryOp.h:499
ConstRowwiseReturnType rowwise() const
Definition VectorwiseOp.h:624
bool hasNaN() const
Definition BooleanRedux.h:137
CoeffReturnType value() const
Definition DenseBase.h:422
Scalar prod() const
Definition Redux.h:387
internal::traits< Derived >::Scalar minCoeff() const
Definition Redux.h:339
void fill(const Scalar &value)
Definition CwiseNullaryOp.h:322
RowXpr row(Index i)
Definition DenseBase.h:750
Derived & operator=(const DenseBase< OtherDerived > &other)
Definition Assign.h:550
Scalar sum() const
Definition Redux.h:360
Derived & setRandom()
Definition Random.h:110
static const ConstantReturnType Constant(Index rows, Index cols, const Scalar &value)
Definition CwiseNullaryOp.h:179
Derived & setLinSpaced(Index size, const Scalar &low, const Scalar &high)
Sets a linearly space vector.
Definition CwiseNullaryOp.h:387
Index outerSize() const
Definition DenseBase.h:192
const Select< Derived, ThenDerived, ElseDerived > select(const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const
Definition Select.h:124
bool all(void) const
Definition BooleanRedux.h:79
void swap(const DenseBase< OtherDerived > &other, int=OtherDerived::ThisConstantIsPrivateInPlainObjectBase)
Definition DenseBase.h:372
CommaInitializer< Derived > operator<<(const Scalar &s)
Definition CommaInitializer.h:135
const Flagged< Derived, Added, Removed > flagged() const
Definition Flagged.h:133
bool isOnes(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Definition CwiseNullaryOp.h:612
@ MaxRowsAtCompileTime
Definition DenseBase.h:121
@ CoeffReadCost
Definition DenseBase.h:172
@ IsRowMajor
Definition DenseBase.h:167
@ RowsAtCompileTime
Definition DenseBase.h:102
@ IsVectorAtCompileTime
Definition DenseBase.h:155
@ Flags
Definition DenseBase.h:162
@ SizeAtCompileTime
Definition DenseBase.h:115
@ MaxColsAtCompileTime
Definition DenseBase.h:132
@ MaxSizeAtCompileTime
Definition DenseBase.h:143
@ ColsAtCompileTime
Definition DenseBase.h:108
Scalar mean() const
Definition Redux.h:373
bool any(void) const
Definition BooleanRedux.h:103
void resize(Index newSize)
Definition DenseBase.h:213
void reverseInPlace()
Definition Reverse.h:231
void resize(Index nbRows, Index nbCols)
Definition DenseBase.h:223
Enforce aligned packet loads and stores regardless of what is requested.
Definition ForceAlignedAccess.h:36
The matrix class, also used for vectors and row-vectors.
Definition Matrix.h:129
Expression which must be nested by value.
Definition NestByValue.h:37
Dense storage base class for matrices and arrays.
Definition PlainObjectBase.h:90
Expression of the multiple replication of a matrix or vector.
Definition Replicate.h:64
Expression of the reverse of a vector or matrix.
Definition Reverse.h:72
Expression of a coefficient wise version of the C++ ternary operator ?:
Definition Select.h:57
Expression of the transpose of a matrix.
Definition Transpose.h:59
Pseudo expression providing partial reduction operations.
Definition VectorwiseOp.h:167
Pseudo expression providing matrix output with given format.
Definition IO.h:91
CornerType
Definition Constants.h:201
const unsigned int RowMajorBit
Definition Constants.h:53
Definition LDLT.h:18
Helper class used by the comma initializer operator.
Definition CommaInitializer.h:29
Definition EigenBase.h:27
Stores a set of parameters controlling the way matrices are printed.
Definition IO.h:51