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::MatrixWrapper< ExpressionType > Class Template Reference

Detailed Description

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

Expression of an array as a mathematical vector or matrix.

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

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

Public Member Functions

void resize (Index newSize)
 
void resize (Index rows, Index cols)
 
- Public Member Functions inherited from Eigen::MatrixBase< MatrixWrapper< ExpressionType > >
const
MatrixFunctionReturnValue
< MatrixWrapper
< ExpressionType > > 
acosh () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise inverse hyperbolic cosine use ArrayBase::acosh . More...
 
ArrayWrapper< MatrixWrapper
< ExpressionType > > 
array ()
 
const ArrayWrapper< const
MatrixWrapper< ExpressionType > > 
array () const
 
const
MatrixFunctionReturnValue
< MatrixWrapper
< ExpressionType > > 
asinh () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise inverse hyperbolic sine use ArrayBase::asinh . More...
 
const
MatrixFunctionReturnValue
< MatrixWrapper
< ExpressionType > > 
atanh () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise inverse hyperbolic cosine use ArrayBase::atanh . More...
 
const CwiseBinaryOp
< CustomBinaryOp, const
MatrixWrapper< ExpressionType >
, const OtherDerived > 
binaryExpr (const Eigen::MatrixBase< OtherDerived > &other, const CustomBinaryOp &func=CustomBinaryOp()) const
 
const
MatrixFunctionReturnValue
< MatrixWrapper
< ExpressionType > > 
cos () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise cosine use ArrayBase::cos . More...
 
const
MatrixFunctionReturnValue
< MatrixWrapper
< ExpressionType > > 
cosh () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise hyperbolic cosine use ArrayBase::cosh . More...
 
const CwiseAbsReturnType cwiseAbs () const
 
const CwiseAbs2ReturnType cwiseAbs2 () const
 
const CwiseArgReturnType cwiseArg () const
 
const CwiseBinaryOp
< numext::equal_to< Scalar >
, const MatrixWrapper
< ExpressionType >, const
OtherDerived > 
cwiseEqual (const Eigen::MatrixBase< OtherDerived > &other) const
 
const CwiseScalarEqualReturnType cwiseEqual (const Scalar &s) const
 
const CwiseInverseReturnType cwiseInverse () const
 
