|
| typedef ArrayBase | StorageBaseType |
| |
| typedef ArrayBase | Eigen_BaseClassForSpecializationOfGlobalMathFuncImpl |
| |
| typedef internal::traits< Derived >::StorageKind | StorageKind |
| |
| typedef internal::traits< Derived >::Scalar | Scalar |
| |
| typedef internal::packet_traits< Scalar >::type | PacketScalar |
| |
| typedef NumTraits< Scalar >::Real | RealScalar |
| |
| typedef DenseBase< Derived > | Base |
| |
| typedef Base::CoeffReturnType | CoeffReturnType |
| |
| typedef Base::PlainObject | PlainObject |
| |
| typedef CwiseNullaryOp< internal::scalar_constant_op< Scalar >, PlainObject > | ConstantReturnType |
| |
| enum | {
RowsAtCompileTime = internal::traits<Derived>::RowsAtCompileTime
, ColsAtCompileTime = internal::traits<Derived>::ColsAtCompileTime
, SizeAtCompileTime = (internal::size_of_xpr_at_compile_time<Derived>::ret)
, MaxRowsAtCompileTime = internal::traits<Derived>::MaxRowsAtCompileTime
,
MaxColsAtCompileTime = internal::traits<Derived>::MaxColsAtCompileTime
, MaxSizeAtCompileTime
, IsVectorAtCompileTime
, NumDimensions
,
Flags = internal::traits<Derived>::Flags
, IsRowMajor = int(Flags) & RowMajorBit
, InnerSizeAtCompileTime
, InnerStrideAtCompileTime = internal::inner_stride_at_compile_time<Derived>::ret
,
OuterStrideAtCompileTime = internal::outer_stride_at_compile_time<Derived>::ret
} |
| |
| enum | { IsPlainObjectBase = 0
} |
| |
| typedef Eigen::InnerIterator< Derived > | InnerIterator |
| |
| typedef internal::traits< Derived >::StorageKind | StorageKind |
| |
| typedef internal::traits< Derived >::StorageIndex | StorageIndex |
| | The type used to store indices. More...
|
| |
| typedef internal::traits< Derived >::Scalar | Scalar |
| |
| typedef Scalar | value_type |
| |
| typedef NumTraits< Scalar >::Real | RealScalar |
| |
| typedef DenseCoeffsBase< Derived, internal::accessors_level< Derived >::value > | Base |
| |
| typedef Base::CoeffReturnType | CoeffReturnType |
| |
| typedef internal::find_best_packet< Scalar, SizeAtCompileTime >::type | PacketScalar |
| |
| 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 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 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_constant_op< Scalar >, PlainObject > | ConstantReturnType |
| |
| typedef CwiseNullaryOp< internal::scalar_zero_op< Scalar >, PlainObject > | ZeroReturnType |
| |
| typedef CwiseNullaryOp< internal::linspaced_op< Scalar >, PlainObject > | RandomAccessLinSpacedReturnType |
| |
| typedef CwiseNullaryOp< internal::equalspaced_op< Scalar >, PlainObject > | RandomAccessEqualSpacedReturnType |
| |
| typedef Matrix< typename NumTraits< typename internal::traits< Derived >::Scalar >::Real, internal::traits< Derived >::ColsAtCompileTime, 1 > | EigenvaluesReturnType |
| |
| typedef Transpose< Derived > | TransposeReturnType |
| |
| typedef Transpose< const Derived > | ConstTransposeReturnType |
| |
| typedef internal::add_const_on_value_type_t< typename internal::eval< Derived >::type > | EvalReturnType |
| |
| typedef VectorwiseOp< Derived, Horizontal > | RowwiseReturnType |
| |
| typedef const VectorwiseOp< const Derived, Horizontal > | ConstRowwiseReturnType |
| |
| typedef VectorwiseOp< Derived, Vertical > | ColwiseReturnType |
| |
| typedef const VectorwiseOp< const Derived, Vertical > | ConstColwiseReturnType |
| |
| typedef CwiseNullaryOp< internal::scalar_random_op< Scalar >, PlainObject > | RandomReturnType |
| |
| typedef Reverse< Derived, BothDirections > | ReverseReturnType |
| |
| typedef const Reverse< const Derived, BothDirections > | ConstReverseReturnType |
| |
| typedef std::conditional_t<(Flags &DirectAccessBit)==DirectAccessBit, internal::pointer_based_stl_iterator< Derived >, internal::generic_randaccess_stl_iterator< Derived > > | iterator_type |
| |
| typedef std::conditional_t<(Flags &DirectAccessBit)==DirectAccessBit, internal::pointer_based_stl_iterator< const Derived >, internal::generic_randaccess_stl_iterator< const Derived > > | const_iterator_type |
| |
| typedef std::conditional_t< IsVectorAtCompileTime, iterator_type, void > | iterator |
| |
| typedef std::conditional_t< IsVectorAtCompileTime, const_iterator_type, void > | const_iterator |
| |
|
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const ArrayBase &other) |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const Scalar &value) |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator+= (const Scalar &scalar) |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator-= (const Scalar &scalar) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator+= (const ArrayBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator-= (const ArrayBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator*= (const ArrayBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator/= (const ArrayBase< OtherDerived > &other) |
| |
| EIGEN_DEVICE_FUNC ArrayBase< Derived > & | array () |
| |
| EIGEN_DEVICE_FUNC const ArrayBase< Derived > & | array () const |
| |
| EIGEN_DEVICE_FUNC MatrixWrapper< Derived > | matrix () |
| |
| EIGEN_DEVICE_FUNC const MatrixWrapper< const Derived > | matrix () const |
| |
| template<typename OtherDerived > |
| EIGEN_DEPRECATED EIGEN_DEVICE_FUNC Derived & | lazyAssign (const DenseBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | lazyAssign (const DenseBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const DenseBase< OtherDerived > &other) |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const DenseBase &other) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC Derived & | operator= (const EigenBase< OtherDerived > &other) |
| | Copies the generic expression other into *this. More...
|
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC Derived & | operator= (const ReturnByValue< OtherDerived > &func) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC Derived & | operator+= (const EigenBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC Derived & | operator-= (const EigenBase< OtherDerived > &other) |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator*= (const Scalar &other) |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator/= (const Scalar &other) |
| |
| EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | outerSize () const |
| |
| EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | innerSize () const |
| |
| EIGEN_DEVICE_FUNC void | resize (Index newSize) |
| |
| EIGEN_DEVICE_FUNC void | resize (Index rows, Index cols) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const DenseBase< OtherDerived > &other) |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator= (const DenseBase &other) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC Derived & | operator= (const EigenBase< OtherDerived > &other) |
| | Copies the generic expression other into *this. More...
|
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC Derived & | operator+= (const EigenBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC Derived & | operator-= (const EigenBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC Derived & | operator= (const ReturnByValue< OtherDerived > &func) |
| |
| template<typename OtherDerived > |
| EIGEN_DEPRECATED EIGEN_DEVICE_FUNC Derived & | lazyAssign (const DenseBase< OtherDerived > &other) |
| |
| EIGEN_DEVICE_FUNC CommaInitializer< Derived > | operator<< (const Scalar &s) |
| |
| template<unsigned int Added, unsigned int Removed> |
| EIGEN_DEPRECATED const Derived & | flagged () const |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC CommaInitializer< Derived > | operator<< (const DenseBase< OtherDerived > &other) |
| |
| EIGEN_DEVICE_FUNC TransposeReturnType | transpose () |
| |
| EIGEN_DEVICE_FUNC const ConstTransposeReturnType | transpose () const |
| |
| EIGEN_DEVICE_FUNC void | transposeInPlace () |
| |
| EIGEN_DEVICE_FUNC void | fill (const Scalar &value) |
| |
| EIGEN_DEVICE_FUNC Derived & | setConstant (const Scalar &value) |
| |
| EIGEN_DEVICE_FUNC Derived & | setLinSpaced (Index size, const Scalar &low, const Scalar &high) |
| | Sets a linearly spaced vector. More...
|
| |
| EIGEN_DEVICE_FUNC Derived & | setLinSpaced (const Scalar &low, const Scalar &high) |
| | Sets a linearly spaced vector. More...
|
| |
| EIGEN_DEVICE_FUNC Derived & | setEqualSpaced (Index size, const Scalar &low, const Scalar &step) |
| |
| EIGEN_DEVICE_FUNC Derived & | setEqualSpaced (const Scalar &low, const Scalar &step) |
| |
| EIGEN_DEVICE_FUNC Derived & | setZero () |
| |
| EIGEN_DEVICE_FUNC Derived & | setOnes () |
| |
| EIGEN_DEVICE_FUNC Derived & | setRandom () |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC bool | isApprox (const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| EIGEN_DEVICE_FUNC bool | isMuchSmallerThan (const RealScalar &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC bool | isMuchSmallerThan (const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| EIGEN_DEVICE_FUNC bool | isApproxToConstant (const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| EIGEN_DEVICE_FUNC bool | isConstant (const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| EIGEN_DEVICE_FUNC bool | isZero (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| EIGEN_DEVICE_FUNC bool | isOnes (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
| |
| EIGEN_DEVICE_FUNC bool | hasNaN () const |
| |
| EIGEN_DEVICE_FUNC bool | allFinite () const |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator*= (const Scalar &other) |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | operator/= (const Scalar &other) |
| |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EvalReturnType | eval () const |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | swap (const DenseBase< OtherDerived > &other) |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void | swap (PlainObjectBase< OtherDerived > &other) |
| |
| EIGEN_DEVICE_FUNC const NestByValue< Derived > | nestByValue () const |
| |
| EIGEN_DEVICE_FUNC const ForceAlignedAccess< Derived > | forceAlignedAccess () const |
| |
| EIGEN_DEVICE_FUNC ForceAlignedAccess< Derived > | forceAlignedAccess () |
| |
| template<bool Enable> |
| EIGEN_DEVICE_FUNC const std::conditional_t< Enable, ForceAlignedAccess< Derived >, Derived & > | forceAlignedAccessIf () const |
| |
| template<bool Enable> |
| EIGEN_DEVICE_FUNC std::conditional_t< Enable, ForceAlignedAccess< Derived >, Derived & > | forceAlignedAccessIf () |
| |
| EIGEN_DEVICE_FUNC Scalar | sum () const |
| |
| EIGEN_DEVICE_FUNC Scalar | mean () const |
| |
| EIGEN_DEVICE_FUNC Scalar | trace () const |
| |
| EIGEN_DEVICE_FUNC Scalar | prod () const |
| |
| template<int NaNPropagation> |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | minCoeff () const |
| |
| template<int NaNPropagation> |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | maxCoeff () const |
| |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | minCoeff () const |
| |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | maxCoeff () const |
| |
| template<int NaNPropagation, typename IndexType > |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | minCoeff (IndexType *row, IndexType *col) const |
| |
| template<int NaNPropagation, typename IndexType > |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | maxCoeff (IndexType *row, IndexType *col) const |
| |
| template<int NaNPropagation, typename IndexType > |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | minCoeff (IndexType *index) const |
| |
| template<int NaNPropagation, typename IndexType > |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | maxCoeff (IndexType *index) const |
| |
| template<typename IndexType > |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | minCoeff (IndexType *row, IndexType *col) const |
| |
| template<typename IndexType > |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | maxCoeff (IndexType *row, IndexType *col) const |
| |
| template<typename IndexType > |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | minCoeff (IndexType *index) const |
| |
| template<typename IndexType > |
| EIGEN_DEVICE_FUNC internal::traits< Derived >::Scalar | maxCoeff (IndexType *index) const |
| |
| template<typename BinaryOp > |
| EIGEN_DEVICE_FUNC Scalar | redux (const BinaryOp &func) const |
| |
| template<typename Visitor > |
| EIGEN_DEVICE_FUNC void | visit (Visitor &func) const |
| |
| const WithFormat< Derived > | format (const IOFormat &fmt) const |
| |
| EIGEN_DEVICE_FUNC CoeffReturnType | value () const |
| |
| EIGEN_DEVICE_FUNC bool | all () const |
| |
| EIGEN_DEVICE_FUNC bool | any () const |
| |
| EIGEN_DEVICE_FUNC Index | count () const |
| |
| EIGEN_DEVICE_FUNC ConstRowwiseReturnType | rowwise () const |
| |
| EIGEN_DEVICE_FUNC RowwiseReturnType | rowwise () |
| |
| EIGEN_DEVICE_FUNC ConstColwiseReturnType | colwise () const |
| |
| EIGEN_DEVICE_FUNC ColwiseReturnType | colwise () |
| |
| template<typename ThenDerived , typename ElseDerived > |
| EIGEN_DEVICE_FUNC 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 > |
| EIGEN_DEVICE_FUNC 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 ElseDerived > |
| EIGEN_DEVICE_FUNC 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<int p> |
| RealScalar | lpNorm () const |
| |
| template<int RowFactor, int ColFactor> |
| EIGEN_DEVICE_FUNC const Replicate< Derived, RowFactor, ColFactor > | replicate () const |
| |
| EIGEN_DEVICE_FUNC const Replicate< Derived, Dynamic, Dynamic > | replicate (Index rowFactor, Index colFactor) const |
| |
| EIGEN_DEVICE_FUNC ReverseReturnType | reverse () |
| |
| EIGEN_DEVICE_FUNC ConstReverseReturnType | reverse () const |
| |
| EIGEN_DEVICE_FUNC void | reverseInPlace () |
| |
| iterator | begin () |
| |
| const_iterator | begin () const |
| |
| const_iterator | cbegin () const |
| |
| iterator | end () |
| |
| const_iterator | end () const |
| |
| const_iterator | cend () const |
| |
| template<typename Dest > |
| EIGEN_DEVICE_FUNC void | evalTo (Dest &) const |
| |
| template<typename OtherDerived > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & | lazyAssign (const DenseBase< OtherDerived > &other) |
| |
| template<typename CustomNullaryOp > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseNullaryOp< CustomNullaryOp, typename DenseBase< Derived >::PlainObject > | NullaryExpr (Index rows, Index cols, const CustomNullaryOp &func) |
| |
| template<typename CustomNullaryOp > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseNullaryOp< CustomNullaryOp, typename DenseBase< Derived >::PlainObject > | NullaryExpr (Index size, const CustomNullaryOp &func) |
| |
| template<typename CustomNullaryOp > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseNullaryOp< CustomNullaryOp, typename DenseBase< Derived >::PlainObject > | NullaryExpr (const CustomNullaryOp &func) |
| |
| template<typename Derived > |
| EIGEN_DEVICE_FUNC bool | isMuchSmallerThan (const typename NumTraits< Scalar >::Real &other, const RealScalar &prec) const |
| |
| template<typename Func > |
| EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE internal::traits< Derived >::Scalar | redux (const Func &func) const |
| |
| template<typename ThenDerived , typename ElseDerived > |
| EIGEN_DEVICE_FUNC 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 > |
| EIGEN_DEVICE_FUNC 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 > |
| EIGEN_DEVICE_FUNC 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 |
| |
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