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

It store one non-zero element in the sparse matrix. More...

Detailed Description

template<typename T>
class triplet< T, EIGEN_TRIPLET >

It store one non-zero element in the sparse matrix.

Given a row, and a column, store a value

Definition at line 24 of file SparseMatrix_Eigen.hpp.

#include <SparseMatrix_Eigen.hpp>

Public Member Functions

long int & row ()
 
long int & col ()
 
T & value ()
 
 triplet (long int i, long int j, T val)
 Constructor from row, colum and value.
 

Private Attributes

Eigen::Triplet< T, long int > triplet_ei
 

Constructor & Destructor Documentation

◆ triplet() [1/2]

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

Constructor from row, colum and value.

Parameters
irow
jcolum
valvalue

Definition at line 58 of file SparseMatrix_Eigen.hpp.

◆ triplet() [2/2]

template<typename T >
triplet< T, EIGEN_TRIPLET >::triplet ( )
inline

Definition at line 66 of file SparseMatrix_Eigen.hpp.

Member Function Documentation

◆ col()

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

Definition at line 37 of file SparseMatrix_Eigen.hpp.

◆ row()

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

Definition at line 30 of file SparseMatrix_Eigen.hpp.

◆ value()

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

Definition at line 44 of file SparseMatrix_Eigen.hpp.

Field Documentation

◆ triplet_ei

template<typename T >
Eigen::Triplet<T,long int> triplet< T, EIGEN_TRIPLET >::triplet_ei
private

Definition at line 26 of file SparseMatrix_Eigen.hpp.


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