const CwiseBinaryOp
< internal::scalar_max_op
< Scalar, Scalar >, const
MatrixWrapper< ExpressionType >
, const OtherDerived > 
cwiseMax (const Eigen::MatrixBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_max_op
< Scalar, Scalar >, const
MatrixWrapper< ExpressionType >
, const ConstantReturnType > 
cwiseMax (const Scalar &other) const
 
const CwiseBinaryOp
< internal::scalar_min_op
< Scalar, Scalar >, const
MatrixWrapper< ExpressionType >
, const OtherDerived > 
cwiseMin (const Eigen::MatrixBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_min_op
< Scalar, Scalar >, const
MatrixWrapper< ExpressionType >
, const ConstantReturnType > 
cwiseMin (const Scalar &other) const
 
const CwiseBinaryOp
< numext::not_equal_to< Scalar >
, const MatrixWrapper
< ExpressionType >, const
OtherDerived > 
cwiseNotEqual (const Eigen::MatrixBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_product_op
< MatrixWrapper
< ExpressionType >::Scalar,
OtherDerived::Scalar >, const
MatrixWrapper< ExpressionType >
, const OtherDerived > 
cwiseProduct (const Eigen::MatrixBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_quotient_op
< Scalar >, const
MatrixWrapper< ExpressionType >
, const OtherDerived > 
cwiseQuotient (const Eigen::MatrixBase< OtherDerived > &other) const
 
const CwiseSignReturnType cwiseSign () const
 
const CwiseSqrtReturnType cwiseSqrt () const
 
Index diagonalSize () const
 
const
MatrixExponentialReturnValue
< MatrixWrapper
< ExpressionType > > 
exp () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise exponential use ArrayBase::exp . More...
 
const
MatrixLogarithmReturnValue
< MatrixWrapper
< ExpressionType > > 
log () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise logarithm use ArrayBase::log . More...
 
const
MatrixFunctionReturnValue
< MatrixWrapper
< ExpressionType > > 
matrixFunction (StemFunction f) const
 Helper function for the unsupported MatrixFunctions module.
 
bool operator!= (const MatrixBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_boolean_and_op,
const MatrixWrapper
< ExpressionType >, const
OtherDerived > 
operator&& (const Eigen::MatrixBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_product_op
< Scalar, T >, MatrixWrapper
< ExpressionType >, Constant
< T > > 
operator* (const T &scalar) const
 
const CwiseBinaryOp< sum
< Scalar >, const
MatrixWrapper< ExpressionType >
, const OtherDerived > 
operator+ (const Eigen::MatrixBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< difference< Scalar >, const
MatrixWrapper< ExpressionType >
, const OtherDerived > 
operator- (const Eigen::MatrixBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_quotient_op
< Scalar, T >, MatrixWrapper
< ExpressionType >, Constant
< T > > 
operator/ (const T &scalar) const
 
MatrixWrapper< ExpressionType > & operator= (const MatrixBase &other)
 
bool operator== (const MatrixBase< OtherDerived > &other) const
 
const CwiseBinaryOp
< internal::scalar_boolean_or_op,
const MatrixWrapper
< ExpressionType >, const
OtherDerived > 
operator|| (const Eigen::MatrixBase< OtherDerived > &other) const
 
const MatrixPowerReturnValue
< MatrixWrapper
< ExpressionType > > 
pow (const RealScalar &p) const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise power to p use ArrayBase::pow . More...
 
const
MatrixComplexPowerReturnValue
< MatrixWrapper
< ExpressionType > > 
pow (const std::complex< RealScalar > &p) const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise power to p use ArrayBase::pow . More...
 
const
MatrixFunctionReturnValue
< MatrixWrapper
< ExpressionType > > 
sin () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise sine use ArrayBase::sin . More...
 
const
MatrixFunctionReturnValue
< MatrixWrapper
< ExpressionType > > 
sinh () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise hyperbolic sine use ArrayBase::sinh . More...
 
const
MatrixSquareRootReturnValue
< MatrixWrapper
< ExpressionType > > 
sqrt () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise square root use ArrayBase::sqrt . More...
 
- Public Member Functions inherited from Eigen::DenseBase< MatrixWrapper< 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
MatrixWrapper< ExpressionType >
& >::type 
conjugateIf () const
 
EvalReturnType eval () const
 
EIGEN_DEPRECATED const
MatrixWrapper< ExpressionType > & 
flagged () const
 
const WithFormat
< MatrixWrapper
< 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 MatrixWrapper
< 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
 
MatrixWrapper< ExpressionType > & operator= (const DenseBase< OtherDerived > &other)
 
MatrixWrapper< ExpressionType > & operator= (const DenseBase &other)
 
EIGEN_CONSTEXPR Index outerSize () const
 
RealReturnType real () const
 
NonConstRealReturnType real ()
 
const Replicate< MatrixWrapper
< ExpressionType >, Dynamic,
Dynamic > 
replicate (Index rowFactor, Index colFactor) const
 
Reshaped< MatrixWrapper
< ExpressionType >,...> 
reshaped (NRowsType nRows, NColsType nCols)
 
const Reshaped< const
MatrixWrapper< ExpressionType >,...> 
reshaped (NRowsType nRows, NColsType nCols) const
 This is the const version of reshaped(NRowsType,NColsType).
 
Reshaped< MatrixWrapper
< ExpressionType >,...> 
reshaped ()
 
const Reshaped< const
MatrixWrapper< 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
MatrixWrapper< ExpressionType > > 
unaryExpr (const CustomUnaryOp &func=CustomUnaryOp()) const
 Apply a unary operator coefficient-wise. More...
 
const CwiseUnaryView
< CustomViewOp, const
MatrixWrapper< ExpressionType > > 
unaryViewExpr (const CustomViewOp &func=CustomViewOp()) const
 
CoeffReturnType value () const
 

Additional Inherited Members

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

Member Function Documentation

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

Forwards the resizing request to the nested expression

See Also
DenseBase::resize(Index)
template<typename ExpressionType >
void Eigen::MatrixWrapper< 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 files: