template<typename MatrixType_, unsigned int UpLo>
class Eigen::SelfAdjointView< MatrixType_, UpLo >
Expression of a selfadjoint matrix from a triangular part of a dense matrix.
- Template Parameters
-
| MatrixType | the type of the dense matrix storing the coefficients |
| TriangularPart | can be either Lower or Upper |
This class is an expression of a selfadjoint matrix from a triangular part of a matrix with given dense storage of the coefficients. It is the return type of MatrixBase::selfadjointView() and most of the time this is the only way that it is used.
- See also
- class TriangularBase, MatrixBase::selfadjointView()
|
| template<typename PermutationDerived> |
| SelfAdjointView & | applyPermutation (const InverseImpl< PermutationDerived, PermutationStorage > &permutation) |
| |
| template<typename PermutationDerived> |
| SelfAdjointView & | applyPermutation (const PermutationBase< PermutationDerived > &permutation) |
| |
| template<typename TranspositionsDerived> |
| SelfAdjointView & | applyPermutation (const Transpose< TranspositionsBase< TranspositionsDerived > > &transpositions) |
| |
| template<typename TranspositionsDerived> |
| SelfAdjointView & | applyPermutation (const TranspositionsBase< TranspositionsDerived > &transpositions) |
| |
| SelfAdjointView & | applyTransposition (Index i, Index j) |
| |
| BunchKaufman< PlainObject, UpLo > | bunchKaufman () const |
| |
| MatrixType::ConstDiagonalReturnType | diagonal () const |
| |
| EigenvaluesReturnType | eigenvalues () const |
| | Computes the eigenvalues of a matrix.
|
| |
| RealScalar | l1Norm () const |
| |
| LDLT< PlainObject, UpLo > | ldlt () const |
| |
| LLT< PlainObject, UpLo > | llt () const |
| |
| const Product< SelfAdjointView, Inverse< OtherDerived > > | operator* (const InverseImpl< OtherDerived, PermutationStorage > &rhs) const |
| |
| const Product< SelfAdjointView, OtherDerived > | operator* (const PermutationBase< OtherDerived > &rhs) const |
| |
| const Product< SelfAdjointView, OtherDerived > | operator* (const TriangularBase< OtherDerived > &rhs) const |
| |
| SelfAdjointView & | operator*= (const Scalar &other) |
| |
| template<typename OtherDerived> |
| SelfAdjointView & | operator+= (const DenseBase< OtherDerived > &other) |
| |
| template<typename OtherDerived> |
| SelfAdjointView & | operator-= (const DenseBase< OtherDerived > &other) |
| |
| SelfAdjointView & | operator/= (const Scalar &other) |
| |
| template<typename OtherDerived> |
| SelfAdjointView & | operator= (const MatrixBase< OtherDerived > &other) |
| |
| template<typename OtherDerived> |
| SelfAdjointView & | operator= (const TriangularBase< OtherDerived > &other) |
| |
| RealScalar | operatorNorm () const |
| | Computes the L2 operator norm.
|
| |
| template<typename DerivedU, typename DerivedV> |
| SelfAdjointView & | rankUpdate (const MatrixBase< DerivedU > &u, const MatrixBase< DerivedV > &v, const Scalar &alpha=Scalar(1)) |
| |
| template<typename DerivedU> |
| SelfAdjointView & | rankUpdate (const MatrixBase< DerivedU > &u, const Scalar &alpha=Scalar(1)) |
| |
| template<unsigned int TriMode> |
| std::conditional_t<(TriMode &(Upper|Lower))==(UpLo &(Upper|Lower)), TriangularView< MatrixType, TriMode >, TriangularView< typename MatrixType::AdjointReturnType, TriMode > > | triangularView () const |
| |
| const AdjointReturnType | adjoint () const |
| |
| Scalar | coeff (Index row, Index col) const |
| |
| Scalar & | coeffRef (Index row, Index col) |
| |
| const ConjugateReturnType | conjugate () const |
| |
| std::conditional_t< Cond, ConjugateReturnType, ConstView > | conjugateIf () const |
| |
| void | copyCoeff (Index row, Index col, Other &other) |
| |
| void | evalTo (MatrixBase< DenseDerived > &other) const |
| |
| void | evalToLazy (MatrixBase< DenseDerived > &other) const |
| |
| void | fill (const Scalar &value) |
| |
| Scalar & | operator() (Index row, Index col) |
| |
| Scalar | operator() (Index row, Index col) const |
| |
| const Product< SelfAdjointView< MatrixType_, UpLo >, Inverse< OtherDerived > > | operator* (const InverseImpl< OtherDerived, PermutationStorage > &rhs) const |
| |
| const Product< SelfAdjointView< MatrixType_, UpLo >, OtherDerived > | operator* (const PermutationBase< OtherDerived > &rhs) const |
| |
| const Product< SelfAdjointView< MatrixType_, UpLo >, OtherDerived > | operator* (const TriangularBase< OtherDerived > &rhs) const |
| |
| auto | operator+ (const DiagonalBase< OtherDerived > &other) const |
| |
| auto | operator- (const DiagonalBase< OtherDerived > &other) const |
| |
| SelfAdjointView< MatrixType_, UpLo > & | setConstant (const Scalar &value) |
| |
| SelfAdjointView< MatrixType_, UpLo > & | setIdentity () |
| |
| SelfAdjointView< MatrixType_, UpLo > & | setOnes () |
| |
| SelfAdjointView< MatrixType_, UpLo > & | setRandom () |
| |
| SelfAdjointView< MatrixType_, UpLo > & | setZero () |
| |
| TransposeReturnType | transpose () |
| |
| const ConstTransposeReturnType | transpose () const |
| |
| constexpr Index | cols () const noexcept |
| |
| constexpr SelfAdjointView< MatrixType_, UpLo > & | derived () |
| |
| constexpr const SelfAdjointView< MatrixType_, UpLo > & | derived () const |
| |
| constexpr Index | rows () const noexcept |
| |
| constexpr Index | size () const noexcept |
| |
template<typename MatrixType_, unsigned int UpLo>
template<typename DerivedU, typename DerivedV>
Perform a symmetric rank 2 update of the selfadjoint matrix *this: \( this = this + \alpha u v^* + conj(\alpha) v u^* \)
- Returns
- a reference to
*this
The vectors u and v must be column vectors, however they can be an adjoint expression without any overhead. Only the meaningful triangular part of the matrix is updated, the rest is left unchanged. For built-in floating-point and complex scalars, zero alpha leaves the matrix unchanged without reading coefficients of u or v, even if those coefficients are nonfinite.
- See also
- rankUpdate(const MatrixBase<DerivedU>&, Scalar)