It store one non-zero element in the sparse matrix. More...
It store one non-zero element in the sparse matrix.
Given a row, and a column, store a value
Definition at line 25 of file SparseMatrix_petsc.hpp.
#include <SparseMatrix_petsc.hpp>
Public Member Functions | |
| PetscInt & | row () |
| Return the row of the triplet. More... | |
| PetscInt & | col () |
| Return the colum of the triplet. More... | |
| PetscScalar & | value () |
| Return the value of the triplet. More... | |
| triplet (long int i, long int j, T val) | |
| Constructor from row, colum and value. More... | |
Private Attributes | |
| PetscInt | row_ |
| Row of the sparse matrix. | |
| PetscInt | col_ |
| Colum of the sparse matrix. | |
| PetscScalar | val_ |
| Value of the Matrix. | |
Constructor from row, colum and value.
| i | row |
| j | colum |
| val | value |
Definition at line 75 of file SparseMatrix_petsc.hpp.
|
inline |
Return the colum of the triplet.
Definition at line 53 of file SparseMatrix_petsc.hpp.
|
inline |
Return the row of the triplet.
Definition at line 43 of file SparseMatrix_petsc.hpp.
|
inline |
Return the value of the triplet.
Definition at line 63 of file SparseMatrix_petsc.hpp.