Sparse Matrix implementation, that map over Eigen.
More...
#include <SparseMatrix_petsc.hpp>
template<typename T, typename id_t>
class SparseMatrix< T, id_t, PETSC_BASE >
Sparse Matrix implementation, that map over Eigen.
- Template Parameters
-
| T | Type of the sparse Matrix store on each row,colums |
| id_t | type of id |
| impl | implementation |
Definition at line 98 of file SparseMatrix_petsc.hpp.
◆ SparseMatrix()
template<typename T , typename id_t >
◆ getMat() [1/2]
template<typename T , typename id_t >
◆ getMat() [2/2]
template<typename T , typename id_t >
| const Mat& SparseMatrix< T, id_t, PETSC_BASE >::getMat |
( |
| ) |
const |
|
inline |
◆ getMatrixTriplets()
template<typename T , typename id_t >
◆ getValue()
template<typename T , typename id_t >
| T SparseMatrix< T, id_t, PETSC_BASE >::getValue |
( |
size_t |
r, |
|
|
size_t |
c |
|
) |
| |
|
inline |
Get the value from triplet.
- Warning
- It is extremly slow because it do a full search across the triplets elements
- Parameters
-
Definition at line 364 of file SparseMatrix_petsc.hpp.
◆ isMatrixFilled()
template<typename T , typename id_t >
| bool SparseMatrix< T, id_t, PETSC_BASE >::isMatrixFilled |
( |
| ) |
|
|
inline |
Return the state of matrix.
Returns a bool flag that indicated whether the matrix has already been filled via MatSetValues
Definition at line 381 of file SparseMatrix_petsc.hpp.
◆ operator()()
template<typename T , typename id_t >
| T SparseMatrix< T, id_t, PETSC_BASE >::operator() |
( |
id_t |
i, |
|
|
id_t |
j |
|
) |
| |
|
inline |
Get the row i and the colum j of the Matrix.
- Warning
- it is slow, consider to get blocks of the matrix
- Returns
- the value of the matrix at row i colum j
Definition at line 347 of file SparseMatrix_petsc.hpp.
◆ resize()
template<typename T , typename id_t >
| void SparseMatrix< T, id_t, PETSC_BASE >::resize |
( |
size_t |
row, |
|
|
size_t |
col, |
|
|
size_t |
l_row, |
|
|
size_t |
l_col |
|
) |
| |
|
inline |
Resize the Sparse Matrix.
- Parameters
-
| row | number for row |
| col | number of colums |
| local | number of row |
| local | number of colums |
Definition at line 309 of file SparseMatrix_petsc.hpp.
The documentation for this class was generated from the following file: