template<typename T, int _Options, typename _Index>
class gismo::gsSparseMatrix< T, _Options, _Index >
Sparse matrix class, based on gsEigen::SparseMatrix.
Forward declaration gsSparseMatrix.
See http://eigen.tuxfamily.org/dox/group__SparseQuickRefPage.html for Eigen's sparse matrix manipulations and http://eigen.tuxfamily.org/dox/classEigen_1_1SparseMatrix.html for documentation of the gsEigen::SparseMatrix class.
Remarks:
An entry of the gsSparseMatrix can be accessed by coeff( index
row, index col ) or just with the operator ( index row, index col ).
An entry can be changed with either coeffRef( index row, index col) or operator ( index row, index col ).
- Template Parameters
-
T | coefficient type |
_Option | zero is ColMajor order. |
_Index | index type |
Inherits SparseMatrix< T, _Options, _Index >.
|
void | addTo (_Index i, _Index j, const T val) |
|
iterator | begin (const index_t outer) const |
| Returns an iterator to the first non-zero elemenent of column \ a outer (or row outer if the matrix is RowMajor)
|
|
BlockView | blockView (const gsVector< index_t > &rowSizes, const gsVector< index_t > &colSizes) |
| Return a block view of the matrix with rowSizes and colSizes.
|
|
constBlockView | blockView (const gsVector< index_t > &rowSizes, const gsVector< index_t > &colSizes) const |
| Return a const block view of the matrix with rowSizes and colSizes.
|
|
template<typename OtherDerived > |
| gsSparseMatrix (const gsEigen::EigenBase< OtherDerived > &other) |
| This constructor allows constructing a gsSparseMatrix from Eigen expressions.
|
|
template<typename OtherDerived > |
| gsSparseMatrix (const gsEigen::MatrixBase< OtherDerived > &other) |
| This constructor allows constructing a gsSparseMatrix from Eigen expressions.
|
|
template<typename OtherDerived > |
| gsSparseMatrix (const gsEigen::ReturnByValue< OtherDerived > &other) |
| This constructor allows constructing a gsSparseMatrix from Eigen expressions.
|
|
template<typename OtherDerived > |
| gsSparseMatrix (const gsEigen::SparseMatrixBase< OtherDerived > &other) |
| This constructor allows constructing a gsSparseMatrix from another sparse expression.
|
|
template<typename OtherDerived , unsigned int UpLo> |
| gsSparseMatrix (const gsEigen::SparseSelfAdjointView< OtherDerived, UpLo > &other) |
| This constructor allows constructing a gsSparseMatrix from a selfadjoint view.
|
|
template<class container > |
container | innerOf (const container &outer) const |
|
void | insertExplicitZero (_Index row, _Index col) |
| Adds an explicit zero, only if (row,col) is not in the matrix.
|
|
void | insertTo (_Index i, _Index j, const T val) |
|
gsSparseMatrix | kron (const gsSparseMatrix &other) const |
| Returns the Kronecker product of this with other.
|
|
uPtr | moveToPtr () |
| This function returns a smart pointer to the matrix. After calling it, the matrix object becomes empty, ie the size of the matrix is 0.
|
|
template<class container > |
gsMatrix< T > | multiplyBy (const container &inner, const container &outer, const gsMatrix< T > &other) |
|
gsAsConstVector< _Index > | nonZerosPerCol () |
|
void | rrefInPlace () |
| Allocates the sparsity pattern.
|
|
template<class container > |
gsMatrix< T > | submatrix (const container &inner, const container &outer) const |
|
template<typename T , int _Options, typename _Index >
template<class container >
container innerOf |
( |
const container & |
outer | ) |
const |
|
inline |
Returns a set of (inner) indices, which consists of all rows/columns of the matrix with non-zero coefficients at columns/rows outer