|
ArrayBase< Derived > & | array () |
|
const ArrayBase< Derived > & | array () const |
|
MatrixWrapper< Derived > | matrix () |
|
const MatrixWrapper< const Derived > | matrix () const |
|
template<typename OtherDerived > |
Derived & | operator*= (const ArrayBase< OtherDerived > &other) |
|
template<typename OtherDerived > |
Derived & | operator+= (const ArrayBase< OtherDerived > &other) |
|
Derived & | operator+= (const Scalar &scalar) |
|
template<typename OtherDerived > |
Derived & | operator-= (const ArrayBase< OtherDerived > &other) |
|
Derived & | operator-= (const Scalar &scalar) |
|
template<typename OtherDerived > |
Derived & | operator/= (const ArrayBase< OtherDerived > &other) |
|
Derived & | operator= (const ArrayBase &other) |
|
Derived & | operator= (const Scalar &value) |
|
bool | all () const |
|
bool | allFinite () const |
|
bool | any () const |
|
iterator | begin () |
|
const_iterator | begin () const |
|
const_iterator | cbegin () const |
|
const_iterator | cend () const |
|
ColwiseReturnType | colwise () |
|
ConstColwiseReturnType | colwise () const |
|
Index | count () const |
|
iterator | end () |
|
const_iterator | end () const |
|
EvalReturnType | eval () const |
|
template<typename Dest > |
void | evalTo (Dest &) const |
|
void | fill (const Scalar &value) |
|
template<unsigned int Added, unsigned int Removed> |
EIGEN_DEPRECATED const Derived & | flagged () const |
|
ForceAlignedAccess< Derived > | forceAlignedAccess () |
|
const ForceAlignedAccess< Derived > | forceAlignedAccess () const |
|
template<bool Enable> |
std::conditional_t< Enable, ForceAlignedAccess< Derived >, Derived & > | forceAlignedAccessIf () |
|
template<bool Enable> |
const std::conditional_t< Enable, ForceAlignedAccess< Derived >, Derived & > | forceAlignedAccessIf () const |
|
const WithFormat< Derived > | format (const IOFormat &fmt) const |
|
bool | hasNaN () const |
|
EIGEN_CONSTEXPR Index | innerSize () const |
|
template<typename OtherDerived > |
bool | isApprox (const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
|
bool | isApproxToConstant (const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
|
bool | isConstant (const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
|
template<typename OtherDerived > |
bool | isMuchSmallerThan (const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
|
bool | isMuchSmallerThan (const RealScalar &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
|
template<typename Derived > |
bool | isMuchSmallerThan (const typename NumTraits< Scalar >::Real &other, const RealScalar &prec) const |
|
bool | isOnes (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
|
bool | isZero (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
|
template<typename OtherDerived > |
Derived & | lazyAssign (const DenseBase< OtherDerived > &other) |
|
template<typename OtherDerived > |
EIGEN_DEPRECATED Derived & | lazyAssign (const DenseBase< OtherDerived > &other) |
|
template<int p> |
RealScalar | lpNorm () const |
|
template<int NaNPropagation> |
internal::traits< Derived >::Scalar | maxCoeff () const |
|
internal::traits< Derived >::Scalar | maxCoeff () const |
|
template<int NaNPropagation, typename IndexType > |
internal::traits< Derived >::Scalar | maxCoeff (IndexType *index) const |
|
template<typename IndexType > |
internal::traits< Derived >::Scalar | maxCoeff (IndexType *index) const |
|
template<int NaNPropagation, typename IndexType > |
internal::traits< Derived >::Scalar | maxCoeff (IndexType *row, IndexType *col) const |
|
template<typename IndexType > |
internal::traits< Derived >::Scalar | maxCoeff (IndexType *row, IndexType *col) const |
|
Scalar | mean () const |
|
template<int NaNPropagation> |
internal::traits< Derived >::Scalar | minCoeff () const |
|
internal::traits< Derived >::Scalar | minCoeff () const |
|
template<int NaNPropagation, typename IndexType > |
internal::traits< Derived >::Scalar | minCoeff (IndexType *index) const |
|
template<typename IndexType > |
internal::traits< Derived >::Scalar | minCoeff (IndexType *index) const |
|
template<int NaNPropagation, typename IndexType > |
internal::traits< Derived >::Scalar | minCoeff (IndexType *row, IndexType *col) const |
|
template<typename IndexType > |
internal::traits< Derived >::Scalar | minCoeff (IndexType *row, IndexType *col) const |
|
const NestByValue< Derived > | nestByValue () const |
|
Derived & | operator*= (const Scalar &other) |
|
template<typename OtherDerived > |
Derived & | operator+= (const EigenBase< OtherDerived > &other) |
|
template<typename OtherDerived > |
Derived & | operator-= (const EigenBase< OtherDerived > &other) |
|
Derived & | operator/= (const Scalar &other) |
|
template<typename OtherDerived > |
CommaInitializer< Derived > | operator<< (const DenseBase< OtherDerived > &other) |
|
CommaInitializer< Derived > | operator<< (const Scalar &s) |
|
Derived & | operator= (const DenseBase &other) |
|
template<typename OtherDerived > |
Derived & | operator= (const DenseBase< OtherDerived > &other) |
|
template<typename OtherDerived > |
Derived & | operator= (const EigenBase< OtherDerived > &other) |
| Copies the generic expression other into *this. More...
|
|
template<typename OtherDerived > |
Derived & | operator= (const ReturnByValue< OtherDerived > &func) |
|
EIGEN_CONSTEXPR Index | outerSize () const |
|
Scalar | prod () const |
|
template<typename BinaryOp > |
Scalar | redux (const BinaryOp &func) const |
|
template<typename Func > |
internal::traits< Derived >::Scalar | redux (const Func &func) const |
|
template<int RowFactor, int ColFactor> |
const Replicate< Derived, RowFactor, ColFactor > | replicate () const |
|
const Replicate< Derived, Dynamic, Dynamic > | replicate (Index rowFactor, Index colFactor) const |
|
void | resize (Index newSize) |
|
void | resize (Index rows, Index cols) |
|
ReverseReturnType | reverse () |
|
ConstReverseReturnType | reverse () const |
|
void | reverseInPlace () |
|
RowwiseReturnType | rowwise () |
|
ConstRowwiseReturnType | rowwise () const |
|
template<typename ThenDerived , typename ElseDerived > |
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenDerived >::Scalar, typename DenseBase< ElseDerived >::Scalar, Scalar >, ThenDerived, ElseDerived, Derived > | select (const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const |
|
template<typename ThenDerived , typename ElseDerived > |
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenDerived >::Scalar, typename DenseBase< ElseDerived >::Scalar, typename DenseBase< Derived >::Scalar >, ThenDerived, ElseDerived, Derived > | select (const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const |
|
template<typename ThenDerived > |
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenDerived >::Scalar, typename DenseBase< ThenDerived >::Scalar, Scalar >, ThenDerived, typename DenseBase< ThenDerived >::ConstantReturnType, Derived > | select (const DenseBase< ThenDerived > &thenMatrix, const typename DenseBase< ThenDerived >::Scalar &elseScalar) const |
|
template<typename ThenDerived > |
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenDerived >::Scalar, typename DenseBase< ThenDerived >::Scalar, typename DenseBase< Derived >::Scalar >, ThenDerived, typename DenseBase< ThenDerived >::ConstantReturnType, Derived > | select (const DenseBase< ThenDerived > &thenMatrix, const typename DenseBase< ThenDerived >::Scalar &elseScalar) const |
|
template<typename ElseDerived > |
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ElseDerived >::Scalar, typename DenseBase< ElseDerived >::Scalar, Scalar >, typename DenseBase< ElseDerived >::ConstantReturnType, ElseDerived, Derived > | select (const typename DenseBase< ElseDerived >::Scalar &thenScalar, const DenseBase< ElseDerived > &elseMatrix) const |
|
template<typename ElseDerived > |
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ElseDerived >::Scalar, typename DenseBase< ElseDerived >::Scalar, typename DenseBase< Derived >::Scalar >, typename DenseBase< ElseDerived >::ConstantReturnType, ElseDerived, Derived > | select (const typename DenseBase< ElseDerived >::Scalar &thenScalar, const DenseBase< ElseDerived > &elseMatrix) const |
|
Derived & | setConstant (const Scalar &value) |
|
Derived & | setEqualSpaced (const Scalar &low, const Scalar &step) |
|
Derived & | setEqualSpaced (Index size, const Scalar &low, const Scalar &step) |
|
Derived & | setLinSpaced (const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. More...
|
|
Derived & | setLinSpaced (Index size, const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. More...
|
|
Derived & | setOnes () |
|
Derived & | setRandom () |
|
Derived & | setZero () |
|
Scalar | sum () const |
|
template<typename OtherDerived > |
void | swap (const DenseBase< OtherDerived > &other) |
|
template<typename OtherDerived > |
void | swap (PlainObjectBase< OtherDerived > &other) |
|
Scalar | trace () const |
|
TransposeReturnType | transpose () |
|
const ConstTransposeReturnType | transpose () const |
|
void | transposeInPlace () |
|
CoeffReturnType | value () const |
|
template<typename Visitor > |
void | visit (Visitor &func) const |
|
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
|
EIGEN_CONSTEXPR Index | colStride () const EIGEN_NOEXCEPT |
|
Derived & | derived () |
|
const Derived & | derived () const |
|
EIGEN_CONSTEXPR Index | innerStride () const EIGEN_NOEXCEPT |
|
EIGEN_CONSTEXPR Index | outerStride () const EIGEN_NOEXCEPT |
|
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
|
EIGEN_CONSTEXPR Index | rowStride () const EIGEN_NOEXCEPT |
|
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
|
EIGEN_CONSTEXPR Index | stride () const EIGEN_NOEXCEPT |
|
Scalar & | coeffRef (Index index) |
|
Scalar & | coeffRef (Index row, Index col) |
|
Scalar & | coeffRefByOuterInner (Index outer, Index inner) |
|
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
|
Derived & | derived () |
|
const Derived & | derived () const |
|
Scalar & | operator() (Index index) |
|
Scalar & | operator() (Index row, Index col) |
|
Scalar & | operator[] (Index index) |
|
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
|
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
|
Scalar & | w () |
|
Scalar & | x () |
|
Scalar & | y () |
|
Scalar & | z () |
|
CoeffReturnType | coeff (Index index) const |
|
CoeffReturnType | coeff (Index row, Index col) const |
|
CoeffReturnType | coeffByOuterInner (Index outer, Index inner) const |
|
Index | colIndexByOuterInner (Index outer, Index inner) const |
|
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
|
Derived & | derived () |
|
const Derived & | derived () const |
|
CoeffReturnType | operator() (Index index) const |
|
CoeffReturnType | operator() (Index row, Index col) const |
|
CoeffReturnType | operator[] (Index index) const |
|
template<int LoadMode> |
PacketReturnType | packet (Index index) const |
|
template<int LoadMode> |
PacketReturnType | packet (Index row, Index col) const |
|
template<int LoadMode> |
PacketReturnType | packetByOuterInner (Index outer, Index inner) const |
|
Index | rowIndexByOuterInner (Index outer, Index inner) const |
|
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
|
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
|
CoeffReturnType | w () const |
|
CoeffReturnType | x () const |
|
CoeffReturnType | y () const |
|
CoeffReturnType | z () const |
|
template<typename Dest > |
void | addTo (Dest &dst) const |
|
template<typename Dest > |
void | applyThisOnTheLeft (Dest &dst) const |
|
template<typename Dest > |
void | applyThisOnTheRight (Dest &dst) const |
|
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
|
Derived & | const_cast_derived () const |
|
const Derived & | const_derived () const |
|
Derived & | derived () |
|
const Derived & | derived () const |
|
template<typename Dest > |
void | evalTo (Dest &dst) const |
|
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
|
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
|
template<typename Dest > |
void | subTo (Dest &dst) const |
|
|
enum | {
RowsAtCompileTime
,
ColsAtCompileTime
,
SizeAtCompileTime
,
MaxRowsAtCompileTime
,
MaxColsAtCompileTime
,
MaxSizeAtCompileTime
,
IsVectorAtCompileTime
,
NumDimensions
,
Flags
,
IsRowMajor
,
InnerSizeAtCompileTime
,
InnerStrideAtCompileTime
,
OuterStrideAtCompileTime
} |
|
enum | { IsPlainObjectBase
} |
|
typedef DenseCoeffsBase< Derived, internal::accessors_level< Derived >::value > | Base |
|
typedef Base::CoeffReturnType | CoeffReturnType |
|
typedef VectorwiseOp< Derived, Vertical > | ColwiseReturnType |
|
typedef random_access_iterator_type | const_iterator |
|
typedef const VectorwiseOp< const Derived, Vertical > | ConstColwiseReturnType |
|
typedef const Reverse< const Derived, BothDirections > | ConstReverseReturnType |
|
typedef const VectorwiseOp< const Derived, Horizontal > | ConstRowwiseReturnType |
|
typedef Transpose< const Derived > | ConstTransposeReturnType |
|
typedef internal::add_const_on_value_type_t< typename internal::eval< Derived >::type > | EvalReturnType |
|
typedef random_access_iterator_type | iterator |
|
typedef internal::find_best_packet< Scalar, SizeAtCompileTime >::type | PacketScalar |
|
typedef Array< 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 > | PlainArray |
|
typedef 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 |
|
typedef std::conditional_t< internal::is_same< typename internal::traits< Derived >::XprKind, MatrixXpr >::value, PlainMatrix, PlainArray > | PlainObject |
| The plain matrix or array type corresponding to this expression. More...
|
|
typedef CwiseNullaryOp< internal::scalar_random_op< Scalar >, PlainObject > | RandomReturnType |
|
typedef NumTraits< Scalar >::Real | RealScalar |
|
typedef Reverse< Derived, BothDirections > | ReverseReturnType |
|
typedef VectorwiseOp< Derived, Horizontal > | RowwiseReturnType |
|
typedef internal::traits< Derived >::Scalar | Scalar |
|
typedef internal::traits< Derived >::StorageIndex | StorageIndex |
| The type used to store indices. More...
|
|
typedef internal::traits< Derived >::StorageKind | StorageKind |
|
typedef Transpose< Derived > | TransposeReturnType |
|
typedef Scalar | value_type |
|
typedef DenseCoeffsBase< Derived, WriteAccessors > | Base |
|
typedef NumTraits< Scalar >::Real | RealScalar |
|
typedef internal::traits< Derived >::Scalar | Scalar |
|
typedef DenseCoeffsBase< Derived, ReadOnlyAccessors > | Base |
|
typedef internal::packet_traits< Scalar >::type | PacketScalar |
|
typedef NumTraits< Scalar >::Real | RealScalar |
|
typedef internal::traits< Derived >::Scalar | Scalar |
|
typedef internal::traits< Derived >::StorageKind | StorageKind |
|
typedef EigenBase< Derived > | Base |
|
typedef std::conditional_t< bool(internal::traits< Derived >::Flags &LvalueBit), const Scalar &, std::conditional_t< internal::is_arithmetic< Scalar >::value, Scalar, const Scalar > > | CoeffReturnType |
|
typedef internal::add_const_on_value_type_if_arithmetic< typename internal::packet_traits< Scalar >::type >::type | PacketReturnType |
|
typedef internal::packet_traits< Scalar >::type | PacketScalar |
|
typedef internal::traits< Derived >::Scalar | Scalar |
|
typedef internal::traits< Derived >::StorageKind | StorageKind |
|
typedef Eigen::Index | Index |
| The interface type of indices. More...
|
|
typedef internal::traits< Derived >::StorageKind | StorageKind |
|
static const ConstantReturnType | Constant (const Scalar &value) |
|
static const ConstantReturnType | Constant (Index rows, Index cols, const Scalar &value) |
|
static const ConstantReturnType | Constant (Index size, const Scalar &value) |
|
static const RandomAccessEqualSpacedReturnType | EqualSpaced (const Scalar &low, const Scalar &step) |
|
static const RandomAccessEqualSpacedReturnType | EqualSpaced (Index size, const Scalar &low, const Scalar &step) |
|
static const RandomAccessLinSpacedReturnType | LinSpaced (const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. More...
|
|
static const RandomAccessLinSpacedReturnType | LinSpaced (Index size, const Scalar &low, const Scalar &high) |
| Sets a linearly spaced vector. More...
|
|
static EIGEN_DEPRECATED const RandomAccessLinSpacedReturnType | LinSpaced (Sequential_t, const Scalar &low, const Scalar &high) |
|
static EIGEN_DEPRECATED const RandomAccessLinSpacedReturnType | LinSpaced (Sequential_t, Index size, const Scalar &low, const Scalar &high) |
|
template<typename CustomNullaryOp > |
static const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (const CustomNullaryOp &func) |
|
template<typename CustomNullaryOp > |
static const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (Index rows, Index cols, const CustomNullaryOp &func) |
|
template<typename CustomNullaryOp > |
static const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (Index size, const CustomNullaryOp &func) |
|
static const ConstantReturnType | Ones () |
|
static const ConstantReturnType | Ones (Index rows, Index cols) |
|
static const ConstantReturnType | Ones (Index size) |
|
static const RandomReturnType | Random () |
|
static const RandomReturnType | Random (Index rows, Index cols) |
|
static const RandomReturnType | Random (Index size) |
|
static const ConstantReturnType | Zero () |
|
static const ConstantReturnType | Zero (Index rows, Index cols) |
|
static const ConstantReturnType | Zero (Index size) |
|
template<typename Derived>
class Eigen::ArrayBase< Derived >
Base class for all 1D and 2D array, and related expressions.
An array is similar to a dense vector or matrix. While matrices are mathematical objects with well defined linear algebra operators, an array is just a collection of scalar values arranged in a one or two dimensional fashion. As the main consequence, all operations applied to an array are performed coefficient wise. Furthermore, arrays support scalar math functions of the c++ standard library (e.g., std::sin(x)), and convenient constructors allowing to easily write generic code working for both scalar values and arrays.
This class is the base that is inherited by all array expression types.
- Template Parameters
-
Derived | is the derived type, e.g., an array or an expression type. |
This class can be extended with the help of the plugin mechanism described on the page Extending MatrixBase (and other classes) by defining the preprocessor symbol EIGEN_ARRAYBASE_PLUGIN
.
- See also
- class MatrixBase, The class hierarchy
Definition at line 41 of file ArrayBase.h.