Pseudo expression to manipulate a triangular sparse matrix as a selfadjoint matrix. More...
#include <SparseSelfAdjointView.h>

Public Types | |
| enum | { Mode = _Mode, TransposeMode = ((Mode & Upper) ? Lower : 0) | ((Mode & Lower) ? Upper : 0), RowsAtCompileTime = internal::traits<SparseSelfAdjointView>::RowsAtCompileTime, ColsAtCompileTime = internal::traits<SparseSelfAdjointView>::ColsAtCompileTime } |
| typedef internal::remove_all< MatrixTypeNested >::type | _MatrixTypeNested |
| typedef EigenBase< SparseSelfAdjointView > | Base |
| typedef internal::ref_selector< MatrixType >::non_const_type | MatrixTypeNested |
| typedef MatrixType::Scalar | Scalar |
| typedef MatrixType::StorageIndex | StorageIndex |
| typedef Matrix< StorageIndex, Dynamic, 1 > | VectorI |
Public Types inherited from Eigen::EigenBase< SparseSelfAdjointView< MatrixType, _Mode > > | |
| typedef Eigen::Index | Index |
| The interface type of indices. More... | |
| typedef internal::traits< SparseSelfAdjointView< MatrixType, _Mode > >::StorageKind | StorageKind |
Public Member Functions | |
| Index | cols () const |
| internal::remove_reference< MatrixTypeNested >::type & | matrix () |
| const _MatrixTypeNested & | matrix () const |
| template<typename OtherDerived > | |
| Product< SparseSelfAdjointView, OtherDerived > | operator* (const MatrixBase< OtherDerived > &rhs) const |
| template<typename OtherDerived > | |
| Product< SparseSelfAdjointView, OtherDerived > | operator* (const SparseMatrixBase< OtherDerived > &rhs) const |
| SparseSelfAdjointView & | operator= (const SparseSelfAdjointView &src) |
| template<typename SrcMatrixType , unsigned int SrcMode> | |
| SparseSelfAdjointView & | operator= (const SparseSelfAdjointView< SrcMatrixType, SrcMode > &src) |
| template<typename SrcMatrixType , int SrcMode> | |
| SparseSelfAdjointView & | operator= (const SparseSymmetricPermutationProduct< SrcMatrixType, SrcMode > &permutedMatrix) |
| template<typename DerivedU > | |
| SparseSelfAdjointView< MatrixType, Mode > & | rankUpdate (const SparseMatrixBase< DerivedU > &u, const Scalar &alpha) |
| template<typename DerivedU > | |
| SparseSelfAdjointView & | rankUpdate (const SparseMatrixBase< DerivedU > &u, const Scalar &alpha=Scalar(1)) |
| void | resize (Index rows, Index cols) |
| Index | rows () const |
| SparseSelfAdjointView (MatrixType &matrix) | |
| SparseSymmetricPermutationProduct< _MatrixTypeNested, Mode > | twistedBy (const PermutationMatrix< Dynamic, Dynamic, StorageIndex > &perm) const |
Public Member Functions inherited from Eigen::EigenBase< SparseSelfAdjointView< MatrixType, _Mode > > | |
| EIGEN_DEVICE_FUNC void | addTo (Dest &dst) const |
| EIGEN_DEVICE_FUNC void | applyThisOnTheLeft (Dest &dst) const |
| EIGEN_DEVICE_FUNC void | applyThisOnTheRight (Dest &dst) const |
| EIGEN_DEVICE_FUNC Index | cols () const |
| EIGEN_DEVICE_FUNC SparseSelfAdjointView< MatrixType, _Mode > & | const_cast_derived () const |
| const EIGEN_DEVICE_FUNC SparseSelfAdjointView< MatrixType, _Mode > & | const_derived () const |
| EIGEN_DEVICE_FUNC SparseSelfAdjointView< MatrixType, _Mode > & | derived () |
| const EIGEN_DEVICE_FUNC SparseSelfAdjointView< MatrixType, _Mode > & | derived () const |
| EIGEN_DEVICE_FUNC void | evalTo (Dest &dst) const |
| EIGEN_DEVICE_FUNC Index | rows () const |
| EIGEN_DEVICE_FUNC Index | size () const |
| EIGEN_DEVICE_FUNC void | subTo (Dest &dst) const |
Protected Attributes | |
| MatrixTypeNested | m_matrix |
Private Member Functions | |
| template<typename Dest > | |
| void | evalTo (Dest &) const |
Friends | |
| template<typename OtherDerived > | |
| Product< OtherDerived, SparseSelfAdjointView > | operator* (const MatrixBase< OtherDerived > &lhs, const SparseSelfAdjointView &rhs) |
| template<typename OtherDerived > | |
| Product< OtherDerived, SparseSelfAdjointView > | operator* (const SparseMatrixBase< OtherDerived > &lhs, const SparseSelfAdjointView &rhs) |
Pseudo expression to manipulate a triangular sparse matrix as a selfadjoint matrix.
| 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.
Definition at line 43 of file SparseSelfAdjointView.h.
| typedef internal::remove_all<MatrixTypeNested>::type Eigen::SparseSelfAdjointView< MatrixType, _Mode >::_MatrixTypeNested |
Definition at line 60 of file SparseSelfAdjointView.h.
| typedef EigenBase<SparseSelfAdjointView> Eigen::SparseSelfAdjointView< MatrixType, _Mode >::Base |
Definition at line 55 of file SparseSelfAdjointView.h.
| typedef internal::ref_selector<MatrixType>::non_const_type Eigen::SparseSelfAdjointView< MatrixType, _Mode >::MatrixTypeNested |
Definition at line 59 of file SparseSelfAdjointView.h.
| typedef MatrixType::Scalar Eigen::SparseSelfAdjointView< MatrixType, _Mode >::Scalar |
Definition at line 56 of file SparseSelfAdjointView.h.
| typedef MatrixType::StorageIndex Eigen::SparseSelfAdjointView< MatrixType, _Mode >::StorageIndex |
Definition at line 57 of file SparseSelfAdjointView.h.
| typedef Matrix<StorageIndex,Dynamic,1> Eigen::SparseSelfAdjointView< MatrixType, _Mode >::VectorI |
Definition at line 58 of file SparseSelfAdjointView.h.
| anonymous enum |
| Enumerator | |
|---|---|
| Mode | |
| TransposeMode | |
| RowsAtCompileTime | |
| ColsAtCompileTime | |
Definition at line 48 of file SparseSelfAdjointView.h.
|
inlineexplicit |
Definition at line 62 of file SparseSelfAdjointView.h.
|
inline |
Definition at line 68 of file SparseSelfAdjointView.h.
|
private |
|
inline |
Definition at line 72 of file SparseSelfAdjointView.h.
|
inline |
Definition at line 71 of file SparseSelfAdjointView.h.
|
inline |
Efficient sparse self-adjoint matrix times dense vector/matrix product
Definition at line 101 of file SparseSelfAdjointView.h.
|
inline |
*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.
Definition at line 81 of file SparseSelfAdjointView.h.
|
inline |
Definition at line 139 of file SparseSelfAdjointView.h.
|
inline |
Definition at line 146 of file SparseSelfAdjointView.h.
|
inline |
Definition at line 133 of file SparseSelfAdjointView.h.
| SparseSelfAdjointView<MatrixType,Mode>& Eigen::SparseSelfAdjointView< MatrixType, _Mode >::rankUpdate | ( | const SparseMatrixBase< DerivedU > & | u, |
| const Scalar & | alpha | ||
| ) |
Definition at line 194 of file SparseSelfAdjointView.h.
| SparseSelfAdjointView& Eigen::SparseSelfAdjointView< MatrixType, _Mode >::rankUpdate | ( | const SparseMatrixBase< DerivedU > & | u, |
| const Scalar & | alpha = Scalar(1) |
||
| ) |
Perform a symmetric rank K update of the selfadjoint matrix *this:
where u is a vector or matrix.
*this To perform
you can simply call this function with u.adjoint().
|
inline |
Definition at line 152 of file SparseSelfAdjointView.h.
|
inline |
Definition at line 67 of file SparseSelfAdjointView.h.
|
inline |
Definition at line 127 of file SparseSelfAdjointView.h.
|
friend |
Efficient dense vector/matrix times sparse self-adjoint matrix product
Definition at line 109 of file SparseSelfAdjointView.h.
|
friend |
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.
Definition at line 93 of file SparseSelfAdjointView.h.
|
protected |
Definition at line 162 of file SparseSelfAdjointView.h.