Complete orthogonal decomposition (COD) of a matrix. More...
#include <ForwardDeclarations.h>
Public Types | |
enum | { MaxRowsAtCompileTime = MatrixType::MaxRowsAtCompileTime, MaxColsAtCompileTime = MatrixType::MaxColsAtCompileTime } |
typedef SolverBase< CompleteOrthogonalDecomposition > | Base |
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 internal::plain_row_type< MatrixType >::type | RowVectorType |
Public Member Functions | |
template<typename RhsType , typename DstType > | |
void | _solve_impl (const RhsType &rhs, DstType &dst) const |
template<bool Conjugate, typename RhsType , typename DstType > | |
void | _solve_impl_transposed (const RhsType &rhs, DstType &dst) const |
MatrixType::RealScalar | absDeterminant () const |
Index | cols () const |
const PermutationType & | colsPermutation () const |
CompleteOrthogonalDecomposition () | |
Default Constructor. 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... | |
CompleteOrthogonalDecomposition (Index rows, Index cols) | |
Default Constructor with memory preallocation. 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 successful. 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) |
RealScalar | threshold () const |
const HCoeffsType & | zCoeffs () const |
Protected Member Functions | |
template<bool Transpose_, typename Rhs > | |
void | _check_solve_assertion (const Rhs &b) const |
template<typename Rhs > | |
void | applyZAdjointOnTheLeftInPlace (Rhs &rhs) const |
template<bool Conjugate, typename Rhs > | |
void | applyZOnTheLeftInPlace (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 |
Friends | |
template<typename Derived > | |
struct | internal::solve_assertion |
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 276 of file ForwardDeclarations.h.
Definition at line 55 of file CompleteOrthogonalDecomposition.h.
typedef internal::plain_diag_type<MatrixType>::type Eigen::CompleteOrthogonalDecomposition::HCoeffsType |
Definition at line 65 of file CompleteOrthogonalDecomposition.h.
typedef HouseholderSequence< MatrixType, typename internal::remove_all< typename HCoeffsType::ConjugateReturnType>::type> Eigen::CompleteOrthogonalDecomposition::HouseholderSequenceType |
Definition at line 76 of file CompleteOrthogonalDecomposition.h.
typedef internal::plain_row_type<MatrixType, Index>::type Eigen::CompleteOrthogonalDecomposition::IntRowVectorType |
Definition at line 69 of file CompleteOrthogonalDecomposition.h.
typedef _MatrixType Eigen::CompleteOrthogonalDecomposition::MatrixType |
Definition at line 54 of file CompleteOrthogonalDecomposition.h.
Definition at line 80 of file CompleteOrthogonalDecomposition.h.
typedef PermutationMatrix<ColsAtCompileTime, MaxColsAtCompileTime> Eigen::CompleteOrthogonalDecomposition::PermutationType |
Definition at line 67 of file CompleteOrthogonalDecomposition.h.
typedef MatrixType::PlainObject Eigen::CompleteOrthogonalDecomposition::PlainObject |
Definition at line 77 of file CompleteOrthogonalDecomposition.h.
typedef internal::plain_row_type<MatrixType, RealScalar>::type Eigen::CompleteOrthogonalDecomposition::RealRowVectorType |
Definition at line 72 of file CompleteOrthogonalDecomposition.h.
typedef internal::plain_row_type<MatrixType>::type Eigen::CompleteOrthogonalDecomposition::RowVectorType |
Definition at line 70 of file CompleteOrthogonalDecomposition.h.
anonymous enum |
Enumerator | |
---|---|
MaxRowsAtCompileTime | |
MaxColsAtCompileTime |
Definition at line 61 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 90 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 98 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 118 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 133 of file CompleteOrthogonalDecomposition.h.
|
inlineprotected |
Definition at line 385 of file CompleteOrthogonalDecomposition.h.
void Eigen::CompleteOrthogonalDecomposition::_solve_impl | ( | const RhsType & | rhs, |
DstType & | dst | ||
) | const |
Definition at line 534 of file CompleteOrthogonalDecomposition.h.
void Eigen::CompleteOrthogonalDecomposition::_solve_impl_transposed | ( | const RhsType & | rhs, |
DstType & | dst | ||
) | const |
Definition at line 566 of file CompleteOrthogonalDecomposition.h.
MatrixType::RealScalar Eigen::CompleteOrthogonalDecomposition::absDeterminant | ( | ) | const |
Definition at line 412 of file CompleteOrthogonalDecomposition.h.
|
protected |
Overwrites rhs with .
Definition at line 511 of file CompleteOrthogonalDecomposition.h.
|
protected |
Overwrites rhs with or if Conjugate
is set to true
.
Definition at line 489 of file CompleteOrthogonalDecomposition.h.
|
inlinestaticprotected |
Definition at line 380 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 285 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 194 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 186 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 430 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 244 of file CompleteOrthogonalDecomposition.h.
|
inline |
Q
.For advanced uses only.
Definition at line 292 of file CompleteOrthogonalDecomposition.h.
CompleteOrthogonalDecomposition< MatrixType >::HouseholderSequenceType Eigen::CompleteOrthogonalDecomposition::householderQ | ( | void | ) | const |
Definition at line 619 of file CompleteOrthogonalDecomposition.h.
|
inline |
Reports whether the complete orthogonal decomposition was successful.
Success
. It is provided for compatibility with other factorization routines. Success
Definition at line 366 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 253 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 271 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 262 of file CompleteOrthogonalDecomposition.h.
MatrixType::RealScalar Eigen::CompleteOrthogonalDecomposition::logAbsDeterminant | ( | ) | const |
Definition at line 418 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 157 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 170 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 183 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 161 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 356 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 351 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 278 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 235 of file CompleteOrthogonalDecomposition.h.
|
inline |
Definition at line 284 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 320 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 333 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 342 of file CompleteOrthogonalDecomposition.h.
|
inline |
Z
.For advanced uses only.
Definition at line 299 of file CompleteOrthogonalDecomposition.h.
|
friend |
Definition at line 58 of file CompleteOrthogonalDecomposition.h.
|
protected |
Definition at line 405 of file CompleteOrthogonalDecomposition.h.
|
protected |
Definition at line 407 of file CompleteOrthogonalDecomposition.h.
|
protected |
Definition at line 406 of file CompleteOrthogonalDecomposition.h.