Eigen::MatrixWrapper< ExpressionType > Class Template Reference

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

+ Inheritance diagram for Eigen::MatrixWrapper< ExpressionType >:

Public Types

typedef MatrixBase< MatrixWrapper< ExpressionType > > Base
 
typedef internal::remove_all_t< ExpressionType > NestedExpression
 
typedef internal::ref_selector< ExpressionType >::non_const_type NestedExpressionType
 
typedef std::conditional_t< internal::is_lvalue< ExpressionType >::value, Scalar, const ScalarScalarWithConstIfNotLvalue
 
- Public Types inherited from Eigen::MatrixBase< MatrixWrapper< ExpressionType > >
enum  
 
enum  
 
typedef Diagonal< const MatrixWrapper< ExpressionType > > ConstDiagonalReturnType
 
typedef Block< const MatrixWrapper< ExpressionType >, internal::traits< MatrixWrapper< ExpressionType > >::ColsAtCompileTime==1 ? SizeMinusOne :1, internal::traits< MatrixWrapper< ExpressionType > >::ColsAtCompileTime==1 ? 1 :SizeMinusOneConstStartMinusOne
 
typedef Diagonal< MatrixWrapper< ExpressionType > > DiagonalReturnType
 
typedef Homogeneous< MatrixWrapper< ExpressionType >, HomogeneousReturnTypeDirectionHomogeneousReturnType
 
typedef Base::PlainObject PlainObject
 
typedef internal::stem_function< Scalar >::type StemFunction
 
- Public Types inherited from Eigen::DenseBase< MatrixWrapper< ExpressionType > >
enum  
 
enum  
 
typedef DenseCoeffsBase< MatrixWrapper< ExpressionType >, internal::accessors_level< MatrixWrapper< ExpressionType > >::valueBase
 
typedef Base::CoeffReturnType CoeffReturnType
 
typedef VectorwiseOp< MatrixWrapper< ExpressionType >, Vertical > ColwiseReturnType
 
typedef random_access_iterator_type const_iterator
 
typedef const VectorwiseOp< const MatrixWrapper< ExpressionType >, Vertical > ConstColwiseReturnType
 
typedef const Reverse< const MatrixWrapper< ExpressionType >, BothDirections > ConstReverseReturnType
 
typedef const VectorwiseOp< const MatrixWrapper< ExpressionType >, Horizontal > ConstRowwiseReturnType
 
typedef Transpose< const MatrixWrapper< ExpressionType > > ConstTransposeReturnType
 
typedef internal::add_const_on_value_type_t< typename internal::eval< MatrixWrapper< ExpressionType > >::type > EvalReturnType
 
typedef random_access_iterator_type iterator
 
typedef internal::find_best_packet< Scalar, SizeAtCompileTime >::type PacketScalar
 
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 > >::MaxColsAtCompileTimePlainArray
 
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 > >::MaxColsAtCompileTimePlainMatrix
 
typedef std::conditional_t< internal::is_same< typename internal::traits< MatrixWrapper< ExpressionType > >::XprKind, MatrixXpr >::value, PlainMatrix, PlainArrayPlainObject
 The plain matrix or array type corresponding to this expression. More...
 
typedef CwiseNullaryOp< internal::scalar_random_op< Scalar >, PlainObjectRandomReturnType
 
typedef NumTraits< Scalar >::Real RealScalar
 
typedef Reverse< MatrixWrapper< ExpressionType >, BothDirections > ReverseReturnType
 
typedef VectorwiseOp< MatrixWrapper< ExpressionType >, Horizontal > RowwiseReturnType
 
typedef internal::traits< MatrixWrapper< ExpressionType > >::Scalar Scalar
 
typedef internal::traits< MatrixWrapper< ExpressionType > >::StorageIndex StorageIndex
 The type used to store indices. More...
 
typedef internal::traits< MatrixWrapper< ExpressionType > >::StorageKind StorageKind
 
typedef Transpose< MatrixWrapper< ExpressionType > > TransposeReturnType
 
typedef Scalar value_type
 

Public Member Functions

const ScalarcoeffRef (Index index) const
 
const ScalarcoeffRef (Index rowId, Index colId) const
 
EIGEN_CONSTEXPR Index cols () const EIGEN_NOEXCEPT
 
ScalarWithConstIfNotLvaluedata ()
 
const Scalardata () const
 
EIGEN_CONSTEXPR Index innerStride () const EIGEN_NOEXCEPT
 
 MatrixWrapper (ExpressionType &matrix)
 
const internal::remove_all_t< NestedExpressionType > & nestedExpression () const
 
EIGEN_CONSTEXPR Index outerStride () const EIGEN_NOEXCEPT
 
void resize (Index newSize)
 
void resize (Index rows, Index cols)
 
EIGEN_CONSTEXPR Index rows () const EIGEN_NOEXCEPT
 
- 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...
 
const AdjointReturnType adjoint () const
 
void adjointInPlace ()
 
void applyHouseholderOnTheLeft (const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
 
void applyHouseholderOnTheRight (const EssentialPart &essential, const Scalar &tau, Scalar *workspace)
 
void applyOnTheLeft (const EigenBase< OtherDerived > &other)
 
void applyOnTheLeft (Index p, Index q, const JacobiRotation< OtherScalar > &j)
 
void applyOnTheRight (const EigenBase< OtherDerived > &other)
 
void applyOnTheRight (Index p, Index q, const JacobiRotation< OtherScalar > &j)
 
ArrayWrapper< MatrixWrapper< ExpressionType > > array ()
 
const ArrayWrapper< const MatrixWrapper< ExpressionType > > array () const
 
const DiagonalWrapper< const MatrixWrapper< ExpressionType > > asDiagonal () 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 PermutationWrapper< const MatrixWrapper< ExpressionType > > asPermutation () const
 
const SkewSymmetricWrapper< const MatrixWrapper< ExpressionType > > asSkewSymmetric () const
 
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...
 
BDCSVD< PlainObject, Options > bdcSvd () const
 
BDCSVD< typename MatrixBase< MatrixWrapper< ExpressionType > >::PlainObject, Options > bdcSvd () const
 
EIGEN_DEPRECATED BDCSVD< PlainObject, Options > bdcSvd (unsigned int computationOptions) const
 
BDCSVD< typename MatrixBase< MatrixWrapper< ExpressionType > >::PlainObject, Options > bdcSvd (unsigned int computationOptions) const
 
RealScalar blueNorm () const
 
Matrix< Scalar, 3, 1 > canonicalEulerAngles (Index a0, Index a1, Index a2) const
 
const ColPivHouseholderQR< PlainObject, PermutationIndex > colPivHouseholderQr () const
 
const ColPivHouseholderQR< typename MatrixBase< MatrixWrapper< ExpressionType > >::PlainObject, PermutationIndexType > colPivHouseholderQr () const
 
const CompleteOrthogonalDecomposition< PlainObject, PermutationIndex > completeOrthogonalDecomposition () const
 
const CompleteOrthogonalDecomposition< typename MatrixBase< MatrixWrapper< ExpressionType > >::PlainObject, PermutationIndex > completeOrthogonalDecomposition () const
 
void computeInverseAndDetWithCheck (ResultType &inverse, typename ResultType::Scalar &determinant, bool &invertible, const RealScalar &absDeterminantThreshold=NumTraits< Scalar >::dummy_precision()) const
 
void computeInverseWithCheck (ResultType &inverse, bool &invertible, const RealScalar &absDeterminantThreshold=NumTraits< Scalar >::dummy_precision()) 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...
 
internal::cross_impl< MatrixWrapper< ExpressionType >, OtherDerived >::return_type cross (const MatrixBase< OtherDerived > &other) const
 
std::conditional_t< SizeAtCompileTime==2, Scalar, PlainObjectcross (const MatrixBase< OtherDerived > &other) const
 
PlainObject cross3 (const MatrixBase< OtherDerived > &other) const
 
const SparseMatrixBase< OtherDerived >::template CwiseProductDenseReturnType< MatrixWrapper< ExpressionType > >::Type cwiseProduct (const SparseMatrixBase< OtherDerived > &other) const
 
Scalar determinant () const
 
DiagonalReturnType diagonal ()
 
Diagonal< MatrixWrapper< ExpressionType >, Indexdiagonal ()
 
const ConstDiagonalReturnType diagonal () const
 
const Diagonal< const MatrixWrapper< ExpressionType >, Indexdiagonal () const
 
Diagonal< MatrixWrapper< ExpressionType >, DynamicIndex > diagonal (Index index)
 
const Diagonal< const MatrixWrapper< ExpressionType >, DynamicIndex > diagonal (Index index) const
 
Index diagonalSize () const
 
ScalarBinaryOpTraits< typename internal::traits< MatrixWrapper< ExpressionType > >::Scalar, typename internal::traits< OtherDerived >::Scalar >::ReturnType dot (const MatrixBase< OtherDerived > &other) const
 
typedef EIGEN_EXPR_BINARYOP_SCALAR_RETURN_TYPE (ConstStartMinusOne, Scalar, quotient) HNormalizedReturnType
 
EigenvaluesReturnType eigenvalues () const
 Computes the eigenvalues of a matrix. More...
 
EIGEN_DEPRECATED Matrix< Scalar, 3, 1 > eulerAngles (Index a0, Index a1, Index a2) const
 
const MatrixExponentialReturnValue< MatrixWrapper< ExpressionType > > exp () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise exponential use ArrayBase::exp . More...
 
MatrixWrapper< ExpressionType > & forceAlignedAccess ()
 
const MatrixWrapper< ExpressionType > & forceAlignedAccess () const
 
std::conditional_t< Enable, ForceAlignedAccess< MatrixWrapper< ExpressionType > >, MatrixWrapper< ExpressionType > & > forceAlignedAccessIf ()
 
MatrixWrapper< ExpressionType > & forceAlignedAccessIf ()
 
add_const_on_value_type_t< std::conditional_t< Enable, ForceAlignedAccess< MatrixWrapper< ExpressionType > >, MatrixWrapper< ExpressionType > & > > forceAlignedAccessIf () const
 
const MatrixWrapper< ExpressionType > & forceAlignedAccessIf () const
 
const FullPivHouseholderQR< PlainObject, PermutationIndex > fullPivHouseholderQr () const
 
const FullPivHouseholderQR< typename MatrixBase< MatrixWrapper< ExpressionType > >::PlainObject, PermutationIndex > fullPivHouseholderQr () const
 
const FullPivLU< PlainObject, PermutationIndex > fullPivLu () const
 
const FullPivLU< typename MatrixBase< MatrixWrapper< ExpressionType > >::PlainObject, PermutationIndex > fullPivLu () const
 
const HNormalizedReturnType hnormalized () const
 homogeneous normalization More...
 
HomogeneousReturnType homogeneous () const
 
const HouseholderQR< PlainObjecthouseholderQr () const
 
RealScalar hypotNorm () const
 
const Inverse< MatrixWrapper< ExpressionType > > inverse () const
 
bool isDiagonal (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
 
bool isIdentity (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
 
bool isLowerTriangular (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
 
bool isOrthogonal (const MatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
 
bool isSkewSymmetric (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
 
bool isUnitary (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
 
bool isUpperTriangular (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
 
JacobiSVD< PlainObject, Options > jacobiSvd () const
 
JacobiSVD< typename MatrixBase< MatrixWrapper< ExpressionType > >::PlainObject, Options > jacobiSvd () const
 
EIGEN_DEPRECATED JacobiSVD< PlainObject, Options > jacobiSvd (unsigned int computationOptions) const
 
JacobiSVD< typename MatrixBase< MatrixWrapper< ExpressionType > >::PlainObject, Options > jacobiSvd (unsigned int computationOptions) const
 
const Product< MatrixWrapper< ExpressionType >, OtherDerived, LazyProduct > lazyProduct (const MatrixBase< OtherDerived > &other) const
 
const LDLT< PlainObjectldlt () const
 
const LLT< PlainObjectllt () const
 
const MatrixLogarithmReturnValue< MatrixWrapper< ExpressionType > > log () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise logarithm use ArrayBase::log . More...
 
RealScalar lpNorm () const
 
const PartialPivLU< PlainObject, PermutationIndex > lu () const
 
const PartialPivLU< typename MatrixBase< MatrixWrapper< ExpressionType > >::PlainObject, PermutationIndex > lu () const
 
void makeHouseholder (EssentialPart &essential, Scalar &tau, RealScalar &beta) const
 
void makeHouseholderInPlace (Scalar &tau, RealScalar &beta)
 
MatrixBase< MatrixWrapper< ExpressionType > > & matrix ()
 
const MatrixBase< MatrixWrapper< ExpressionType > > & matrix () const
 
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > matrixFunction (StemFunction f) const
 Helper function for the unsupported MatrixFunctions module. More...
 
NoAlias< MatrixWrapper< ExpressionType >, Eigen::MatrixBasenoalias ()
 
RealScalar norm () const
 
void normalize ()
 
const PlainObject normalized () const
 
bool operator!= (const MatrixBase< OtherDerived > &other) const
 
const Product< MatrixWrapper< ExpressionType >, DiagonalDerived, LazyProduct > operator* (const DiagonalBase< DiagonalDerived > &diagonal) const
 
const Product< MatrixWrapper< ExpressionType >, OtherDerived > operator* (const MatrixBase< OtherDerived > &other) const
 
const Product< MatrixWrapper< ExpressionType >, SkewDerived, LazyProduct > operator* (const SkewSymmetricBase< SkewDerived > &skew) const
 
MatrixWrapper< ExpressionType > & operator*= (const EigenBase< OtherDerived > &other)
 
MatrixWrapper< ExpressionType > & operator+= (const MatrixBase< OtherDerived > &other)
 
MatrixWrapper< ExpressionType > & operator-= (const MatrixBase< OtherDerived > &other)
 
MatrixWrapper< ExpressionType > & operator= (const DenseBase< OtherDerived > &other)
 
MatrixWrapper< ExpressionType > & operator= (const EigenBase< OtherDerived > &other)
 
MatrixWrapper< ExpressionType > & operator= (const MatrixBase &other)
 
MatrixWrapper< ExpressionType > & operator= (const ReturnByValue< OtherDerived > &other)
 
bool operator== (const MatrixBase< OtherDerived > &other) const
 
RealScalar operatorNorm () const
 Computes the L2 operator norm. More...
 
const PartialPivLU< PlainObject, PermutationIndex > partialPivLu () const
 
const PartialPivLU< typename MatrixBase< MatrixWrapper< ExpressionType > >::PlainObject, PermutationIndex > partialPivLu () 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...
 
SelfAdjointViewReturnType< UpLo >::Type selfadjointView ()
 
MatrixBase< MatrixWrapper< ExpressionType > >::template SelfAdjointViewReturnType< UpLo >::Type selfadjointView ()
 
ConstSelfAdjointViewReturnType< UpLo >::Type selfadjointView () const
 
MatrixBase< MatrixWrapper< ExpressionType > >::template ConstSelfAdjointViewReturnType< UpLo >::Type selfadjointView () const
 
MatrixWrapper< ExpressionType > & setIdentity ()
 
MatrixWrapper< ExpressionType > & setIdentity (Index rows, Index cols)
 Resizes to the given size, and writes the identity expression (not necessarily square) into *this. More...
 
MatrixWrapper< ExpressionType > & setUnit (Index i)
 Set the coefficients of *this to the i-th unit (basis) vector. More...
 
MatrixWrapper< ExpressionType > & setUnit (Index newSize, Index i)
 Resizes to the given newSize, and writes the i-th unit (basis) vector into *this. 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 SparseView< MatrixWrapper< ExpressionType > > sparseView (const Scalar &m_reference=Scalar(0), const typename NumTraits< Scalar >::Real &m_epsilon=NumTraits< Scalar >::dummy_precision()) const
 
const MatrixSquareRootReturnValue< MatrixWrapper< ExpressionType > > sqrt () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise square root use ArrayBase::sqrt . More...
 
RealScalar squaredNorm () const
 
RealScalar stableNorm () const
 
void stableNormalize ()
 
const PlainObject stableNormalized () const
 
Scalar trace () const
 
TriangularViewReturnType< Mode >::Type triangularView ()
 
MatrixBase< MatrixWrapper< ExpressionType > >::template TriangularViewReturnType< Mode >::Type triangularView ()
 
ConstTriangularViewReturnType< Mode >::Type triangularView () const
 
MatrixBase< MatrixWrapper< ExpressionType > >::template ConstTriangularViewReturnType< Mode >::Type triangularView () const
 
PlainObject unitOrthogonal (void) const
 
- Public Member Functions inherited from Eigen::DenseBase< MatrixWrapper< ExpressionType > >
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
 
void evalTo (Dest &) const
 
void fill (const Scalar &value)
 
EIGEN_DEPRECATED const MatrixWrapper< ExpressionType > & flagged () const
 
ForceAlignedAccess< MatrixWrapper< ExpressionType > > forceAlignedAccess ()
 
const ForceAlignedAccess< MatrixWrapper< ExpressionType > > forceAlignedAccess () const
 
std::conditional_t< Enable, ForceAlignedAccess< MatrixWrapper< ExpressionType > >, MatrixWrapper< ExpressionType > & > forceAlignedAccessIf ()
 
const std::conditional_t< Enable, ForceAlignedAccess< MatrixWrapper< ExpressionType > >, MatrixWrapper< ExpressionType > & > forceAlignedAccessIf () const
 
const WithFormat< MatrixWrapper< ExpressionType > > format (const IOFormat &fmt) const
 
bool hasNaN () const
 
EIGEN_CONSTEXPR Index innerSize () const
 
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
 
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
 
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
 
MatrixWrapper< ExpressionType > & lazyAssign (const DenseBase< OtherDerived > &other)
 
EIGEN_DEPRECATED MatrixWrapper< ExpressionType > & lazyAssign (const DenseBase< OtherDerived > &other)
 
RealScalar lpNorm () const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar maxCoeff () const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar maxCoeff () const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar maxCoeff (IndexType *index) const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar maxCoeff (IndexType *index) const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar maxCoeff (IndexType *row, IndexType *col) const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar maxCoeff (IndexType *row, IndexType *col) const
 
Scalar mean () const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar minCoeff () const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar minCoeff () const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar minCoeff (IndexType *index) const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar minCoeff (IndexType *index) const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar minCoeff (IndexType *row, IndexType *col) const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar minCoeff (IndexType *row, IndexType *col) const
 
const NestByValue< MatrixWrapper< ExpressionType > > nestByValue () const
 
MatrixWrapper< ExpressionType > & operator*= (const Scalar &other)
 
MatrixWrapper< ExpressionType > & operator+= (const EigenBase< OtherDerived > &other)
 
MatrixWrapper< ExpressionType > & operator-= (const EigenBase< OtherDerived > &other)
 
MatrixWrapper< ExpressionType > & operator/= (const Scalar &other)
 
CommaInitializer< MatrixWrapper< ExpressionType > > operator<< (const DenseBase< OtherDerived > &other)
 
CommaInitializer< MatrixWrapper< ExpressionType > > operator<< (const Scalar &s)
 
MatrixWrapper< ExpressionType > & operator= (const DenseBase &other)
 
MatrixWrapper< ExpressionType > & operator= (const DenseBase< OtherDerived > &other)
 
MatrixWrapper< ExpressionType > & operator= (const EigenBase< OtherDerived > &other)
 Copies the generic expression other into *this. More...
 
MatrixWrapper< ExpressionType > & operator= (const ReturnByValue< OtherDerived > &func)
 
EIGEN_CONSTEXPR Index outerSize () const
 
Scalar prod () const
 
Scalar redux (const BinaryOp &func) const
 
internal::traits< MatrixWrapper< ExpressionType > >::Scalar redux (const Func &func) const
 
const Replicate< MatrixWrapper< ExpressionType >, RowFactor, ColFactor > replicate () const
 
const Replicate< MatrixWrapper< ExpressionType >, 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
 
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenDerived >::Scalar, typename DenseBase< ElseDerived >::Scalar, Scalar >, ThenDerived, ElseDerived, MatrixWrapper< ExpressionType > > select (const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const
 
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenDerived >::Scalar, typename DenseBase< ElseDerived >::Scalar, typename DenseBase< MatrixWrapper< ExpressionType > >::Scalar >, ThenDerived, ElseDerived, MatrixWrapper< ExpressionType > > select (const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const
 
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenDerived >::Scalar, typename DenseBase< ThenDerived >::Scalar, Scalar >, ThenDerived, typename DenseBase< ThenDerived >::ConstantReturnType, MatrixWrapper< ExpressionType > > select (const DenseBase< ThenDerived > &thenMatrix, const typename DenseBase< ThenDerived >::Scalar &elseScalar) const
 
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ThenDerived >::Scalar, typename DenseBase< ThenDerived >::Scalar, typename DenseBase< MatrixWrapper< ExpressionType > >::Scalar >, ThenDerived, typename DenseBase< ThenDerived >::ConstantReturnType, MatrixWrapper< ExpressionType > > select (const DenseBase< ThenDerived > &thenMatrix, const typename DenseBase< ThenDerived >::Scalar &elseScalar) const
 
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ElseDerived >::Scalar, typename DenseBase< ElseDerived >::Scalar, Scalar >, typename DenseBase< ElseDerived >::ConstantReturnType, ElseDerived, MatrixWrapper< ExpressionType > > select (const typename DenseBase< ElseDerived >::Scalar &thenScalar, const DenseBase< ElseDerived > &elseMatrix) const
 
CwiseTernaryOp< internal::scalar_boolean_select_op< typename DenseBase< ElseDerived >::Scalar, typename DenseBase< ElseDerived >::Scalar, typename DenseBase< MatrixWrapper< ExpressionType > >::Scalar >, typename DenseBase< ElseDerived >::ConstantReturnType, ElseDerived, MatrixWrapper< ExpressionType > > select (const typename DenseBase< ElseDerived >::Scalar &thenScalar, const DenseBase< ElseDerived > &elseMatrix) const
 
MatrixWrapper< ExpressionType > & setConstant (const Scalar &value)
 
MatrixWrapper< ExpressionType > & setEqualSpaced (const Scalar &low, const Scalar &step)
 
MatrixWrapper< ExpressionType > & setEqualSpaced (Index size, const Scalar &low, const Scalar &step)
 
MatrixWrapper< ExpressionType > & setLinSpaced (const Scalar &low, const Scalar &high)
 Sets a linearly spaced vector. More...
 
MatrixWrapper< ExpressionType > & setLinSpaced (Index size, const Scalar &low, const Scalar &high)
 Sets a linearly spaced vector. More...
 
MatrixWrapper< ExpressionType > & setOnes ()
 
MatrixWrapper< ExpressionType > & setRandom ()
 
MatrixWrapper< ExpressionType > & setZero ()
 
Scalar sum () const
 
void swap (const DenseBase< OtherDerived > &other)
 
void swap (PlainObjectBase< OtherDerived > &other)
 
Scalar trace () const
 
TransposeReturnType transpose ()
 
const ConstTransposeReturnType transpose () const
 
void transposeInPlace ()
 
CoeffReturnType value () const
 
void visit (Visitor &func) const
 

Protected Attributes

NestedExpressionType m_expression
 

Additional Inherited Members

- Static Public Member Functions inherited from Eigen::MatrixBase< MatrixWrapper< ExpressionType > >
static const IdentityReturnType Identity ()
 
static const IdentityReturnType Identity (Index rows, Index cols)
 
static const BasisReturnType Unit (Index i)
 
static const BasisReturnType Unit (Index size, Index i)
 
static const BasisReturnType UnitW ()
 
static const BasisReturnType UnitX ()
 
static const BasisReturnType UnitY ()
 
static const BasisReturnType UnitZ ()
 
- Static Public Member Functions inherited from Eigen::DenseBase< MatrixWrapper< ExpressionType > >
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)
 
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)
 
static const CwiseNullaryOp< CustomNullaryOp, PlainObjectNullaryExpr (const CustomNullaryOp &func)
 
static const CwiseNullaryOp< CustomNullaryOp, PlainObjectNullaryExpr (Index rows, Index cols, const CustomNullaryOp &func)
 
static const CwiseNullaryOp< CustomNullaryOp, PlainObjectNullaryExpr (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)
 
- Protected Member Functions inherited from Eigen::MatrixBase< MatrixWrapper< ExpressionType > >
MatrixWrapper< ExpressionType > & operator+= (const ArrayBase< OtherDerived > &)
 
MatrixWrapper< ExpressionType > & operator-= (const ArrayBase< OtherDerived > &)
 
- Protected Member Functions inherited from Eigen::DenseBase< MatrixWrapper< ExpressionType > >
constexpr DenseBase ()
 

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

Definition at line 142 of file ArrayWrapper.h.

Member Typedef Documentation

◆ Base

template<typename ExpressionType >
typedef MatrixBase<MatrixWrapper<ExpressionType> > Eigen::MatrixWrapper< ExpressionType >::Base

Definition at line 145 of file ArrayWrapper.h.

◆ NestedExpression

template<typename ExpressionType >
typedef internal::remove_all_t<ExpressionType> Eigen::MatrixWrapper< ExpressionType >::NestedExpression

Definition at line 148 of file ArrayWrapper.h.

◆ NestedExpressionType

template<typename ExpressionType >
typedef internal::ref_selector<ExpressionType>::non_const_type Eigen::MatrixWrapper< ExpressionType >::NestedExpressionType

Definition at line 156 of file ArrayWrapper.h.

◆ ScalarWithConstIfNotLvalue

template<typename ExpressionType >
typedef std::conditional_t< internal::is_lvalue<ExpressionType>::value, Scalar, const Scalar > Eigen::MatrixWrapper< ExpressionType >::ScalarWithConstIfNotLvalue

Definition at line 154 of file ArrayWrapper.h.

Constructor & Destructor Documentation

◆ MatrixWrapper()

template<typename ExpressionType >
Eigen::MatrixWrapper< ExpressionType >::MatrixWrapper ( ExpressionType &  matrix)
inlineexplicit

Definition at line 161 of file ArrayWrapper.h.

161 : m_expression(matrix) {}
MatrixBase< MatrixWrapper< ExpressionType > > & matrix()
Definition: MatrixBase.h:319
NestedExpressionType m_expression
Definition: ArrayWrapper.h:206

Member Function Documentation

◆ coeffRef() [1/2]

template<typename ExpressionType >
const Scalar& Eigen::MatrixWrapper< ExpressionType >::coeffRef ( Index  index) const
inline

Definition at line 184 of file ArrayWrapper.h.

185  {
186  return m_expression.coeffRef(index);
187  }

◆ coeffRef() [2/2]

template<typename ExpressionType >
const Scalar& Eigen::MatrixWrapper< ExpressionType >::coeffRef ( Index  rowId,
Index  colId 
) const
inline

Definition at line 178 of file ArrayWrapper.h.

179  {
180  return m_expression.derived().coeffRef(rowId, colId);
181  }

◆ cols()

template<typename ExpressionType >
EIGEN_CONSTEXPR Index Eigen::MatrixWrapper< ExpressionType >::cols ( ) const
inline

Definition at line 166 of file ArrayWrapper.h.

166 { return m_expression.cols(); }

◆ data() [1/2]

template<typename ExpressionType >
ScalarWithConstIfNotLvalue* Eigen::MatrixWrapper< ExpressionType >::data ( )
inline

Definition at line 173 of file ArrayWrapper.h.

173 { return m_expression.data(); }

◆ data() [2/2]

template<typename ExpressionType >
const Scalar* Eigen::MatrixWrapper< ExpressionType >::data ( ) const
inline

Definition at line 175 of file ArrayWrapper.h.

175 { return m_expression.data(); }

◆ innerStride()

template<typename ExpressionType >
EIGEN_CONSTEXPR Index Eigen::MatrixWrapper< ExpressionType >::innerStride ( ) const
inline

Definition at line 170 of file ArrayWrapper.h.

170 { return m_expression.innerStride(); }

◆ nestedExpression()

template<typename ExpressionType >
const internal::remove_all_t<NestedExpressionType>& Eigen::MatrixWrapper< ExpressionType >::nestedExpression ( ) const
inline

Definition at line 191 of file ArrayWrapper.h.

192  {
193  return m_expression;
194  }

◆ outerStride()

template<typename ExpressionType >
EIGEN_CONSTEXPR Index Eigen::MatrixWrapper< ExpressionType >::outerStride ( ) const
inline

Definition at line 168 of file ArrayWrapper.h.

168 { return m_expression.outerStride(); }

◆ resize() [1/2]

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

Forwards the resizing request to the nested expression

See also
DenseBase::resize(Index)

Definition at line 199 of file ArrayWrapper.h.

199 { m_expression.resize(newSize); }

◆ resize() [2/2]

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)

Definition at line 203 of file ArrayWrapper.h.

203 { m_expression.resize(rows,cols); }
EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: ArrayWrapper.h:166
EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: ArrayWrapper.h:164

◆ rows()

template<typename ExpressionType >
EIGEN_CONSTEXPR Index Eigen::MatrixWrapper< ExpressionType >::rows ( ) const
inline

Definition at line 164 of file ArrayWrapper.h.

164 { return m_expression.rows(); }

Member Data Documentation

◆ m_expression

template<typename ExpressionType >
NestedExpressionType Eigen::MatrixWrapper< ExpressionType >::m_expression
protected

Definition at line 206 of file ArrayWrapper.h.


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