Go to the documentation of this file.
11 #ifndef EIGEN_DENSEBASE_H
12 #define EIGEN_DENSEBASE_H
42 #ifndef EIGEN_PARSED_BY_DOXYGEN
43 :
public DenseCoeffsBase<Derived, internal::accessors_level<Derived>::value>
46 #endif // not EIGEN_PARSED_BY_DOXYGEN
77 using Base::const_cast_derived;
81 using Base::rowIndexByOuterInner;
82 using Base::colIndexByOuterInner;
84 using Base::coeffByOuterInner;
85 using Base::operator();
86 using Base::operator[];
92 using Base::innerStride;
93 using Base::outerStride;
94 using Base::rowStride;
95 using Base::colStride;
250 &&
"DenseBase::resize() does not actually allow to resize.");
262 &&
"DenseBase::resize() does not actually allow to resize.");
265 #ifndef EIGEN_PARSED_BY_DOXYGEN
275 #endif // not EIGEN_PARSED_BY_DOXYGEN
278 template<
typename OtherDerived>
288 template<
typename OtherDerived>
292 template<
typename OtherDerived>
296 template<
typename OtherDerived>
300 template<
typename OtherDerived>
306 template<
typename OtherDerived>
314 template<
unsigned int Added,
unsigned int Removed>
318 {
return derived(); }
320 template<
typename OtherDerived>
390 inline bool hasNaN()
const;
418 template<
typename OtherDerived>
422 EIGEN_STATIC_ASSERT(!OtherDerived::IsPlainObjectBase,THIS_EXPRESSION_IS_NOT_A_LVALUE__IT_IS_READ_ONLY);
430 template<
typename OtherDerived>
452 template<
int NaNPropagation>
454 template<
int NaNPropagation>
463 return minCoeff<PropagateFast>();
466 return maxCoeff<PropagateFast>();
469 template<
int NaNPropagation,
typename IndexType>
472 template<
int NaNPropagation,
typename IndexType>
475 template<
int NaNPropagation,
typename IndexType>
478 template<
int NaNPropagation,
typename IndexType>
483 template<
typename IndexType>
486 return minCoeff<PropagateFast>(
row,
col);
488 template<
typename IndexType>
491 return maxCoeff<PropagateFast>(
row,
col);
493 template<
typename IndexType>
496 return minCoeff<PropagateFast>(index);
498 template<
typename IndexType>
501 return maxCoeff<PropagateFast>(index);
504 template<
typename BinaryOp>
508 template<
typename Visitor>
530 return derived().coeff(0,0);
572 template<
typename ThenDerived,
typename ElseDerived>
577 template<
typename ThenDerived>
581 template<
typename ElseDerived>
587 template<
int RowFactor,
int ColFactor>
616 #ifdef EIGEN_PARSED_BY_DOXYGEN
620 typedef random_access_iterator_type
iterator;
654 #define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::DenseBase
655 #define EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
656 #define EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(COND)
657 #define EIGEN_DOC_UNARY_ADDONS(X,Y)
658 # include "../plugins/CommonCwiseUnaryOps.h"
659 # include "../plugins/BlockMethods.h"
660 # include "../plugins/IndexedViewMethods.h"
661 # include "../plugins/ReshapedMethods.h"
662 # ifdef EIGEN_DENSEBASE_PLUGIN
663 # include EIGEN_DENSEBASE_PLUGIN
665 #undef EIGEN_CURRENT_STORAGE_BASE_CLASS
666 #undef EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
667 #undef EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF
668 #undef EIGEN_DOC_UNARY_ADDONS
671 template<
typename Dest>
686 #ifdef EIGEN_INTERNAL_DEBUGGING
689 INVALID_STORAGE_ORDER_FOR_THIS_VECTOR_EXPRESSION)
701 #endif // EIGEN_DENSEBASE_H
VectorwiseOp< Derived, Horizontal > RowwiseReturnType
EIGEN_DEVICE_FUNC DenseBase()
const EIGEN_DEVICE_FUNC Select< Derived, ThenDerived, ElseDerived > select(const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const
internal::conditional< internal::is_same< typename internal::traits< Derived >::XprKind, MatrixXpr >::value, PlainMatrix, PlainArray >::type PlainObject
The plain matrix or array type corresponding to this expression.
EIGEN_DEVICE_FUNC CommaInitializer< Derived > operator<<(const Scalar &s)
find_best_packet_helper< Size, typename packet_traits< T >::type >::type type
#define EIGEN_DEVICE_FUNC
Namespace containing all symbols from the Eigen library.
internal::conditional< IsVectorAtCompileTime, iterator_type, void >::type iterator
EIGEN_DEVICE_FUNC Derived & setZero()
EIGEN_DEVICE_FUNC bool isZero(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
const EIGEN_DEVICE_FUNC ForceAlignedAccess< Derived > forceAlignedAccess() const
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar maxCoeff() const
Reverse< Derived, BothDirections > ReverseReturnType
Enforce aligned packet loads and stores regardless of what is requested.
const EIGEN_DEVICE_FUNC Replicate< Derived, RowFactor, ColFactor > replicate() const
static const EIGEN_DEVICE_FUNC ConstantReturnType Zero()
internal::traits< Derived >::Scalar Scalar
internal::find_best_packet< Scalar, SizeAtCompileTime >::type PacketScalar
static const EIGEN_DEVICE_FUNC ConstantReturnType Constant(Index rows, Index cols, const Scalar &value)
internal::traits< Derived >::StorageIndex StorageIndex
The type used to store indices.
EIGEN_DEVICE_FUNC bool isApproxToConstant(const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
Matrix< typename NumTraits< typename internal::traits< Derived >::Scalar >::Real, internal::traits< Derived >::ColsAtCompileTime, 1 > EigenvaluesReturnType
static void check_DenseIndex_is_signed()
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
EIGEN_DEVICE_FUNC Derived & setConstant(const Scalar &value)
const unsigned int RowMajorBit
VectorwiseOp< Derived, Vertical > ColwiseReturnType
General-purpose arrays with easy API for coefficient-wise operations.
Pseudo expression providing broadcasting and partial reduction operations.
static const EIGEN_DEVICE_FUNC ConstantReturnType Ones()
EIGEN_DEVICE_FUNC Scalar mean() const
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar maxCoeff(IndexType *index) const
const typedef VectorwiseOp< const Derived, Horizontal > ConstRowwiseReturnType
internal::add_const_on_value_type< typename internal::eval< Derived >::type >::type EvalReturnType
CwiseNullaryOp< internal::scalar_constant_op< Scalar >, PlainObject > ConstantReturnType
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar minCoeff() const
EIGEN_DEVICE_FUNC ConstReverseReturnType reverse() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EvalReturnType eval() const
Expression of the transpose of a matrix.
const unsigned int DirectAccessBit
EIGEN_DEVICE_FUNC void evalTo(Dest &) const
#define EIGEN_ONLY_USED_FOR_DEBUG(x)
EIGEN_DEVICE_FUNC Derived & setLinSpaced(Index size, const Scalar &low, const Scalar &high)
Sets a linearly spaced vector.
Generic expression of a matrix where all coefficients are defined by a functor.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator/=(const Scalar &other)
const typedef VectorwiseOp< const Derived, Vertical > ConstColwiseReturnType
EIGEN_DEVICE_FUNC Scalar prod() const
EIGEN_DEVICE_FUNC bool isOnes(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
const typedef Reverse< const Derived, BothDirections > ConstReverseReturnType
#define EIGEN_STATIC_ASSERT_SIZE_1x1(TYPE)
const EIGEN_DEPRECATED Derived & flagged() const
@ InnerStrideAtCompileTime
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar maxCoeff(IndexType *row, IndexType *col) const
NumTraits< Scalar >::Real RealScalar
EIGEN_DEVICE_FUNC bool all() const
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar minCoeff(IndexType *index) const
EIGEN_DEVICE_FUNC ReverseReturnType reverse()
EIGEN_DEPRECATED static const EIGEN_DEVICE_FUNC RandomAccessLinSpacedReturnType LinSpaced(Sequential_t, Index size, const Scalar &low, const Scalar &high)
EIGEN_DEVICE_FUNC Derived & operator-=(const EigenBase< OtherDerived > &other)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void swap(PlainObjectBase< OtherDerived > &other)
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC Derived & lazyAssign(const DenseBase< OtherDerived > &other)
@ OuterStrideAtCompileTime
EIGEN_DEVICE_FUNC Derived & operator+=(const EigenBase< OtherDerived > &other)
Base::CoeffReturnType CoeffReturnType
Eigen::InnerIterator< Derived > InnerIterator
EIGEN_DEVICE_FUNC Scalar trace() const
CwiseNullaryOp< internal::scalar_random_op< Scalar >, PlainObject > RandomReturnType
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar maxCoeff() const
#define EIGEN_STRONG_INLINE
Expression of the reverse of a vector or matrix.
Expression of the multiple replication of a matrix or vector.
Matrix< typename internal::traits< Derived >::Scalar, internal::traits< Derived >::RowsAtCompileTime, internal::traits< Derived >::ColsAtCompileTime, AutoAlign|(internal::traits< Derived >::Flags &RowMajorBit ? RowMajor :ColMajor), internal::traits< Derived >::MaxRowsAtCompileTime, internal::traits< Derived >::MaxColsAtCompileTime > PlainMatrix
internal::conditional<(Flags &DirectAccessBit)==DirectAccessBit, internal::pointer_based_stl_iterator< const Derived >, internal::generic_randaccess_stl_iterator< const Derived > >::type const_iterator_type
static const RandomReturnType Random()
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar minCoeff() const
EIGEN_DEVICE_FUNC bool isConstant(const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
EIGEN_DEPRECATED typedef CwiseNullaryOp< internal::linspaced_op< Scalar >, PlainObject > SequentialLinSpacedReturnType
internal::traits< Derived >::StorageKind StorageKind
EIGEN_DEVICE_FUNC void fill(const Scalar &value)
EIGEN_DEVICE_FUNC bool any() const
An InnerIterator allows to loop over the element of any matrix expression.
const EIGEN_DEVICE_FUNC internal::conditional< Enable, ForceAlignedAccess< Derived >, Derived & >::type forceAlignedAccessIf() const
#define EIGEN_DEFAULT_COPY_CONSTRUCTOR(CLASS)
EIGEN_DEVICE_FUNC ConstColwiseReturnType colwise() const
EIGEN_DEVICE_FUNC Scalar sum() const
const EIGEN_DEVICE_FUNC Replicate< Derived, Dynamic, Dynamic > replicate(Index rowFactor, Index colFactor) const
internal::conditional<(Flags &DirectAccessBit)==DirectAccessBit, internal::pointer_based_stl_iterator< Derived >, internal::generic_randaccess_stl_iterator< Derived > >::type iterator_type
RealScalar lpNorm() const
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index outerSize() const
EIGEN_DEVICE_FUNC void visit(Visitor &func) const
const WithFormat< Derived > format(const IOFormat &fmt) const
Base class for all dense matrices, vectors, and arrays.
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
internal::add_const< Transpose< const Derived > >::type ConstTransposeReturnType
EIGEN_DEVICE_FUNC Scalar redux(const BinaryOp &func) const
EIGEN_DEVICE_FUNC bool isApprox(const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
EIGEN_DEVICE_FUNC ConstRowwiseReturnType rowwise() const
EIGEN_DEVICE_FUNC void reverseInPlace()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const DenseBase< OtherDerived > &other)
const_iterator cbegin() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator*=(const Scalar &other)
mp::number< mp::cpp_dec_float< 100 >, mp::et_on > Real
Helper class used by the comma initializer operator.
Expression which must be nested by value.
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index nonZeros() const
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index innerSize() const
EIGEN_DEVICE_FUNC Derived & setOnes()
EIGEN_DEVICE_FUNC Index count() const
EIGEN_DEVICE_FUNC TransposeReturnType transpose()
DenseCoeffsBase< Derived, internal::accessors_level< Derived >::value > Base
The matrix class, also used for vectors and row-vectors.
internal::conditional< IsVectorAtCompileTime, const_iterator_type, void >::type const_iterator
EIGEN_DEVICE_FUNC void resize(Index rows, Index cols)
EIGEN_DEVICE_FUNC void resize(Index newSize)
static const EIGEN_DEVICE_FUNC CwiseNullaryOp< CustomNullaryOp, PlainObject > NullaryExpr(Index rows, Index cols, const CustomNullaryOp &func)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void swap(const DenseBase< OtherDerived > &other)
#define EIGEN_IMPLIES(a, b)
const EIGEN_DEVICE_FUNC NestByValue< Derived > nestByValue() const
Transpose< Derived > TransposeReturnType
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar minCoeff(IndexType *row, IndexType *col) const
EIGEN_DEVICE_FUNC Derived & setRandom()
EIGEN_DEVICE_FUNC void transposeInPlace()
Expression of a coefficient wise version of the C++ ternary operator ?:
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_assignment(Dst &dst, const Src &src)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
CwiseNullaryOp< internal::linspaced_op< Scalar >, PlainObject > RandomAccessLinSpacedReturnType
EIGEN_DEVICE_FUNC bool isMuchSmallerThan(const RealScalar &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
EIGEN_DEVICE_FUNC CoeffReturnType value() const
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
const_iterator cend() const
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:12