Go to the documentation of this file.
11 #ifndef EIGEN_DENSEBASE_H
12 #define EIGEN_DENSEBASE_H
42 #ifndef EIGEN_PARSED_BY_DOXYGEN
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;
245 &&
"DenseBase::resize() does not actually allow to resize.");
256 eigen_assert(rows == this->rows() && cols == this->cols()
257 &&
"DenseBase::resize() does not actually allow to resize.");
260 #ifndef EIGEN_PARSED_BY_DOXYGEN
270 #endif // not EIGEN_PARSED_BY_DOXYGEN
273 template<
typename OtherDerived>
283 template<
typename OtherDerived>
287 template<
typename OtherDerived>
291 template<
typename OtherDerived>
295 template<
typename OtherDerived>
302 template<
typename OtherDerived>
310 template<
unsigned int Added,
unsigned int Removed>
313 {
return derived(); }
315 template<
typename OtherDerived>
344 template<
typename CustomNullaryOp> EIGEN_DEVICE_FUNC
347 template<
typename CustomNullaryOp> EIGEN_DEVICE_FUNC
350 template<
typename CustomNullaryOp> EIGEN_DEVICE_FUNC
365 EIGEN_DEVICE_FUNC Derived&
setZero();
366 EIGEN_DEVICE_FUNC Derived&
setOnes();
369 template<
typename OtherDerived> EIGEN_DEVICE_FUNC
375 template<
typename OtherDerived> EIGEN_DEVICE_FUNC
384 inline bool hasNaN()
const;
412 template<
typename OtherDerived>
416 EIGEN_STATIC_ASSERT(!OtherDerived::IsPlainObjectBase,THIS_EXPRESSION_IS_NOT_A_LVALUE__IT_IS_READ_ONLY);
417 eigen_assert(rows()==other.rows() && cols()==other.cols());
424 template<
typename OtherDerived>
435 template<
bool Enable> EIGEN_DEVICE_FUNC
437 template<
bool Enable> EIGEN_DEVICE_FUNC
449 template<
typename IndexType> EIGEN_DEVICE_FUNC
451 template<
typename IndexType> EIGEN_DEVICE_FUNC
453 template<
typename IndexType> EIGEN_DEVICE_FUNC
455 template<
typename IndexType> EIGEN_DEVICE_FUNC
458 template<
typename BinaryOp>
462 template<
typename Visitor>
464 void visit(Visitor& func)
const;
484 return derived().coeff(0,0);
487 EIGEN_DEVICE_FUNC
bool all()
const;
488 EIGEN_DEVICE_FUNC
bool any()
const;
526 template<
typename ThenDerived,
typename ElseDerived>
531 template<
typename ThenDerived>
535 template<
typename ElseDerived>
541 template<
int RowFactor,
int ColFactor>
570 #define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::DenseBase
571 #define EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
572 #define EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF(COND)
573 # include "../plugins/BlockMethods.h"
574 # ifdef EIGEN_DENSEBASE_PLUGIN
575 # include EIGEN_DENSEBASE_PLUGIN
577 #undef EIGEN_CURRENT_STORAGE_BASE_CLASS
578 #undef EIGEN_DOC_BLOCK_ADDONS_NOT_INNER_PANEL
579 #undef EIGEN_DOC_BLOCK_ADDONS_INNER_PANEL_IF
582 template<
typename Dest>
596 #ifdef EIGEN_INTERNAL_DEBUGGING
599 INVALID_STORAGE_ORDER_FOR_THIS_VECTOR_EXPRESSION)
604 EIGEN_DEVICE_FUNC
explicit DenseBase(
int);
611 #endif // EIGEN_DENSEBASE_H
VectorwiseOp< Derived, Horizontal > RowwiseReturnType
EIGEN_DEVICE_FUNC DenseBase()
CwiseNullaryOp< internal::linspaced_op< Scalar, PacketScalar >, PlainObject > RandomAccessLinSpacedReturnType
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.
find_best_packet_helper< Size, typename packet_traits< T >::type >::type type
EIGEN_DEVICE_FUNC Scalar prod() const
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
Reverse< Derived, BothDirections > ReverseReturnType
Enforce aligned packet loads and stores regardless of what is requested.
static const EIGEN_DEVICE_FUNC ConstantReturnType Zero()
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar maxCoeff() const
CwiseNullaryOp< internal::linspaced_op< Scalar, PacketScalar >, PlainObject > SequentialLinSpacedReturnType
internal::traits< Derived >::Scalar Scalar
internal::find_best_packet< Scalar, SizeAtCompileTime >::type PacketScalar
DenseCoeffsBase< Derived > Base
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()
EIGEN_DEVICE_FUNC Derived & setConstant(const Scalar &value)
EIGEN_DEVICE_FUNC ColXpr col(Index i)
This is the const version of col().
const unsigned int RowMajorBit
VectorwiseOp< Derived, Vertical > ColwiseReturnType
General-purpose arrays with easy API for coefficient-wise operations.
Pseudo expression providing partial reduction operations.
static const EIGEN_DEVICE_FUNC ConstantReturnType Ones()
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 ConstColwiseReturnType colwise() const
EIGEN_DEVICE_FUNC Index nonZeros() const
EIGEN_DEVICE_FUNC ConstReverseReturnType reverse() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EvalReturnType eval() const
Expression of the transpose of a matrix.
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 Index innerSize() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator/=(const Scalar &other)
const typedef VectorwiseOp< const Derived, Vertical > ConstColwiseReturnType
EIGEN_DEVICE_FUNC bool isOnes(const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
const typedef Reverse< const Derived, BothDirections > ConstReverseReturnType
static const EIGEN_DEVICE_FUNC SequentialLinSpacedReturnType LinSpaced(Sequential_t, Index size, const Scalar &low, const Scalar &high)
#define EIGEN_STATIC_ASSERT_SIZE_1x1(TYPE)
const EIGEN_DEPRECATED Derived & flagged() const
EIGEN_DEVICE_FUNC Index count() const
NumTraits< Scalar >::Real RealScalar
EIGEN_DEVICE_FUNC Index outerSize() const
EIGEN_DEVICE_FUNC Derived & operator-=(const EigenBase< OtherDerived > &other)
@ OuterStrideAtCompileTime
EIGEN_DEVICE_FUNC ConstRowwiseReturnType rowwise() const
EIGEN_DEVICE_FUNC void reverseInPlace()
EIGEN_DEVICE_FUNC Derived & operator+=(const EigenBase< OtherDerived > &other)
Base::CoeffReturnType CoeffReturnType
Eigen::InnerIterator< Derived > InnerIterator
EIGEN_DEVICE_FUNC Scalar trace() const
EIGEN_DEVICE_FUNC ReverseReturnType reverse()
CwiseNullaryOp< internal::scalar_random_op< Scalar >, PlainObject > RandomReturnType
EIGEN_DEVICE_FUNC RowXpr row(Index i)
This is the const version of row(). */.
EIGEN_DEVICE_FUNC Derived & lazyAssign(const DenseBase< OtherDerived > &other)
#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
EIGEN_DEVICE_FUNC Derived & setRandom()
static const RandomReturnType Random()
EIGEN_DEVICE_FUNC void swap(const DenseBase< OtherDerived > &other)
const Select< Derived, ThenDerived, ElseDerived > select(const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const
EIGEN_DEVICE_FUNC bool isConstant(const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
EIGEN_DEVICE_FUNC void transposeInPlace()
internal::traits< Derived >::StorageKind StorageKind
@ InnerStrideAtCompileTime
EIGEN_DEVICE_FUNC void fill(const Scalar &value)
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
const EIGEN_DEVICE_FUNC Replicate< Derived, Dynamic, Dynamic > replicate(Index rowFactor, Index colFactor) const
const EIGEN_DEVICE_FUNC NestByValue< Derived > nestByValue() const
const EIGEN_DEVICE_FUNC Replicate< Derived, RowFactor, ColFactor > replicate() const
RealScalar lpNorm() const
EIGEN_DEVICE_FUNC void visit(Visitor &func) const
EIGEN_DEVICE_FUNC Scalar mean() 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 CommaInitializer< Derived > operator<<(const Scalar &s)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const DenseBase< OtherDerived > &other)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator*=(const Scalar &other)
Helper class used by the comma initializer operator.
Expression which must be nested by value.
EIGEN_DEVICE_FUNC Derived & setOnes()
static constexpr size_t size(Tuple< Args... > &)
Provides access to the number of elements in a tuple as a compile-time constant expression.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index cols() const
The matrix class, also used for vectors and row-vectors.
EIGEN_DEVICE_FUNC TransposeReturnType transpose()
static const EIGEN_DEVICE_FUNC ConstantReturnType Constant(Index rows, Index cols, const Scalar &value)
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)
#define EIGEN_IMPLIES(a, b)
EIGEN_DEVICE_FUNC bool all() const
Transpose< Derived > TransposeReturnType
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rows() const
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.
EIGEN_DEVICE_FUNC bool any() const
EIGEN_DEVICE_FUNC bool isMuchSmallerThan(const RealScalar &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
EIGEN_DEVICE_FUNC Scalar sum() const
EIGEN_DEVICE_FUNC CoeffReturnType value() const
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_DEVICE_FUNC void swap(PlainObjectBase< OtherDerived > &other)
EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar minCoeff() const
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:05:44