Definition at line 77 of file SparseMatrix_Eigen.hpp.
Public Types | |
| typedef boost::mpl::int_< EIGEN_BASE > | triplet_impl |
| Triplet implementation id. | |
| typedef triplet< T, EIGEN_BASE > | triplet_type |
| Triplet type. | |
Public Member Functions | |
| SparseMatrix (size_t N1, size_t N2) | |
| Create an empty Matrix. | |
| SparseMatrix () | |
| Create an empty Matrix. | |
| openfpm::vector< triplet_type > & | getMatrixTriplets () |
| Get the Matrix triplets bugger. | |
| const Eigen::SparseMatrix< T, 0, id_t > & | getMat () const |
| Get the Eigen Matrix object. | |
| Eigen::SparseMatrix< T, 0, id_t > & | getMat () |
| Get the Eigen Matrix object. | |
| void | resize (size_t row, size_t col, size_t l_row, size_t l_col) |
| Resize the Sparse Matrix. | |
| T | operator() (id_t i, id_t j) |
| Get the row i and the colum j of the Matrix. | |
| bool | save (const std::string &file) const |
| Save this object into file. | |
| bool | load (const std::string &file) |
| Load this object from file. | |
| T | getValue (size_t r, size_t c) |
| Get the value from triplet. | |
Private Member Functions | |
| void | assemble () |
| Assemble the matrix. | |
| void | collect () |
| Here we collect the full matrix on master. | |
Private Attributes | |
| Eigen::SparseMatrix< T, 0, id_t > | mat |
| openfpm::vector< triplet_type > | trpl |
| openfpm::vector< triplet_type > | trpl_recv |
| typedef boost::mpl::int_<EIGEN_BASE> SparseMatrix< T, id_t, EIGEN_BASE >::triplet_impl |
Triplet implementation id.
Definition at line 82 of file SparseMatrix_Eigen.hpp.
| typedef triplet<T,EIGEN_BASE> SparseMatrix< T, id_t, EIGEN_BASE >::triplet_type |
Triplet type.
Definition at line 85 of file SparseMatrix_Eigen.hpp.
|
inline |
Create an empty Matrix.
| N1 | number of row |
| N2 | number of colums |
Definition at line 137 of file SparseMatrix_Eigen.hpp.
|
inline |
Create an empty Matrix.
Definition at line 146 of file SparseMatrix_Eigen.hpp.
|
inlineprivate |
Assemble the matrix.
Definition at line 97 of file SparseMatrix_Eigen.hpp.
|
inlineprivate |
Here we collect the full matrix on master.
Definition at line 117 of file SparseMatrix_Eigen.hpp.
|
inline |
Get the Eigen Matrix object.
Definition at line 178 of file SparseMatrix_Eigen.hpp.
|
inline |
Get the Eigen Matrix object.
Definition at line 165 of file SparseMatrix_Eigen.hpp.
|
inline |
Get the Matrix triplets bugger.
It return a buffer that can be filled with triplets
Definition at line 155 of file SparseMatrix_Eigen.hpp.
|
inline |
Get the value from triplet.
| r | row |
| c | colum |
Definition at line 287 of file SparseMatrix_Eigen.hpp.
|
inline |
Load this object from file.
| file | filename |
Definition at line 245 of file SparseMatrix_Eigen.hpp.
|
inline |
Get the row i and the colum j of the Matrix.
Definition at line 201 of file SparseMatrix_Eigen.hpp.
|
inline |
Resize the Sparse Matrix.
| row | number for row |
| col | number of colums |
Definition at line 191 of file SparseMatrix_Eigen.hpp.
|
inline |
Save this object into file.
| file | filename |
Definition at line 213 of file SparseMatrix_Eigen.hpp.
|
private |
Definition at line 89 of file SparseMatrix_Eigen.hpp.
|
private |
Definition at line 90 of file SparseMatrix_Eigen.hpp.
|
private |
Definition at line 91 of file SparseMatrix_Eigen.hpp.