Please, help us to better know about our user community by answering the following short survey: https://forms.gle/wpyrxWi18ox9Z5ae9
Eigen  3.4.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Eigen::ArrayWrapper< ExpressionType > Class Template Reference

Detailed Description

template<typename ExpressionType>
class Eigen::ArrayWrapper< ExpressionType >

Expression of a mathematical vector or matrix as an array object.

This class is the return type of MatrixBase::array(), and most of the time this is the only way it is use.

See Also
MatrixBase::array(), class MatrixWrapper
+ Inheritance diagram for Eigen::ArrayWrapper< ExpressionType >:

Public Member Functions

void resize (Index newSize)
 
void resize (Index rows, Index cols)
 
- Public Member Functions inherited from Eigen::ArrayBase< ArrayWrapper< ExpressionType > >
const AbsReturnType abs () const
 
const Abs2ReturnType abs2 () const
 
const CwiseBinaryOp
< absolute_difference< Scalar >
, const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
absolute_difference (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_absolute_difference_op
< Scalar, Scalar >, const
ArrayWrapper< ExpressionType >
, const CwiseNullaryOp
< internal::scalar_constant_op
< Scalar >, PlainObject > > 
absolute_difference (const Scalar &other) const
 
const AcosReturnType acos () const
 
const AcoshReturnType acosh () const
 
const ArgReturnType arg () const
 
const AsinReturnType asin () const
 
const AsinhReturnType asinh () const
 
const AtanReturnType atan () const
 
const AtanhReturnType atanh () const
 
const CwiseBinaryOp
< CustomBinaryOp, const
ArrayWrapper< ExpressionType >
, const OtherDerived > 
binaryExpr (const Eigen::ArrayBase< OtherDerived > &other, const CustomBinaryOp &func=CustomBinaryOp()) const
 
const CeilReturnType ceil () const
 
const CosReturnType cos () const
 
const CoshReturnType cosh () const
 
const CubeReturnType cube () const
 
const CwiseAbsReturnType cwiseAbs () const
 
const CwiseAbs2ReturnType cwiseAbs2 () const
 
const CwiseArgReturnType cwiseArg () const
 
const CwiseBinaryOp
< numext::equal_to< Scalar >
, const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
cwiseEqual (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseScalarEqualReturnType cwiseEqual (const Scalar &s) const
 
const CwiseInverseReturnType cwiseInverse () const
 
const CwiseBinaryOp
< internal::scalar_max_op
< Scalar, Scalar >, const
ArrayWrapper< ExpressionType >
, const OtherDerived > 
cwiseMax (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_max_op
< Scalar, Scalar >, const
ArrayWrapper< ExpressionType >
, const ConstantReturnType > 
cwiseMax (const Scalar &other) const
 
const CwiseBinaryOp
< internal::scalar_min_op
< Scalar, Scalar >, const
ArrayWrapper< ExpressionType >
, const OtherDerived > 
cwiseMin (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_min_op
< Scalar, Scalar >, const
ArrayWrapper< ExpressionType >
, const ConstantReturnType > 
cwiseMin (const Scalar &other) const
 
const CwiseBinaryOp
< numext::not_equal_to< Scalar >
, const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
cwiseNotEqual (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_product_op
< ArrayWrapper< ExpressionType >
::Scalar, OtherDerived::Scalar >
, const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
cwiseProduct (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_quotient_op
< Scalar >, const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
cwiseQuotient (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseSignReturnType cwiseSign () const
 
const CwiseSqrtReturnType cwiseSqrt () const
 
const DigammaReturnType digamma () const
 
const ErfReturnType erf () const
 
const ErfcReturnType erfc () const
 
const ExpReturnType exp () const
 
const Expm1ReturnType expm1 () const
 
const FloorReturnType floor () const
 
const InverseReturnType inverse () const
 
const IsFiniteReturnType isFinite () const
 
const IsInfReturnType isInf () const
 
const IsNaNReturnType isNaN () const
 
const LgammaReturnType lgamma () const
 
const LogReturnType log () const
 
const Log10ReturnType log10 () const
 
const Log1pReturnType log1p () const
 
const Log2ReturnType log2 () const
 
const LogisticReturnType logistic () const
 
MatrixWrapper< ArrayWrapper
< ExpressionType > > 
matrix ()
 
const CwiseBinaryOp< max
< Scalar >, const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
max (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_max_op
< Scalar, Scalar >, const
ArrayWrapper< ExpressionType >
, const CwiseNullaryOp
< internal::scalar_constant_op
< Scalar >, PlainObject > > 
max (const Scalar &other) const
 
const CwiseBinaryOp< min
< Scalar >, const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
min (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_min_op
< Scalar, Scalar >, const
ArrayWrapper< ExpressionType >
, const CwiseNullaryOp
< internal::scalar_constant_op
< Scalar >, PlainObject > > 
min (const Scalar &other) const
 
const NdtriReturnType ndtri () const
 
const BooleanNotReturnType operator! () const
 
const CwiseBinaryOp
< internal::scalar_boolean_and_op,
const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
operator&& (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_product_op
< ArrayWrapper< ExpressionType >
::Scalar, OtherDerived::Scalar >
, const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
operator* (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_product_op
< Scalar, T >, ArrayWrapper
< ExpressionType >, Constant
< T > > 
operator* (const T &scalar) const
 
const CwiseBinaryOp< sum
< Scalar >, const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
operator+ (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_sum_op
< Scalar, T >, ArrayWrapper
< ExpressionType >, Constant
< T > > 
operator+ (const T &scalar) const
 
const CwiseBinaryOp
< difference< Scalar >, const
ArrayWrapper< ExpressionType >
, const OtherDerived > 
operator- (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_difference_op
< Scalar, T >, ArrayWrapper
< ExpressionType >, Constant
< T > > 
operator- (const T &scalar) const
 
const CwiseBinaryOp
< internal::scalar_quotient_op
< Scalar, typename
OtherDerived::Scalar >, const
ArrayWrapper< ExpressionType >
, const OtherDerived > 
operator/ (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_quotient_op
< Scalar, T >, ArrayWrapper
< ExpressionType >, Constant
< T > > 
operator/ (const T &scalar) const
 
ArrayWrapper< ExpressionType > & operator= (const ArrayBase &other)
 
ArrayWrapper< ExpressionType > & operator= (const Scalar &value)
 
const CwiseBinaryOp
< internal::scalar_boolean_xor_op,
const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
operator^ (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_boolean_or_op,
const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
operator|| (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp< pow
< Scalar >, const ArrayWrapper
< ExpressionType >, const
OtherDerived > 
pow (const Eigen::ArrayBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_pow_op
< Scalar, T >, ArrayWrapper
< ExpressionType >, Constant
< T > > 
pow (const T &exponent) const
 
const RintReturnType rint () const
 
const RoundReturnType round () const
 
const RsqrtReturnType rsqrt () const
 
ShiftLeftXpr< N >::Type shiftLeft () const
 
ShiftRightXpr< N >::Type shiftRight () const
 
const SignReturnType sign () const
 
const SinReturnType sin () const
 
const SinhReturnType sinh () const
 
const SqrtReturnType sqrt () const
 
const SquareReturnType square () const
 
const TanReturnType tan () const
 
const TanhReturnType tanh () const
 
const CwiseBinaryOp
< internal::scalar_zeta_op
< Scalar >, const ArrayWrapper
< ExpressionType >, const
DerivedQ > 
zeta (const Eigen::ArrayBase< DerivedQ > &q) const
 
- Public Member Functions inherited from Eigen::DenseBase< ArrayWrapper< ExpressionType > >
FixedBlockXpr<...,...>::Type block (Index startRow, Index startCol, NRowsType blockRows, NColsType blockCols)
 
const ConstFixedBlockXpr
<...,...>::Type 
block (Index startRow, Index startCol, NRowsType blockRows, NColsType blockCols) const
 This is the const version of block(Index,Index,NRowsType,NColsType)
 
FixedBlockXpr< NRows, NCols >::Type block (Index startRow, Index startCol)
 
const ConstFixedBlockXpr
< NRows, NCols >::Type 
block (Index startRow, Index startCol) const
 This is the const version of block<>(Index, Index). */.
 
FixedBlockXpr< NRows, NCols >::Type block (Index startRow, Index startCol, Index blockRows, Index blockCols)
 
const ConstFixedBlockXpr
< NRows, NCols >::Type 
block (Index startRow, Index startCol, Index blockRows, Index blockCols) const
 This is the const version of block<>(Index, Index, Index, Index).
 
FixedBlockXpr<...,...>::Type bottomLeftCorner (NRowsType cRows, NColsType cCols)
 
ConstFixedBlockXpr<...,...>::Type bottomLeftCorner (NRowsType cRows, NColsType cCols) const
 This is the const version of bottomLeftCorner(NRowsType, NColsType).
 
FixedBlockXpr< CRows, CCols >::Type bottomLeftCorner ()
 
const ConstFixedBlockXpr
< CRows, CCols >::Type 
bottomLeftCorner () const
 This is the const version of bottomLeftCorner<int, int>().
 
FixedBlockXpr< CRows, CCols >::Type bottomLeftCorner (Index cRows, Index cCols)
 
const ConstFixedBlockXpr
< CRows, CCols >::Type 
bottomLeftCorner (Index cRows, Index cCols) const
 This is the const version of bottomLeftCorner<int, int>(Index, Index).
 
FixedBlockXpr<...,...>::Type bottomRightCorner (NRowsType cRows, NColsType cCols)
 
const ConstFixedBlockXpr
<...,...>::Type 
bottomRightCorner (NRowsType cRows, NColsType cCols) const
 This is the const version of bottomRightCorner(NRowsType, NColsType).
 
FixedBlockXpr< CRows, CCols >::Type bottomRightCorner ()
 
const ConstFixedBlockXpr
< CRows, CCols >::Type 
bottomRightCorner () const
 This is the const version of bottomRightCorner<int, int>().
 
FixedBlockXpr< CRows, CCols >::Type bottomRightCorner (Index cRows, Index cCols)
 
const ConstFixedBlockXpr
< CRows, CCols >::Type 
bottomRightCorner (Index cRows, Index cCols) const
 This is the const version of bottomRightCorner<int, int>(Index, Index).
 
NRowsBlockXpr<...>::Type bottomRows (NRowsType n)
 
const ConstNRowsBlockXpr<...>::Type bottomRows (NRowsType n) const
 This is the const version of bottomRows(NRowsType).
 
NRowsBlockXpr< N >::Type bottomRows (Index n=N)
 
ConstNRowsBlockXpr< N >::Type bottomRows (Index n=N) const
 This is the const version of bottomRows<int>().
 
CastXpr< NewType >::Type cast () const
 
ColXpr col (Index i)
 
ConstColXpr col (Index i) const
 This is the const version of col().
 
ConstColwiseReturnType colwise () const
 
ConjugateReturnType conjugate () const
 
internal::conditional< Cond,
ConjugateReturnType, const
ArrayWrapper< ExpressionType >
& >::type 
conjugateIf () const
 
EvalReturnType eval () const
 
EIGEN_DEPRECATED const
ArrayWrapper< ExpressionType > & 
flagged () const
 
const WithFormat< ArrayWrapper
< ExpressionType > > 
format (const IOFormat &fmt) const
 
FixedSegmentReturnType<...>::Type head (NType n)
 
const
ConstFixedSegmentReturnType
<...>::Type 
head (NType n) const
 This is the const version of head(NType).
 
FixedSegmentReturnType< N >::Type head (Index n=N)
 
ConstFixedSegmentReturnType< N >
::Type 
head (Index n=N) const
 This is the const version of head<int>().
 
const ImagReturnType imag () const
 
NonConstImagReturnType imag ()
 
EIGEN_CONSTEXPR Index innerSize () const
 
InnerVectorReturnType innerVector (Index outer)
 
const ConstInnerVectorReturnType innerVector (Index outer) const
 
InnerVectorsReturnType innerVectors (Index outerStart, Index outerSize)
 
const ConstInnerVectorsReturnType innerVectors (Index outerStart, Index outerSize) const
 
EIGEN_DEPRECATED ArrayWrapper
< ExpressionType > & 
lazyAssign (const DenseBase< OtherDerived > &other)
 
NColsBlockXpr<...>::Type leftCols (NColsType n)
 
const ConstNColsBlockXpr<...>::Type leftCols (NColsType n) const
 This is the const version of leftCols(NColsType).
 
NColsBlockXpr< N >::Type leftCols (Index n=N)
 
ConstNColsBlockXpr< N >::Type leftCols (Index n=N) const
 This is the const version of leftCols<int>().
 
NColsBlockXpr<...>::Type middleCols (Index startCol, NColsType numCols)
 
const ConstNColsBlockXpr<...>::Type middleCols (Index startCol, NColsType numCols) const
 This is the const version of middleCols(Index,NColsType).
 
NColsBlockXpr< N >::Type middleCols (Index startCol, Index n=N)
 
ConstNColsBlockXpr< N >::Type middleCols (Index startCol, Index n=N) const
 This is the const version of middleCols<int>().
 
NRowsBlockXpr<...>::Type middleRows (Index startRow, NRowsType n)
 
const ConstNRowsBlockXpr<...>::Type middleRows (Index startRow, NRowsType n) const
 This is the const version of middleRows(Index,NRowsType).
 
NRowsBlockXpr< N >::Type middleRows (Index startRow, Index n=N)
 
ConstNRowsBlockXpr< N >::Type middleRows (Index startRow, Index n=N) const
 This is the const version of middleRows<int>().
 
EIGEN_CONSTEXPR Index nonZeros () const
 
IndexedView_or_Block operator() (const RowIndices &rowIndices, const ColIndices &colIndices)
 
IndexedView_or_VectorBlock operator() (const Indices &indices)
 
const NegativeReturnType operator- () const
 
ArrayWrapper< ExpressionType > & operator= (const DenseBase< OtherDerived > &other)
 
ArrayWrapper< ExpressionType > & operator= (const DenseBase &other)
 
EIGEN_CONSTEXPR Index outerSize () const
 
RealReturnType real () const
 
NonConstRealReturnType real ()
 
const Replicate< ArrayWrapper
< ExpressionType >, Dynamic,
Dynamic > 
replicate (Index rowFactor, Index colFactor) const
 
Reshaped< ArrayWrapper
< ExpressionType >,...> 
reshaped (NRowsType nRows, NColsType nCols)
 
const Reshaped< const
ArrayWrapper< ExpressionType >,...> 
reshaped (NRowsType nRows, NColsType nCols) const
 This is the const version of reshaped(NRowsType,NColsType).
 
Reshaped< ArrayWrapper
< ExpressionType >,...> 
reshaped ()
 
const Reshaped< const
ArrayWrapper< ExpressionType >,...> 
reshaped () const
 This is the const version of reshaped().
 
void resize (Index newSize)
 
void resize (Index rows, Index cols)
 
ConstReverseReturnType reverse () const
 
NColsBlockXpr<...>::Type rightCols (NColsType n)
 
const ConstNColsBlockXpr<...>::Type rightCols (NColsType n) const
 This is the const version of rightCols(NColsType).
 
NColsBlockXpr< N >::Type rightCols (Index n=N)
 
ConstNColsBlockXpr< N >::Type rightCols (Index n=N) const
 This is the const version of rightCols<int>().
 
RowXpr row (Index i)
 
ConstRowXpr row (Index i) const
 This is the const version of row(). */.
 
ConstRowwiseReturnType rowwise () const
 
FixedSegmentReturnType<...>::Type segment (Index start, NType n)
 
const
ConstFixedSegmentReturnType
<...>::Type 
segment (Index start, NType n) const
 This is the const version of segment(Index,NType).
 
FixedSegmentReturnType< N >::Type segment (Index start, Index n=N)
 
ConstFixedSegmentReturnType< N >
::Type 
segment (Index start, Index n=N) const
 This is the const version of segment<int>(Index).
 
internal::conditional
< Direction==Vertical, ColXpr,
RowXpr >::type 
subVector (Index i)
 
internal::conditional
< Direction==Vertical,
ConstColXpr, ConstRowXpr >
::type 
subVector (Index i) const
 
EIGEN_CONSTEXPR Index subVectors () const
 
void swap (const DenseBase< OtherDerived > &other)
 
void swap (PlainObjectBase< OtherDerived > &other)
 
FixedSegmentReturnType<...>::Type tail (NType n)
 
const
ConstFixedSegmentReturnType
<...>::Type 
tail (NType n) const
 This is the const version of tail(Index).
 
FixedSegmentReturnType< N >::Type tail (Index n=N)
 
ConstFixedSegmentReturnType< N >
::Type 
tail (Index n=N) const
 This is the const version of tail<int>.
 
FixedBlockXpr<...,...>::Type topLeftCorner (NRowsType cRows, NColsType cCols)
 
const ConstFixedBlockXpr
<...,...>::Type 
topLeftCorner (NRowsType cRows, NColsType cCols) const
 This is the const version of topLeftCorner(Index, Index).
 
FixedBlockXpr< CRows, CCols >::Type topLeftCorner ()
 
const ConstFixedBlockXpr
< CRows, CCols >::Type 
topLeftCorner () const
 This is the const version of topLeftCorner<int, int>().
 
FixedBlockXpr< CRows, CCols >::Type topLeftCorner (Index cRows, Index cCols)
 
const ConstFixedBlockXpr
< CRows, CCols >::Type 
topLeftCorner (Index cRows, Index cCols) const
 This is the const version of topLeftCorner<int, int>(Index, Index).
 
FixedBlockXpr<...,...>::Type topRightCorner (NRowsType cRows, NColsType cCols)
 
const ConstFixedBlockXpr
<...,...>::Type 
topRightCorner (NRowsType cRows, NColsType cCols) const
 This is the const version of topRightCorner(NRowsType, NColsType).
 
FixedBlockXpr< CRows, CCols >::Type topRightCorner ()
 
const ConstFixedBlockXpr
< CRows, CCols >::Type 
topRightCorner () const
 This is the const version of topRightCorner<int, int>().
 
FixedBlockXpr< CRows, CCols >::Type topRightCorner (Index cRows, Index cCols)
 
const ConstFixedBlockXpr
< CRows, CCols >::Type 
topRightCorner (Index cRows, Index cCols) const
 This is the const version of topRightCorner<int, int>(Index, Index).
 
NRowsBlockXpr<...>::Type topRows (NRowsType n)
 
const ConstNRowsBlockXpr<...>::Type topRows (NRowsType n) const
 This is the const version of topRows(NRowsType).
 
NRowsBlockXpr< N >::Type topRows (Index n=N)
 
ConstNRowsBlockXpr< N >::Type topRows (Index n=N) const
 This is the const version of topRows<int>().
 
const CwiseUnaryOp
< CustomUnaryOp, const
ArrayWrapper< ExpressionType > > 
unaryExpr (const CustomUnaryOp &func=CustomUnaryOp()) const
 Apply a unary operator coefficient-wise. More...
 
const CwiseUnaryView
< CustomViewOp, const
ArrayWrapper< ExpressionType > > 
unaryViewExpr (const CustomViewOp &func=CustomViewOp()) const
 
CoeffReturnType value () const
 

Additional Inherited Members

- Public Types inherited from Eigen::DenseBase< ArrayWrapper< ExpressionType > >
typedef random_access_iterator_type const_iterator
 
typedef random_access_iterator_type iterator
 
typedef Array< typename
internal::traits< ArrayWrapper
< ExpressionType > >::Scalar,
internal::traits< ArrayWrapper
< ExpressionType >
>::RowsAtCompileTime,
internal::traits< ArrayWrapper
< ExpressionType >
>::ColsAtCompileTime,
AutoAlign|(internal::traits
< ArrayWrapper< ExpressionType >
>::Flags &RowMajorBit?RowMajor:ColMajor),
internal::traits< ArrayWrapper
< ExpressionType >
>::MaxRowsAtCompileTime,
internal::traits< ArrayWrapper
< ExpressionType >
>::MaxColsAtCompileTime > 
PlainArray
 
typedef Matrix< typename
internal::traits< ArrayWrapper
< ExpressionType > >::Scalar,
internal::traits< ArrayWrapper
< ExpressionType >
>::RowsAtCompileTime,
internal::traits< ArrayWrapper
< ExpressionType >
>::ColsAtCompileTime,
AutoAlign|(internal::traits
< ArrayWrapper< ExpressionType >
>::Flags &RowMajorBit?RowMajor:ColMajor),
internal::traits< ArrayWrapper
< ExpressionType >
>::MaxRowsAtCompileTime,
internal::traits< ArrayWrapper
< ExpressionType >
>::MaxColsAtCompileTime > 
PlainMatrix
 
typedef internal::conditional
< internal::is_same< typename
internal::traits< ArrayWrapper
< ExpressionType > >::XprKind,
MatrixXpr >::value,
PlainMatrix, PlainArray >
::type 
PlainObject
 The plain matrix or array type corresponding to this expression. More...
 
typedef internal::traits
< ArrayWrapper< ExpressionType >
>::Scalar 
Scalar
 
typedef internal::traits
< ArrayWrapper< ExpressionType >
>::StorageIndex 
StorageIndex
 The type used to store indices. More...
 
typedef Scalar value_type
 
- Protected Member Functions inherited from Eigen::DenseBase< ArrayWrapper< ExpressionType > >
 DenseBase ()
 

Member Function Documentation

template<typename ExpressionType >
void Eigen::ArrayWrapper< ExpressionType >::resize ( Index  newSize)
inline

Forwards the resizing request to the nested expression

See Also
DenseBase::resize(Index)
template<typename ExpressionType >
void Eigen::ArrayWrapper< ExpressionType >::resize ( Index  rows,
Index  cols 
)
inline

Forwards the resizing request to the nested expression

See Also
DenseBase::resize(Index,Index)

The documentation for this class was generated from the following file: