Pseudo expression to manipulate a triangular sparse matrix as a selfadjoint matrix.
More...
#include <SparseSelfAdjointView.h>
List of all members.
Public Types |
typedef MatrixType::Scalar | Scalar |
typedef MatrixType::Index | Index |
typedef Matrix< Index, Dynamic, 1 > | VectorI |
typedef MatrixType::Nested | MatrixTypeNested |
typedef internal::remove_all
< MatrixTypeNested >::type | _MatrixTypeNested |
Public Member Functions |
| SparseSelfAdjointView (const MatrixType &matrix) |
Index | rows () const |
Index | cols () const |
const _MatrixTypeNested & | matrix () const |
_MatrixTypeNested & | matrix () |
template<typename OtherDerived > |
SparseSelfAdjointTimeDenseProduct
< MatrixType, OtherDerived,
UpLo > | operator* (const MatrixBase< OtherDerived > &rhs) const |
template<typename DerivedU > |
SparseSelfAdjointView & | rankUpdate (const SparseMatrixBase< DerivedU > &u, Scalar alpha=Scalar(1)) |
template<typename DestScalar > |
void | evalTo (SparseMatrix< DestScalar > &_dest) const |
template<typename DestScalar > |
void | evalTo (DynamicSparseMatrix< DestScalar > &_dest) const |
SparseSymmetricPermutationProduct
< _MatrixTypeNested, UpLo > | twistedBy (const PermutationMatrix< Dynamic > &perm) const |
template<typename SrcMatrixType , int SrcUpLo> |
SparseSelfAdjointView & | operator= (const SparseSymmetricPermutationProduct< SrcMatrixType, SrcUpLo > &permutedMatrix) |
Protected Attributes |
const MatrixType::Nested | m_matrix |
VectorI | m_countPerRow |
VectorI | m_countPerCol |
Friends |
template<typename OtherDerived > |
DenseTimeSparseSelfAdjointProduct
< OtherDerived, MatrixType,
UpLo > | operator* (const MatrixBase< OtherDerived > &lhs, const SparseSelfAdjointView &rhs) |
Detailed Description
template<typename MatrixType, unsigned int UpLo>
class SparseSelfAdjointView< MatrixType, UpLo >
Pseudo expression to manipulate a triangular sparse matrix as a selfadjoint matrix.
- Parameters:
-
| MatrixType | the type of the dense matrix storing the coefficients |
| UpLo | 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()
Member Typedef Documentation
template<typename MatrixType, unsigned int UpLo>
template<typename MatrixType, unsigned int UpLo>
template<typename MatrixType, unsigned int UpLo>
template<typename MatrixType, unsigned int UpLo>
template<typename MatrixType, unsigned int UpLo>
Constructor & Destructor Documentation
template<typename MatrixType, unsigned int UpLo>
Member Function Documentation
template<typename MatrixType, unsigned int UpLo>
template<typename MatrixType, unsigned int UpLo>
template<typename DestScalar >
template<typename MatrixType, unsigned int UpLo>
template<typename DestScalar >
template<typename MatrixType, unsigned int UpLo>
template<typename MatrixType, unsigned int UpLo>
template<typename MatrixType, unsigned int UpLo>
template<typename OtherDerived >
Efficient sparse self-adjoint matrix times dense vector/matrix product
template<typename MatrixType, unsigned int UpLo>
template<typename SrcMatrixType , int SrcUpLo>
template<typename MatrixType , unsigned int UpLo>
template<typename DerivedU >
Perform a symmetric rank K update of the selfadjoint matrix *this
: where u is a vector or matrix.
- Returns:
- a reference to
*this
Note that it is faster to set alpha=0 than initializing the matrix to zero and then keep the default value alpha=1.
To perform you can simply call this function with u.adjoint().
template<typename MatrixType, unsigned int UpLo>
template<typename MatrixType, unsigned int UpLo>
- Returns:
- an expression of P^-1 H P
Friends And Related Function Documentation
template<typename MatrixType, unsigned int UpLo>
template<typename OtherDerived >
Efficient dense vector/matrix times sparse self-adjoint matrix product
Member Data Documentation
template<typename MatrixType, unsigned int UpLo>
template<typename MatrixType, unsigned int UpLo>
template<typename MatrixType, unsigned int UpLo>
The documentation for this class was generated from the following file: