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 27 of file SparseMatrix_petsc.hpp.
#include <SparseMatrix_petsc.hpp>
Public Member Functions | |
PetscInt & | row () |
Return the row of the triplet. | |
PetscInt & | col () |
Return the colum of the triplet. | |
PetscScalar & | value () |
Return the value of the triplet. | |
triplet (long int i, long int j, T val) | |
Constructor from row, colum and value. | |
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 77 of file SparseMatrix_petsc.hpp.
Definition at line 85 of file SparseMatrix_petsc.hpp.
|
inline |
Return the colum of the triplet.
Definition at line 55 of file SparseMatrix_petsc.hpp.
|
inline |
Return the row of the triplet.
Definition at line 45 of file SparseMatrix_petsc.hpp.
|
inline |
Return the value of the triplet.
Definition at line 65 of file SparseMatrix_petsc.hpp.
|
private |
Colum of the sparse matrix.
Definition at line 33 of file SparseMatrix_petsc.hpp.
|
private |
Row of the sparse matrix.
Definition at line 30 of file SparseMatrix_petsc.hpp.
|
private |
Value of the Matrix.
Definition at line 36 of file SparseMatrix_petsc.hpp.