![]() |
Prusa Slicer 2.6.0
|
Sequence of Householder reflections acting on subspaces with decreasing size. More...
#include <src/eigen/Eigen/src/Householder/HouseholderSequence.h>
Inheritance diagram for Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >:
Collaboration diagram for Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >:Public Types | |
| enum | { RowsAtCompileTime = internal::traits<HouseholderSequence>::RowsAtCompileTime , ColsAtCompileTime = internal::traits<HouseholderSequence>::ColsAtCompileTime , MaxRowsAtCompileTime = internal::traits<HouseholderSequence>::MaxRowsAtCompileTime , MaxColsAtCompileTime = internal::traits<HouseholderSequence>::MaxColsAtCompileTime } |
| typedef internal::traits< HouseholderSequence >::Scalar | Scalar |
| typedef HouseholderSequence< typename internal::conditional< NumTraits< Scalar >::IsComplex, typename internal::remove_all< typename VectorsType::ConjugateReturnType >::type, VectorsType >::type, typename internal::conditional< NumTraits< Scalar >::IsComplex, typename internal::remove_all< typename CoeffsType::ConjugateReturnType >::type, CoeffsType >::type, Side > | ConjugateReturnType |
| typedef Eigen::Index | Index |
| The interface type of indices. | |
| typedef internal::traits< HouseholderSequence< VectorsType, CoeffsType, Side > >::StorageKind | StorageKind |
Public Member Functions | |
| HouseholderSequence (const VectorsType &v, const CoeffsType &h) | |
| Constructor. | |
| HouseholderSequence (const HouseholderSequence &other) | |
| Copy constructor. | |
| Index | rows () const |
| Number of rows of transformation viewed as a matrix. | |
| Index | cols () const |
| Number of columns of transformation viewed as a matrix. | |
| const EssentialVectorType | essentialVector (Index k) const |
| Essential part of a Householder vector. | |
| HouseholderSequence | transpose () const |
| Transpose of the Householder sequence. | |
| ConjugateReturnType | conjugate () const |
| Complex conjugate of the Householder sequence. | |
| ConjugateReturnType | adjoint () const |
| Adjoint (conjugate transpose) of the Householder sequence. | |
| ConjugateReturnType | inverse () const |
| Inverse of the Householder sequence (equals the adjoint). | |
| template<typename DestType > | |
| void | evalTo (DestType &dst) const |
| template<typename Dest , typename Workspace > | |
| void | evalTo (Dest &dst, Workspace &workspace) const |
| template<typename Dest > | |
| void | applyThisOnTheRight (Dest &dst) const |
| template<typename Dest , typename Workspace > | |
| void | applyThisOnTheRight (Dest &dst, Workspace &workspace) const |
| template<typename Dest > | |
| void | applyThisOnTheLeft (Dest &dst) const |
| template<typename Dest , typename Workspace > | |
| void | applyThisOnTheLeft (Dest &dst, Workspace &workspace) const |
| template<typename OtherDerived > | |
| internal::matrix_type_times_scalar_type< Scalar, OtherDerived >::Type | operator* (const MatrixBase< OtherDerived > &other) const |
| Computes the product of a Householder sequence with a matrix. | |
| HouseholderSequence & | setLength (Index length) |
| Sets the length of the Householder sequence. | |
| HouseholderSequence & | setShift (Index shift) |
| Sets the shift of the Householder sequence. | |
| Index | length () const |
| Returns the length of the Householder sequence. | |
| Index | shift () const |
| Returns the shift of the Householder sequence. | |
| EIGEN_DEVICE_FUNC HouseholderSequence< VectorsType, CoeffsType, Side > & | derived () |
| EIGEN_DEVICE_FUNC const HouseholderSequence< VectorsType, CoeffsType, Side > & | derived () const |
| EIGEN_DEVICE_FUNC HouseholderSequence< VectorsType, CoeffsType, Side > & | const_cast_derived () const |
| EIGEN_DEVICE_FUNC const HouseholderSequence< VectorsType, CoeffsType, Side > & | const_derived () const |
| EIGEN_DEVICE_FUNC Index | size () const |
| EIGEN_DEVICE_FUNC void | evalTo (Dest &dst) const |
| EIGEN_DEVICE_FUNC void | addTo (Dest &dst) const |
| EIGEN_DEVICE_FUNC void | subTo (Dest &dst) const |
Protected Member Functions | |
| HouseholderSequence & | setTrans (bool trans) |
| Sets the transpose flag. | |
| bool | trans () const |
| Returns the transpose flag. | |
Protected Attributes | |
| VectorsType::Nested | m_vectors |
| CoeffsType::Nested | m_coeffs |
| bool | m_trans |
| Index | m_length |
| Index | m_shift |
Private Types | |
| typedef internal::hseq_side_dependent_impl< VectorsType, CoeffsType, Side >::EssentialVectorType | EssentialVectorType |
Friends | |
| template<typename _VectorsType , typename _CoeffsType , int _Side> | |
| struct | internal::hseq_side_dependent_impl |
| template<typename VectorsType2 , typename CoeffsType2 , int Side2> | |
| class | HouseholderSequence |
Sequence of Householder reflections acting on subspaces with decreasing size.
\householder_module
| VectorsType | type of matrix containing the Householder vectors |
| CoeffsType | type of vector containing the Householder coefficients |
| Side | either OnTheLeft (the default) or OnTheRight |
This class represents a product sequence of Householder reflections where the first Householder reflection acts on the whole space, the second Householder reflection leaves the one-dimensional subspace spanned by the first unit vector invariant, the third Householder reflection leaves the two-dimensional subspace spanned by the first two unit vectors invariant, and so on up to the last reflection which leaves all but one dimensions invariant and acts only on the last dimension. Such sequences of Householder reflections are used in several algorithms to zero out certain parts of a matrix. Indeed, the methods HessenbergDecomposition::matrixQ(), Tridiagonalization::matrixQ(), HouseholderQR::householderQ(), and ColPivHouseholderQR::householderQ() all return a HouseholderSequence.
More precisely, the class HouseholderSequence represents an
The last
Typical usages are listed below, where H is a HouseholderSequence:
In addition to the adjoint, you can also apply the inverse (=adjoint), the transpose, and the conjugate operators.
See the documentation for HouseholderSequence(const VectorsType&, const CoeffsType&) for an example.
| typedef HouseholderSequence< typename internal::conditional<NumTraits<Scalar>::IsComplex, typename internal::remove_all<typename VectorsType::ConjugateReturnType>::type, VectorsType>::type, typename internal::conditional<NumTraits<Scalar>::IsComplex, typename internal::remove_all<typename CoeffsType::ConjugateReturnType>::type, CoeffsType>::type, Side > Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::ConjugateReturnType |
|
private |
|
inherited |
The interface type of indices.
To change this, #define the preprocessor symbol EIGEN_DEFAULT_DENSE_INDEX_TYPE.
| typedef internal::traits<HouseholderSequence>::Scalar Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::Scalar |
|
inherited |
| anonymous enum |
| Enumerator | |
|---|---|
| RowsAtCompileTime | |
| ColsAtCompileTime | |
| MaxRowsAtCompileTime | |
| MaxColsAtCompileTime | |
|
inline |
Constructor.
| [in] | v | Matrix containing the essential parts of the Householder vectors |
| [in] | h | Vector containing the Householder coefficients |
Constructs the Householder sequence with coefficients given by h and vectors given by v. The i-th Householder coefficient h(i) and the essential part of the i-th Householder vector v(k,i) with k > i (the subdiagonal part of the i-th column). If v has fewer columns than rows, then the Householder sequence contains as many Householder reflections as there are columns.
v and h by reference.Example:
Output:
|
inline |
|
inlineinherited |
|
inline |
Adjoint (conjugate transpose) of the Householder sequence.
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::conjugate(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_trans, and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::setTrans().
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::inverse().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheLeft().
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheLeft(), and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::operator*().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Eigen::Dynamic, Eigen::end(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::essentialVector(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_coeffs, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_length, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_shift, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_trans, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_vectors, Eigen::OnTheRight, and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::rows().
Here is the call graph for this function:
|
inline |
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheRight().
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheRight(), and Eigen::operator*().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::essentialVector(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_coeffs, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_length, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_shift, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_trans, and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::rows().
Here is the call graph for this function:
|
inline |
Number of columns of transformation viewed as a matrix.
This equals the dimension of the space that the transformation acts on.
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::rows().
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::evalTo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Complex conjugate of the Householder sequence.
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_coeffs, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_length, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_shift, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_trans, and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_vectors.
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::adjoint().
Here is the caller graph for this function:
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Essential part of a Householder vector.
| [in] | k | Index of Householder reflection |
This function returns the essential part of the Householder vector
The index k + shift(), corresponding to the k-th column of the matrix v passed to the constructor.
References eigen_assert, Eigen::internal::hseq_side_dependent_impl< VectorsType, CoeffsType, Side >::essentialVector(), and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_length.
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheLeft(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheRight(), and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::evalTo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineinherited |
|
inline |
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::cols(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::essentialVector(), Eigen::internal::is_same_dense(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_coeffs, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_length, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_shift, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_trans, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_vectors, and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::rows().
Here is the call graph for this function:
|
inline |
References Eigen::AutoAlign, Eigen::ColMajor, Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::evalTo(), and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::rows().
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::evalTo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Inverse of the Householder sequence (equals the adjoint).
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::adjoint().
Here is the call graph for this function:
|
inline |
Returns the length of the Householder sequence.
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_length.
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::setLength().
Here is the caller graph for this function:
|
inline |
Computes the product of a Householder sequence with a matrix.
| [in] | other | Matrix being multiplied. |
This function computes *this and other.
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheLeft(), and cast().
Here is the call graph for this function:
|
inline |
Number of rows of transformation viewed as a matrix.
This equals the dimension of the space that the transformation acts on.
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_vectors, and Eigen::OnTheLeft.
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheLeft(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheRight(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::cols(), Eigen::internal::hseq_side_dependent_impl< VectorsType, CoeffsType, Side >::essentialVector(), Eigen::internal::hseq_side_dependent_impl< VectorsType, CoeffsType, OnTheRight >::essentialVector(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::evalTo(), and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::evalTo().
Here is the caller graph for this function:
|
inline |
Sets the length of the Householder sequence.
| [in] | length | New value for the length. |
By default, the length v passed to the constructor, or the number of rows if that is smaller. After this function is called, the length equals length.
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::length(), and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_length.
Referenced by Eigen::internal::tridiagonalization_inplace_selector< MatrixType, Size, IsComplex >::run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Sets the shift of the Householder sequence.
| [in] | shift | New value for the shift. |
By default, a HouseholderSequence object represents v passed to the constructor corresponds to the i-th Householder reflection. After this function is called, the object represents v corresponds to the (shift+i)-th Householder reflection.
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_shift, and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::shift().
Referenced by Eigen::internal::tridiagonalization_inplace_selector< MatrixType, Size, IsComplex >::run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Sets the transpose flag.
| [in] | trans | New value of the transpose flag. |
By default, the transpose flag is not set. If the transpose flag is set, then this object represents
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_trans, and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::trans().
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::adjoint().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Returns the shift of the Householder sequence.
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_shift.
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::setShift().
Here is the caller graph for this function:
|
inlineinherited |
|
inlineinherited |
|
inlineprotected |
Returns the transpose flag.
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_trans.
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::setTrans().
Here is the caller graph for this function:
|
inline |
Transpose of the Householder sequence.
References Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::HouseholderSequence, and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::m_trans.
Referenced by igl::per_vertex_point_to_plane_quadrics().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
|
friend |
|
protected |
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheLeft(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheRight(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::conjugate(), and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::evalTo().
|
protected |
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheLeft(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheRight(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::conjugate(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::essentialVector(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::evalTo(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::length(), and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::setLength().
|
protected |
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheLeft(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheRight(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::conjugate(), Eigen::internal::hseq_side_dependent_impl< VectorsType, CoeffsType, Side >::essentialVector(), Eigen::internal::hseq_side_dependent_impl< VectorsType, CoeffsType, OnTheRight >::essentialVector(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::evalTo(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::setShift(), and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::shift().
|
protected |
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::adjoint(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheLeft(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheRight(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::conjugate(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::evalTo(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::setTrans(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::trans(), and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::transpose().
|
protected |
Referenced by Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::applyThisOnTheLeft(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::conjugate(), Eigen::internal::hseq_side_dependent_impl< VectorsType, CoeffsType, Side >::essentialVector(), Eigen::internal::hseq_side_dependent_impl< VectorsType, CoeffsType, OnTheRight >::essentialVector(), Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::evalTo(), and Eigen::HouseholderSequence< VectorsType, CoeffsType, Side >::rows().