Eigen::SparseSelfAdjointView
template<typename MatrixType, unsigned int _Mode>
class Eigen::SparseSelfAdjointView< MatrixType, _Mode >
Pseudo expression to manipulate a triangular sparse matrix as a selfadjoint matrix.
- Parameters
-
MatrixType |
the type of the dense matrix storing the coefficients |
Mode |
can be either Lower or Upper |
This class is an expression of a sefladjoint 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
- SparseMatrixBase::selfadjointView()
operator*() [1/2]
template<typename MatrixType , unsigned int _Mode>
template<typename OtherDerived >
Efficient sparse self-adjoint matrix times dense vector/matrix product
operator*() [2/2]
template<typename MatrixType , unsigned int _Mode>
template<typename OtherDerived >
- Returns
- an expression of the matrix product between a sparse self-adjoint matrix
*this
and a sparse matrix rhs.
Note that there is no algorithmic advantage of performing such a product compared to a general sparse-sparse matrix product. Indeed, the SparseSelfadjointView operand is first copied into a temporary SparseMatrix before computing the product.
rankUpdate()
template<typename MatrixType , unsigned int _Mode>
template<typename DerivedU >
Perform a symmetric rank K update of the selfadjoint matrix *this
: \( this = this + \alpha ( u u^* ) \) where u is a vector or matrix.
- Returns
- a reference to
*this
To perform \( this = this + \alpha ( u^* u ) \) you can simply call this function with u.adjoint().
twistedBy()
template<typename MatrixType , unsigned int _Mode>
- Returns
- an expression of P H P^-1
The documentation for this class was generated from the following file: