OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
triplet< T, impl > Struct Template Reference

It store the non zero elements of the matrix. More...

Detailed Description

template<typename T, int impl>
struct triplet< T, impl >

It store the non zero elements of the matrix.

Definition at line 37 of file SparseMatrix.hpp.

#include <SparseMatrix.hpp>

Public Member Functions

 triplet (long int i, long int j, T val)
 
long int & row ()
 
long int & col ()
 
T & value ()
 

Data Fields

long int i
 
long int j
 
val
 

Constructor & Destructor Documentation

◆ triplet() [1/2]

template<typename T , int impl>
triplet< T, impl >::triplet ( long int  i,
long int  j,
val 
)
inline

Definition at line 43 of file SparseMatrix.hpp.

◆ triplet() [2/2]

template<typename T , int impl>
triplet< T, impl >::triplet ( )
inline

Definition at line 50 of file SparseMatrix.hpp.

Member Function Documentation

◆ col()

template<typename T , int impl>
long int & triplet< T, impl >::col ( )
inline

Definition at line 59 of file SparseMatrix.hpp.

◆ row()

template<typename T , int impl>
long int & triplet< T, impl >::row ( )
inline

Definition at line 54 of file SparseMatrix.hpp.

◆ value()

template<typename T , int impl>
T & triplet< T, impl >::value ( )
inline

Definition at line 64 of file SparseMatrix.hpp.

Field Documentation

◆ i

template<typename T , int impl>
long int triplet< T, impl >::i

Definition at line 39 of file SparseMatrix.hpp.

◆ j

template<typename T , int impl>
long int triplet< T, impl >::j

Definition at line 40 of file SparseMatrix.hpp.

◆ val

template<typename T , int impl>
T triplet< T, impl >::val

Definition at line 41 of file SparseMatrix.hpp.


The documentation for this struct was generated from the following file: