![]() |
Eigen
3.4.0
|
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.
Public Member Functions | |
void | resize (Index newSize) |
void | resize (Index rows, Index cols) |
![]() | |
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > | acosh () const |
This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise inverse hyperbolic cosine use ArrayBase::acosh . | |
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 . | |
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > | atanh () const |
This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise inverse hyperbolic cosine use ArrayBase::atanh . | |
BDCSVD< PlainObject > | bdcSvd (unsigned int computationOptions=0) const |
RealScalar | blueNorm () const |
const ColPivHouseholderQR< PlainObject > | colPivHouseholderQr () const |
const CompleteOrthogonalDecomposition< PlainObject > | 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 . | |
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > | cosh () const |
This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise hyperbolic cosine use ArrayBase::cosh . | |
PlainObject | cross (const MatrixBase< OtherDerived > &other) const |
PlainObject | cross3 (const MatrixBase< OtherDerived > &other) const |
Scalar | determinant () const |
DiagonalReturnType | diagonal () |
ConstDiagonalReturnType | diagonal () const |
DiagonalDynamicIndexReturnType | diagonal (Index index) |
ConstDiagonalDynamicIndexReturnType | diagonal (Index index) const |
Index | diagonalSize () const |
ScalarBinaryOpTraits< typenameinternal::traits< MatrixWrapper< ExpressionType > >::Scalar, typenameinternal::traits< OtherDerived >::Scalar >::ReturnType | dot (const MatrixBase< OtherDerived > &other) const |
EigenvaluesReturnType | eigenvalues () const |
Computes the eigenvalues of a matrix. | |
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 . | |
MatrixWrapper< ExpressionType > & | forceAlignedAccess () |
const MatrixWrapper< ExpressionType > & | forceAlignedAccess () const |
internal::conditional< Enable, ForceAlignedAccess< MatrixWrapper< ExpressionType > >, MatrixWrapper< ExpressionType > & >::type | forceAlignedAccessIf () |
internal::add_const_on_value_type< typenameinternal::conditional< Enable, ForceAlignedAccess< MatrixWrapper< ExpressionType > >, MatrixWrapper< ExpressionType > & >::type >::type | forceAlignedAccessIf () const |
const FullPivHouseholderQR< PlainObject > | fullPivHouseholderQr () const |
const FullPivLU< PlainObject > | fullPivLu () const |
const HNormalizedReturnType | hnormalized () const |
homogeneous normalization | |
HomogeneousReturnType | homogeneous () const |
const HouseholderQR< PlainObject > | householderQr () 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 | isUnitary (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
bool | isUpperTriangular (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
JacobiSVD< PlainObject > | jacobiSvd (unsigned int computationOptions=0) const |
const Product< MatrixWrapper< ExpressionType >, OtherDerived, LazyProduct > | lazyProduct (const MatrixBase< OtherDerived > &other) const |
const LDLT< PlainObject > | ldlt () const |
const LLT< PlainObject > | llt () const |
const MatrixLogarithmReturnValue< MatrixWrapper< ExpressionType > > | log () const |
This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise logarithm use ArrayBase::log . | |
RealScalar | lpNorm () const |
const PartialPivLU< PlainObject > | lu () const |
void | makeHouseholder (EssentialPart &essential, Scalar &tau, RealScalar &beta) const |
void | makeHouseholderInPlace (Scalar &tau, RealScalar &beta) |
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > | matrixFunction (StemFunction f) const |
Helper function for the unsupported MatrixFunctions module. | |
NoAlias< MatrixWrapper< ExpressionType >, Eigen::MatrixBase > | noalias () |
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 |
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 MatrixBase &other) |
bool | operator== (const MatrixBase< OtherDerived > &other) const |
RealScalar | operatorNorm () const |
Computes the L2 operator norm. | |
const PartialPivLU< PlainObject > | 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 . | |
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 . | |
MatrixBase< MatrixWrapper< ExpressionType > >::template SelfAdjointViewReturnType< UpLo >::Type | selfadjointView () |
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. | |
MatrixWrapper< ExpressionType > & | setUnit (Index i) |
Set the coefficients of *this to the i-th unit (basis) vector. | |
MatrixWrapper< ExpressionType > & | setUnit (Index newSize, Index i) |
Resizes to the given newSize, and writes the i-th unit (basis) vector into *this. | |
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > | sin () const |
This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise sine use ArrayBase::sin . | |
const MatrixFunctionReturnValue< MatrixWrapper< ExpressionType > > | sinh () const |
This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise hyperbolic sine use ArrayBase::sinh . | |
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 . | |
RealScalar | squaredNorm () const |
RealScalar | stableNorm () const |
void | stableNormalize () |
const PlainObject | stableNormalized () const |
Scalar | trace () const |
MatrixBase< MatrixWrapper< ExpressionType > >::template TriangularViewReturnType< Mode >::Type | triangularView () |
MatrixBase< MatrixWrapper< ExpressionType > >::template ConstTriangularViewReturnType< Mode >::Type | triangularView () const |
PlainObject | unitOrthogonal (void) const |
![]() | |
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 | fill (const Scalar &value) |
template<unsigned int Added, unsigned int Removed> | |
EIGEN_DEPRECATED const Derived & | flagged () const |
const WithFormat< Derived > | format (const IOFormat &fmt) const |
bool | hasNaN () const |
EIGEN_CONSTEXPR Index | innerSize () const |
template<typename OtherDerived > | |
bool | isApprox (const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
bool | isApproxToConstant (const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
bool | isConstant (const Scalar &value, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
template<typename OtherDerived > | |
bool | isMuchSmallerThan (const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
template<typename Derived > | |
bool | isMuchSmallerThan (const typename NumTraits< Scalar >::Real &other, const RealScalar &prec) const |
bool | isOnes (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
bool | isZero (const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const |
template<typename OtherDerived > | |
EIGEN_DEPRECATED Derived & | lazyAssign (const DenseBase< OtherDerived > &other) |
template<int NaNPropagation> | |
internal::traits< Derived >::Scalar | maxCoeff () const |
template<int NaNPropagation, typename IndexType > | |
internal::traits< Derived >::Scalar | maxCoeff (IndexType *index) const |
template<int NaNPropagation, typename IndexType > | |
internal::traits< Derived >::Scalar | maxCoeff (IndexType *row, IndexType *col) const |
Scalar | mean () const |
template<int NaNPropagation> | |
internal::traits< Derived >::Scalar | minCoeff () const |
template<int NaNPropagation, typename IndexType > | |
internal::traits< Derived >::Scalar | minCoeff (IndexType *index) const |
template<int NaNPropagation, typename IndexType > | |
internal::traits< Derived >::Scalar | minCoeff (IndexType *row, IndexType *col) const |
const NestByValue< Derived > | nestByValue () const |
EIGEN_CONSTEXPR Index | nonZeros () const |
template<typename OtherDerived > | |
CommaInitializer< Derived > | operator<< (const DenseBase< OtherDerived > &other) |
CommaInitializer< Derived > | operator<< (const Scalar &s) |
Derived & | operator= (const DenseBase &other) |
template<typename OtherDerived > | |
Derived & | operator= (const DenseBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Derived & | operator= (const EigenBase< OtherDerived > &other) |
Copies the generic expression other into *this. | |
EIGEN_CONSTEXPR Index | outerSize () const |
Scalar | prod () const |
template<typename Func > | |
internal::traits< Derived >::Scalar | redux (const Func &func) const |
template<int RowFactor, int ColFactor> | |
const Replicate< Derived, RowFactor, ColFactor > | replicate () const |
const Replicate< Derived, Dynamic, Dynamic > | replicate (Index rowFactor, Index colFactor) const |
void | resize (Index newSize) |
void | resize (Index rows, Index cols) |
ReverseReturnType | reverse () |
ConstReverseReturnType | reverse () const |
void | reverseInPlace () |
RowwiseReturnType | rowwise () |
ConstRowwiseReturnType | rowwise () const |
template<typename ThenDerived , typename ElseDerived > | |
const Select< Derived, ThenDerived, ElseDerived > | select (const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const |
template<typename ThenDerived > | |
const Select< Derived, ThenDerived, typename ThenDerived::ConstantReturnType > | select (const DenseBase< ThenDerived > &thenMatrix, const typename ThenDerived::Scalar &elseScalar) const |
template<typename ElseDerived > | |
const Select< Derived, typename ElseDerived::ConstantReturnType, ElseDerived > | select (const typename ElseDerived::Scalar &thenScalar, const DenseBase< ElseDerived > &elseMatrix) const |
Derived & | setConstant (const Scalar &value) |
Derived & | setLinSpaced (const Scalar &low, const Scalar &high) |
Sets a linearly spaced vector. | |
Derived & | setLinSpaced (Index size, const Scalar &low, const Scalar &high) |
Sets a linearly spaced vector. | |
Derived & | setOnes () |
Derived & | setRandom () |
Derived & | setZero () |
Scalar | sum () const |
template<typename OtherDerived > | |
void | swap (const DenseBase< OtherDerived > &other) |
template<typename OtherDerived > | |
void | swap (PlainObjectBase< OtherDerived > &other) |
TransposeReturnType | transpose () |
ConstTransposeReturnType | transpose () const |
void | transposeInPlace () |
CoeffReturnType | value () const |
template<typename Visitor > | |
void | visit (Visitor &func) const |
![]() | |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | colStride () const EIGEN_NOEXCEPT |
Derived & | derived () |
const Derived & | derived () const |
EIGEN_CONSTEXPR Index | innerStride () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | outerStride () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | rowStride () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
![]() | |
CoeffReturnType | coeff (Index index) const |
CoeffReturnType | coeff (Index row, Index col) const |
Scalar & | coeffRef (Index index) |
Scalar & | coeffRef (Index row, Index col) |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
Derived & | derived () |
const Derived & | derived () const |
Scalar & | operator() (Index index) |
Scalar & | operator() (Index row, Index col) |
Scalar & | operator[] (Index index) |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
Scalar & | w () |
CoeffReturnType | w () const |
Scalar & | x () |
CoeffReturnType | x () const |
Scalar & | y () |
CoeffReturnType | y () const |
Scalar & | z () |
CoeffReturnType | z () const |
![]() | |
CoeffReturnType | coeff (Index index) const |
CoeffReturnType | coeff (Index row, Index col) const |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
Derived & | derived () |
const Derived & | derived () const |
CoeffReturnType | operator() (Index index) const |
CoeffReturnType | operator() (Index row, Index col) const |
CoeffReturnType | operator[] (Index index) const |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
CoeffReturnType | w () const |
CoeffReturnType | x () const |
CoeffReturnType | y () const |
CoeffReturnType | z () const |
![]() | |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
Derived & | derived () |
const Derived & | derived () const |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
Additional Inherited Members | |
![]() | |
enum | { RowsAtCompileTime , ColsAtCompileTime , SizeAtCompileTime , MaxRowsAtCompileTime , MaxColsAtCompileTime , MaxSizeAtCompileTime , IsVectorAtCompileTime , NumDimensions , Flags , IsRowMajor , InnerSizeAtCompileTime , InnerStrideAtCompileTime , OuterStrideAtCompileTime } |
typedef random_access_iterator_type | const_iterator |
typedef random_access_iterator_type | iterator |
typedef Array< typename internal::traits< Derived >::Scalar, internal::traits< Derived >::RowsAtCompileTime, internal::traits< Derived >::ColsAtCompileTime, AutoAlign|(internal::traits< Derived >::Flags &RowMajorBit ? RowMajor :ColMajor), internal::traits< Derived >::MaxRowsAtCompileTime, internal::traits< Derived >::MaxColsAtCompileTime > | PlainArray |
typedef Matrix< typename internal::traits< Derived >::Scalar, internal::traits< Derived >::RowsAtCompileTime, internal::traits< Derived >::ColsAtCompileTime, AutoAlign|(internal::traits< Derived >::Flags &RowMajorBit ? RowMajor :ColMajor), internal::traits< Derived >::MaxRowsAtCompileTime, internal::traits< Derived >::MaxColsAtCompileTime > | PlainMatrix |
typedef internal::conditional< internal::is_same< typenameinternal::traits< Derived >::XprKind, MatrixXpr >::value, PlainMatrix, PlainArray >::type | PlainObject |
The plain matrix or array type corresponding to this expression. | |
typedef internal::traits< Derived >::Scalar | Scalar |
typedef internal::traits< Derived >::StorageIndex | StorageIndex |
The type used to store indices. | |
typedef Scalar | value_type |
![]() | |
typedef Eigen::Index | Index |
The interface type of indices. | |
![]() | |
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 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 RandomAccessLinSpacedReturnType | LinSpaced (const Scalar &low, const Scalar &high) |
Sets a linearly spaced vector. | |
static const RandomAccessLinSpacedReturnType | LinSpaced (Index size, const Scalar &low, const Scalar &high) |
Sets a linearly spaced vector. | |
static EIGEN_DEPRECATED const RandomAccessLinSpacedReturnType | LinSpaced (Sequential_t, const Scalar &low, const Scalar &high) |
static EIGEN_DEPRECATED const RandomAccessLinSpacedReturnType | LinSpaced (Sequential_t, Index size, const Scalar &low, const Scalar &high) |
template<typename CustomNullaryOp > | |
static const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (const CustomNullaryOp &func) |
template<typename CustomNullaryOp > | |
static const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (Index rows, Index cols, const CustomNullaryOp &func) |
template<typename CustomNullaryOp > | |
static const CwiseNullaryOp< CustomNullaryOp, PlainObject > | NullaryExpr (Index size, const CustomNullaryOp &func) |
static const ConstantReturnType | Ones () |
static const ConstantReturnType | Ones (Index rows, Index cols) |
static const ConstantReturnType | Ones (Index size) |
static const RandomReturnType | Random () |
static const RandomReturnType | Random (Index rows, Index cols) |
static const RandomReturnType | Random (Index size) |
static const ConstantReturnType | Zero () |
static const ConstantReturnType | Zero (Index rows, Index cols) |
static const ConstantReturnType | Zero (Index size) |
![]() | |
DenseBase () | |
![]() | |
template<typename Derived > | |
std::ostream & | operator<< (std::ostream &s, const DenseBase< Derived > &m) |
|
inline |
Forwards the resizing request to the nested expression
|
inline |
Forwards the resizing request to the nested expression