Sparse Matrix implementation. More...
Sparse Matrix implementation.
T | Type of the sparse Matrix store on each row,colums |
id_t | type of id |
Mi | implementation |
Definition at line 78 of file SparseMatrix.hpp.
#include <SparseMatrix.hpp>
Public Types | |
typedef boost::mpl::int_<-1 > | triplet_impl |
Triplet implementation id. | |
typedef triplet< T,-1 > | triplet_type |
Triplet type. | |
Public Member Functions | |
SparseMatrix (size_t N1, size_t N2) | |
SparseMatrix (size_t N1, size_t N2, size_t loc) | |
openfpm::vector< triplet_type > & | getMatrixTriplets () |
const int & | getMat () const |
int & | getMat () |
void | resize (size_t row, size_t col, size_t row_n, size_t col_n) |
T | operator() (id_t i, id_t j) |
bool | save (const std::string &file) const |
bool | load (const std::string &file) |
T | getValue (size_t r, size_t c) |
Data Fields | |
openfpm::vector< triplet_type > | stub_vt |
int | stub_i |
T | stub_t |
typedef boost::mpl::int_<-1> SparseMatrix< T, id_t, DEFAULT_MATRIX >::triplet_impl |
Triplet implementation id.
Definition at line 83 of file SparseMatrix.hpp.
typedef triplet<T,-1> SparseMatrix< T, id_t, DEFAULT_MATRIX >::triplet_type |
Triplet type.
Definition at line 86 of file SparseMatrix.hpp.
|
inline |
Definition at line 95 of file SparseMatrix.hpp.
|
inline |
Definition at line 96 of file SparseMatrix.hpp.
|
inline |
Definition at line 97 of file SparseMatrix.hpp.
|
inline |
Definition at line 100 of file SparseMatrix.hpp.
|
inline |
Definition at line 99 of file SparseMatrix.hpp.
|
inline |
Definition at line 98 of file SparseMatrix.hpp.
|
inline |
Definition at line 105 of file SparseMatrix.hpp.
|
inline |
Definition at line 104 of file SparseMatrix.hpp.
|
inline |
Definition at line 102 of file SparseMatrix.hpp.
|
inline |
Definition at line 101 of file SparseMatrix.hpp.
|
inline |
Definition at line 103 of file SparseMatrix.hpp.
int SparseMatrix< T, id_t, DEFAULT_MATRIX >::stub_i |
Definition at line 89 of file SparseMatrix.hpp.
T SparseMatrix< T, id_t, DEFAULT_MATRIX >::stub_t |
Definition at line 90 of file SparseMatrix.hpp.
openfpm::vector<triplet_type> SparseMatrix< T, id_t, DEFAULT_MATRIX >::stub_vt |
Definition at line 88 of file SparseMatrix.hpp.