Please, help us to better know about our user community by answering the following short survey: https://forms.gle/wpyrxWi18ox9Z5ae9
Eigen  3.3.9
Eigen::Homogeneous< MatrixType, _Direction > Class Template Reference

Detailed Description

template<typename MatrixType, int _Direction>
class Eigen::Homogeneous< MatrixType, _Direction >

Expression of one (or a set of) homogeneous vector(s)

This is defined in the Geometry module.

#include <Eigen/Geometry>
Parameters
MatrixTypethe type of the object in which we are making homogeneous

This class represents an expression of one (or a set of) homogeneous vector(s). It is the return type of MatrixBase::homogeneous() and most of the time this is the only way it is used.

See also
MatrixBase::homogeneous()
+ Inheritance diagram for Eigen::Homogeneous< MatrixType, _Direction >:

Additional Inherited Members

- Public Types inherited from Eigen::DenseBase< Homogeneous< MatrixType, _Direction > >
typedef Array< typename internal::traits< Homogeneous< MatrixType, _Direction > >::Scalar, internal::traits< Homogeneous< MatrixType, _Direction > >::RowsAtCompileTime, internal::traits< Homogeneous< MatrixType, _Direction > >::ColsAtCompileTime, AutoAlign|(internal::traits< Homogeneous< MatrixType, _Direction > >::Flags &RowMajorBit ? RowMajor :ColMajor), internal::traits< Homogeneous< MatrixType, _Direction > >::MaxRowsAtCompileTime, internal::traits< Homogeneous< MatrixType, _Direction > >::MaxColsAtCompileTimePlainArray
 
typedef Matrix< typename internal::traits< Homogeneous< MatrixType, _Direction > >::Scalar, internal::traits< Homogeneous< MatrixType, _Direction > >::RowsAtCompileTime, internal::traits< Homogeneous< MatrixType, _Direction > >::ColsAtCompileTime, AutoAlign|(internal::traits< Homogeneous< MatrixType, _Direction > >::Flags &RowMajorBit ? RowMajor :ColMajor), internal::traits< Homogeneous< MatrixType, _Direction > >::MaxRowsAtCompileTime, internal::traits< Homogeneous< MatrixType, _Direction > >::MaxColsAtCompileTimePlainMatrix
 
typedef internal::conditional< internal::is_same< typename internal::traits< Homogeneous< MatrixType, _Direction > >::XprKind, MatrixXpr >::value, PlainMatrix, PlainArray >::type PlainObject
 The plain matrix or array type corresponding to this expression. More...
 
typedef internal::traits< Homogeneous< MatrixType, _Direction > >::Scalar Scalar
 
typedef internal::traits< Homogeneous< MatrixType, _Direction > >::StorageIndex StorageIndex
 The type used to store indices. More...
 
typedef Scalar value_type
 
- Public Member Functions inherited from Eigen::MatrixBase< Homogeneous< MatrixType, _Direction > >
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< Homogeneous< MatrixType, _Direction > > array ()
 
const ArrayWrapper< const Homogeneous< MatrixType, _Direction > > array () const
 
const DiagonalWrapper< const Homogeneous< MatrixType, _Direction > > asDiagonal () const
 
BDCSVD< PlainObjectbdcSvd (unsigned int computationOptions=0) const
 
RealScalar blueNorm () const
 
const ColPivHouseholderQR< PlainObjectcolPivHouseholderQr () const
 
const CompleteOrthogonalDecomposition< PlainObjectcompleteOrthogonalDecomposition () 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< Homogeneous< MatrixType, _Direction > > cos () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise cosine use ArrayBase::cos . More...
 
const MatrixFunctionReturnValue< Homogeneous< MatrixType, _Direction > > cosh () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise hyperbolic cosine use ArrayBase::cosh . More...
 
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< typename internal::traits< Homogeneous< MatrixType, _Direction > >::Scalar, typename internal::traits< OtherDerived >::Scalar >::ReturnType dot (const MatrixBase< OtherDerived > &other) const
 
EigenvaluesReturnType eigenvalues () const
 Computes the eigenvalues of a matrix. More...
 
Matrix< Scalar, 3, 1 > eulerAngles (Index a0, Index a1, Index a2) const
 
const MatrixExponentialReturnValue< Homogeneous< MatrixType, _Direction > > exp () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise exponential use ArrayBase::exp . More...
 
Homogeneous< MatrixType, _Direction > & forceAlignedAccess ()
 
const Homogeneous< MatrixType, _Direction > & forceAlignedAccess () const
 
internal::conditional< Enable, ForceAlignedAccess< Homogeneous< MatrixType, _Direction > >, Homogeneous< MatrixType, _Direction > & >::type forceAlignedAccessIf ()
 
internal::add_const_on_value_type< typename internal::conditional< Enable, ForceAlignedAccess< Homogeneous< MatrixType, _Direction > >, Homogeneous< MatrixType, _Direction > & >::type >::type forceAlignedAccessIf () const
 
