|
My Project
|
This struct resembles a csr matrix, only doubles are supported The data is stored in contiguous memory, such that they can be copied to a device in one transfer. More...
#include <Matrix.hpp>
Public Member Functions | |
| Matrix (int N_, int nnzs_) | |
| Allocate square Matrix and data arrays with given sizes. | |
| Matrix (int N_, int M_, int nnzs_) | |
| Allocate rectangular Matrix and data arrays with given sizes. | |
Public Attributes | |
| std::vector< Scalar > | nnzValues |
| std::vector< int > | colIndices |
| std::vector< int > | rowPointers |
| int | N |
| int | M |
| int | nnzs |
This struct resembles a csr matrix, only doubles are supported The data is stored in contiguous memory, such that they can be copied to a device in one transfer.
|
inline |
Allocate square Matrix and data arrays with given sizes.
| [in] | N | number of rows |
| [in] | nnzs | number of nonzeros |
|
inline |
Allocate rectangular Matrix and data arrays with given sizes.
| [in] | N | number of rows |
| [in] | M | number of columns |
| [in] | nnzs | number of nonzeros |