Complete orthogonal decomposition (COD) of a matrix. More...
#include <ForwardDeclarations.h>
Public Types | |
enum | { RowsAtCompileTime = MatrixType::RowsAtCompileTime, ColsAtCompileTime = MatrixType::ColsAtCompileTime, MaxRowsAtCompileTime = MatrixType::MaxRowsAtCompileTime, MaxColsAtCompileTime = MatrixType::MaxColsAtCompileTime } |
typedef internal::plain_diag_type< MatrixType >::type | HCoeffsType |
typedef HouseholderSequence< MatrixType, typename internal::remove_all< typename HCoeffsType::ConjugateReturnType >::type > | HouseholderSequenceType |
typedef internal::plain_row_type< MatrixType, Index >::type | IntRowVectorType |
typedef _MatrixType | MatrixType |
typedef PermutationMatrix< ColsAtCompileTime, MaxColsAtCompileTime > | PermutationType |
typedef MatrixType::PlainObject | PlainObject |
typedef internal::plain_row_type< MatrixType, RealScalar >::type | RealRowVectorType |
typedef MatrixType::RealScalar | RealScalar |
typedef internal::plain_row_type< MatrixType >::type | RowVectorType |
typedef MatrixType::Scalar | Scalar |
typedef MatrixType::StorageIndex | StorageIndex |
Public Member Functions | |
template<typename RhsType , typename DstType > | |
EIGEN_DEVICE_FUNC void | _solve_impl (const RhsType &rhs, DstType &dst) const |
template<typename RhsType , typename DstType > | |
void | _solve_impl (const RhsType &rhs, DstType &dst) const |
MatrixType::RealScalar | absDeterminant () const |
Index | cols () const |
const PermutationType & | colsPermutation () const |
CompleteOrthogonalDecomposition () | |
Default Constructor. More... | |
CompleteOrthogonalDecomposition (Index rows, Index cols) | |
Default Constructor with memory preallocation. More... | |
template<typename InputType > | |
CompleteOrthogonalDecomposition (const EigenBase< InputType > &matrix) | |
Constructs a complete orthogonal decomposition from a given matrix. More... | |
template<typename InputType > | |
CompleteOrthogonalDecomposition (EigenBase< InputType > &matrix) | |
Constructs a complete orthogonal decomposition from a given matrix. More... | |
template<typename InputType > | |
CompleteOrthogonalDecomposition & | compute (const EigenBase< InputType > &matrix) |
Index | dimensionOfKernel () const |
const HCoeffsType & | hCoeffs () const |
HouseholderSequenceType | householderQ (void) const |
ComputationInfo | info () const |
Reports whether the complete orthogonal decomposition was succesful. More... | |
bool | isInjective () const |
bool | isInvertible () const |
bool | isSurjective () const |
MatrixType::RealScalar | logAbsDeterminant () const |
HouseholderSequenceType | matrixQ (void) const |
const MatrixType & | matrixQTZ () const |
const MatrixType & | matrixT () const |
MatrixType | matrixZ () const |
RealScalar | maxPivot () const |
Index | nonzeroPivots () const |
const Inverse< CompleteOrthogonalDecomposition > | pseudoInverse () const |
Index | rank () const |
Index | rows () const |
CompleteOrthogonalDecomposition & | setThreshold (const RealScalar &threshold) |
CompleteOrthogonalDecomposition & | setThreshold (Default_t) |
template<typename Rhs > | |
const Solve< CompleteOrthogonalDecomposition, Rhs > | solve (const MatrixBase< Rhs > &b) const |
RealScalar | threshold () const |
const HCoeffsType & | zCoeffs () const |
Protected Member Functions | |
template<typename Rhs > | |
void | applyZAdjointOnTheLeftInPlace (Rhs &rhs) const |
void | computeInPlace () |
Static Protected Member Functions | |
static void | check_template_parameters () |
Protected Attributes | |
ColPivHouseholderQR< MatrixType > | m_cpqr |
RowVectorType | m_temp |
HCoeffsType | m_zCoeffs |
Private Types | |
typedef PermutationType::Index | PermIndexType |
Complete orthogonal decomposition (COD) of a matrix.
MatrixType | the type of the matrix of which we are computing the COD. |
This class performs a rank-revealing complete orthogonal decomposition of a matrix A into matrices P, Q, T, and Z such that
by using Householder transformations. Here, P is a permutation matrix, Q and Z are unitary matrices and T an upper triangular matrix of size rank-by-rank. A may be rank deficient.
This class supports the inplace decomposition mechanism.
Definition at line 257 of file ForwardDeclarations.h.
typedef internal::plain_diag_type<MatrixType>::type Eigen::CompleteOrthogonalDecomposition< _MatrixType >::HCoeffsType |
Definition at line 60 of file CompleteOrthogonalDecomposition.h.
typedef HouseholderSequence< MatrixType, typename internal::remove_all< typename HCoeffsType::ConjugateReturnType>::type> Eigen::CompleteOrthogonalDecomposition< _MatrixType >::HouseholderSequenceType |
Definition at line 71 of file CompleteOrthogonalDecomposition.h.
typedef internal::plain_row_type<MatrixType, Index>::type Eigen::CompleteOrthogonalDecomposition< _MatrixType >::IntRowVectorType |
Definition at line 64 of file CompleteOrthogonalDecomposition.h.
typedef _MatrixType Eigen::CompleteOrthogonalDecomposition< _MatrixType >::MatrixType |
Definition at line 50 of file CompleteOrthogonalDecomposition.h.
|
private |
Definition at line 75 of file CompleteOrthogonalDecomposition.h.
typedef PermutationMatrix<ColsAtCompileTime, MaxColsAtCompileTime> Eigen::CompleteOrthogonalDecomposition< _MatrixType >::PermutationType |
Definition at line 62 of file CompleteOrthogonalDecomposition.h.
typedef MatrixType::PlainObject Eigen::CompleteOrthogonalDecomposition< _MatrixType >::PlainObject |
Definition at line 72 of file CompleteOrthogonalDecomposition.h.
typedef internal::plain_row_type<MatrixType, RealScalar>::type Eigen::CompleteOrthogonalDecomposition< _MatrixType >::RealRowVectorType |
Definition at line 67 of file CompleteOrthogonalDecomposition.h.
typedef MatrixType::RealScalar Eigen::CompleteOrthogonalDecomposition< _MatrixType >::RealScalar |
Definition at line 58 of file CompleteOrthogonalDecomposition.h.
typedef internal::plain_row_type<MatrixType>::type Eigen::CompleteOrthogonalDecomposition< _MatrixType >::RowVectorType |
Definition at line 65 of file CompleteOrthogonalDecomposition.h.
typedef MatrixType::Scalar Eigen::CompleteOrthogonalDecomposition< _MatrixType >::Scalar |
Definition at line 57 of file CompleteOrthogonalDecomposition.h.
typedef MatrixType::StorageIndex Eigen::CompleteOrthogonalDecomposition< _MatrixType >::StorageIndex |
Definition at line 59 of file CompleteOrthogonalDecomposition.h.
anonymous enum |
Enumerator | |
---|---|
RowsAtCompileTime | |
ColsAtCompileTime | |
MaxRowsAtCompileTime | |
MaxColsAtCompileTime |
Definition at line 51 of file CompleteOrthogonalDecomposition.h.
|
inline |
Default Constructor.
The default constructor is useful in cases in which the user intends to perform decompositions via CompleteOrthogonalDecomposition::compute(const* MatrixType&)
.
Definition at line 85 of file CompleteOrthogonalDecomposition.h.
|
inline |
Default Constructor with memory preallocation.
Like the default constructor but with preallocation of the internal data according to the specified problem size.
Definition at line 93 of file CompleteOrthogonalDecomposition.h.
|
inlineexplicit |
Constructs a complete orthogonal decomposition from a given matrix.
This constructor computes the complete orthogonal decomposition of the matrix matrix by calling the method compute(). The default threshold for rank determination will be used. It is a short cut for:
Definition at line 113 of file CompleteOrthogonalDecomposition.h.
|
inlineexplicit |
Constructs a complete orthogonal decomposition from a given matrix.
This overloaded constructor is provided for inplace decomposition when MatrixType
is a Eigen::Ref.
Definition at line 128 of file CompleteOrthogonalDecomposition.h.
EIGEN_DEVICE_FUNC void Eigen::CompleteOrthogonalDecomposition< _MatrixType >::_solve_impl | ( | const RhsType & | rhs, |
DstType & | dst | ||
) | const |
void Eigen::CompleteOrthogonalDecomposition< _MatrixType >::_solve_impl | ( | const RhsType & | rhs, |
DstType & | dst | ||
) | const |
Definition at line 492 of file CompleteOrthogonalDecomposition.h.
MatrixType::RealScalar Eigen::CompleteOrthogonalDecomposition< MatrixType >::absDeterminant | ( | ) | const |
Definition at line 392 of file CompleteOrthogonalDecomposition.h.
|
protected |
Overwrites rhs with .
Definition at line 469 of file CompleteOrthogonalDecomposition.h.
|
inlinestaticprotected |
Definition at line 374 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 282 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 192 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 184 of file CompleteOrthogonalDecomposition.h.
|
protected |
Performs the complete orthogonal decomposition of the given matrix matrix. The result of the factorization is stored into *this
, and a reference to *this
is returned.
Definition at line 410 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 242 of file CompleteOrthogonalDecomposition.h.
|
inline |
Q
.For advanced uses only.
Definition at line 289 of file CompleteOrthogonalDecomposition.h.
CompleteOrthogonalDecomposition< MatrixType >::HouseholderSequenceType Eigen::CompleteOrthogonalDecomposition< MatrixType >::householderQ | ( | void | ) | const |
Definition at line 546 of file CompleteOrthogonalDecomposition.h.
|
inline |
Reports whether the complete orthogonal decomposition was succesful.
Success
. It is provided for compatibility with other factorization routines. Success
Definition at line 363 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 251 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 269 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 260 of file CompleteOrthogonalDecomposition.h.
MatrixType::RealScalar Eigen::CompleteOrthogonalDecomposition< MatrixType >::logAbsDeterminant | ( | ) | const |
Definition at line 398 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 155 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 168 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 181 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 159 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 353 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 348 of file CompleteOrthogonalDecomposition.h.
|
inline |
this->pseudoInverse()*rhs
to solve a linear systems. It is more efficient and numerically stable to call this->solve(rhs)
. Definition at line 276 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 233 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 281 of file CompleteOrthogonalDecomposition.h.
|
inline |
Allows to prescribe a threshold to be used by certain methods, such as rank(), who need to determine when pivots are to be considered nonzero. Most be called before calling compute().
When it needs to get the threshold value, Eigen calls threshold(). By default, this uses a formula to automatically determine a reasonable threshold. Once you have called the present method setThreshold(const RealScalar&), your value is used instead.
threshold | The new value to use as the threshold. |
A pivot will be considered nonzero if its absolute value is strictly greater than where maxpivot is the biggest pivot.
If you want to come back to the default behavior, call setThreshold(Default_t)
Definition at line 317 of file CompleteOrthogonalDecomposition.h.
|
inline |
Allows to come back to the default behavior, letting Eigen use its default formula for determining the threshold.
You should pass the special object Eigen::Default as parameter here.
See the documentation of setThreshold(const RealScalar&).
Definition at line 330 of file CompleteOrthogonalDecomposition.h.
|
inline |
This method computes the minimum-norm solution X to a least squares problem
where A is the matrix of which *this
is the complete orthogonal decomposition.
b | the right-hand sides of the problem to solve. |
Definition at line 147 of file CompleteOrthogonalDecomposition.h.
|
inline |
Returns the threshold that will be used by certain methods such as rank().
See the documentation of setThreshold(const RealScalar&).
Definition at line 339 of file CompleteOrthogonalDecomposition.h.
|
inline |
Z
.For advanced uses only.
Definition at line 296 of file CompleteOrthogonalDecomposition.h.
|
protected |
Definition at line 385 of file CompleteOrthogonalDecomposition.h.
|
protected |
Definition at line 387 of file CompleteOrthogonalDecomposition.h.
|
protected |
Definition at line 386 of file CompleteOrthogonalDecomposition.h.