const FullPivHouseholderQR< PlainObjectfullPivHouseholderQr () const
 
const FullPivLU< PlainObjectfullPivLu () const
 
const HNormalizedReturnType hnormalized () const
 homogeneous normalization More...
 
HomogeneousReturnType homogeneous () const
 
const HouseholderQR< PlainObjecthouseholderQr () const
 
RealScalar hypotNorm () const
 
const Inverse< Homogeneous< MatrixType, _Direction > > 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< PlainObjectjacobiSvd (unsigned int computationOptions=0) const
 
const Product< Homogeneous< MatrixType, _Direction >, OtherDerived, LazyProduct > lazyProduct (const MatrixBase< OtherDerived > &other) const
 
const LDLT< PlainObjectldlt () const
 
const LLT< PlainObjectllt () const
 
const MatrixLogarithmReturnValue< Homogeneous< MatrixType, _Direction > > log () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise logarithm use ArrayBase::log . More...
 
RealScalar lpNorm () const
 
const PartialPivLU< PlainObjectlu () const
 
void makeHouseholder (EssentialPart &essential, Scalar &tau, RealScalar &beta) const
 
void makeHouseholderInPlace (Scalar &tau, RealScalar &beta)
 
const MatrixFunctionReturnValue< Homogeneous< MatrixType, _Direction > > matrixFunction (StemFunction f) const
 Helper function for the unsupported MatrixFunctions module.
 
NoAlias< Homogeneous< MatrixType, _Direction >, Eigen::MatrixBasenoalias ()
 
RealScalar norm () const
 
void normalize ()
 
const PlainObject normalized () const
 
bool operator!= (const MatrixBase< OtherDerived > &other) const
 
const Product< Homogeneous< MatrixType, _Direction >, DiagonalDerived, LazyProduct > operator* (const DiagonalBase< DiagonalDerived > &diagonal) const
 
const Product< Homogeneous< MatrixType, _Direction >, OtherDerived > operator* (const MatrixBase< OtherDerived > &other) const
 
Homogeneous< MatrixType, _Direction > & operator*= (const EigenBase< OtherDerived > &other)
 
Homogeneous< MatrixType, _Direction > & operator+= (const MatrixBase< OtherDerived > &other)
 
Homogeneous< MatrixType, _Direction > & operator-= (const MatrixBase< OtherDerived > &other)
 
Homogeneous< MatrixType, _Direction > & operator= (const MatrixBase &other)
 
bool operator== (const MatrixBase< OtherDerived > &other) const
 
RealScalar operatorNorm () const
 Computes the L2 operator norm. More...
 
const PartialPivLU< PlainObjectpartialPivLu () const
 
const MatrixPowerReturnValue< Homogeneous< MatrixType, _Direction > > 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< Homogeneous< MatrixType, _Direction > > 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...
 
MatrixBase< Homogeneous< MatrixType, _Direction > >::template SelfAdjointViewReturnType< UpLo >::Type selfadjointView ()
 
MatrixBase< Homogeneous< MatrixType, _Direction > >::template ConstSelfAdjointViewReturnType< UpLo >::Type selfadjointView () const
 
Homogeneous< MatrixType, _Direction > & setIdentity ()
 
Homogeneous< MatrixType, _Direction > & setIdentity (Index rows, Index cols)
 Resizes to the given size, and writes the identity expression (not necessarily square) into *this. More...
 
const MatrixFunctionReturnValue< Homogeneous< MatrixType, _Direction > > sin () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise sine use ArrayBase::sin . More...
 
const MatrixFunctionReturnValue< Homogeneous< MatrixType, _Direction > > sinh () const
 This function requires the unsupported MatrixFunctions module. To compute the coefficient-wise hyperbolic sine use ArrayBase::sinh . More...
 
const SparseView< Homogeneous< MatrixType, _Direction > > sparseView (const Scalar &m_reference=Scalar(0), const typename NumTraits< Scalar >::Real &m_epsilon=NumTraits< Scalar >::dummy_precision()) const
 
const MatrixSquareRootReturnValue< Homogeneous< MatrixType, _Direction > > 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
 
MatrixBase< Homogeneous< MatrixType, _Direction > >::template TriangularViewReturnType< Mode >::Type triangularView ()
 
MatrixBase< Homogeneous< MatrixType, _Direction > >::template ConstTriangularViewReturnType< Mode >::Type triangularView () const
 
PlainObject unitOrthogonal (void) const
 
- Public Member Functions inherited from Eigen::DenseBase< Homogeneous< MatrixType, _Direction > >
bool all () const
 
bool allFinite () const
 
bool any () const
 
ColwiseReturnType colwise ()
 
ConstColwiseReturnType colwise () const
 
Index count () const
 
EvalReturnType eval () const
 
void fill (const Scalar &value)
 
EIGEN_DEPRECATED const Homogeneous< MatrixType, _Direction > & flagged () const
 
const WithFormat< Homogeneous< MatrixType, _Direction > > format (const IOFormat &fmt) const
 
bool hasNaN () const
 
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 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
 
internal::traits< Homogeneous< MatrixType, _Direction > >::Scalar maxCoeff () const
 
internal::traits< Homogeneous< MatrixType, _Direction > >::Scalar maxCoeff (IndexType *index) const
 
internal::traits< Homogeneous< MatrixType, _Direction > >::Scalar maxCoeff (IndexType *row, IndexType *col) const
 
Scalar mean () const
 
internal::traits< Homogeneous< MatrixType, _Direction > >::Scalar minCoeff () const
 
internal::traits< Homogeneous< MatrixType, _Direction > >::Scalar minCoeff (IndexType *index) const
 
internal::traits< Homogeneous< MatrixType, _Direction > >::Scalar minCoeff (IndexType *row, IndexType *col) const
 
const NestByValue< Homogeneous< MatrixType, _Direction > > nestByValue () const
 
Index nonZeros () const
 
const CwiseNullaryOp< CustomNullaryOp, typename DenseBase< Homogeneous< MatrixType, _Direction > >::PlainObjectNullaryExpr (const CustomNullaryOp &func)
 
const CwiseNullaryOp< CustomNullaryOp, typename DenseBase< Homogeneous< MatrixType, _Direction > >::PlainObjectNullaryExpr (Index rows, Index cols, const CustomNullaryOp &func)
 
const CwiseNullaryOp< CustomNullaryOp, typename DenseBase< Homogeneous< MatrixType, _Direction > >::PlainObjectNullaryExpr (Index size, const CustomNullaryOp &func)
 
CommaInitializer< Homogeneous< MatrixType, _Direction > > operator<< (const DenseBase< OtherDerived > &other)
 
CommaInitializer< Homogeneous< MatrixType, _Direction > > operator<< (const Scalar &s)
 
Homogeneous< MatrixType, _Direction > & operator= (const DenseBase &other)
 
Homogeneous< MatrixType, _Direction > & operator= (const DenseBase< OtherDerived > &other)
 
Homogeneous< MatrixType, _Direction > & operator= (const EigenBase< OtherDerived > &other)
 Copies the generic expression other into *this. More...
 
Index outerSize () const
 
Scalar prod () const
 
internal::traits< Homogeneous< MatrixType, _Direction > >::Scalar redux (const Func &func) const
 
const Replicate< Homogeneous< MatrixType, _Direction >, RowFactor, ColFactor > replicate () const
 
const Replicate< Homogeneous< MatrixType, _Direction >, 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
 
const Select< Homogeneous< MatrixType, _Direction >, ThenDerived, ElseDerived > select (const DenseBase< ThenDerived > &thenMatrix, const DenseBase< ElseDerived > &elseMatrix) const
 
const Select< Homogeneous< MatrixType, _Direction >, ThenDerived, typename ThenDerived::ConstantReturnType > select (const DenseBase< ThenDerived > &thenMatrix, const typename ThenDerived::Scalar &elseScalar) const
 
const Select< Homogeneous< MatrixType, _Direction >, typename ElseDerived::ConstantReturnType, ElseDerived > select (const typename ElseDerived::Scalar &thenScalar, const DenseBase< ElseDerived > &elseMatrix) const
 
Homogeneous< MatrixType, _Direction > & setConstant (const Scalar &value)
 
Homogeneous< MatrixType, _Direction > & setLinSpaced (const Scalar &low, const Scalar &high)
 Sets a linearly spaced vector. More...
 
Homogeneous< MatrixType, _Direction > & setLinSpaced (Index size, const Scalar &low, const Scalar &high)
 Sets a linearly spaced vector. More...
 
Homogeneous< MatrixType, _Direction > & setOnes ()
 
Homogeneous< MatrixType, _Direction > & setRandom ()
 
Homogeneous< MatrixType, _Direction > & setZero ()
 
Scalar sum () const
 
void swap (const DenseBase< OtherDerived > &other)
 
void swap (PlainObjectBase< OtherDerived > &other)
 
TransposeReturnType transpose ()
 
ConstTransposeReturnType transpose () const
 
void transposeInPlace ()
 
CoeffReturnType value () const
 
void visit (Visitor &func) const
 
- Static Public Member Functions inherited from Eigen::MatrixBase< Homogeneous< MatrixType, _Direction > >
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< Homogeneous< MatrixType, _Direction > >
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)
 
static const RandomAccessLinSpacedReturnType LinSpaced (Index size, const Scalar &low, const Scalar &high)
 Sets a linearly spaced vector. More...
 
static const SequentialLinSpacedReturnType LinSpaced (Sequential_t, const Scalar &low, const Scalar &high)
 
static const SequentialLinSpacedReturnType LinSpaced (Sequential_t, Index size, const Scalar &low, const Scalar &high)
 
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::DenseBase< Homogeneous< MatrixType, _Direction > >
 DenseBase ()
 

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