My Project
|
This struct resembles a blocked csr matrix, like Dune::BCRSMatrix. More...
#include <BlockedMatrix.hpp>
Public Member Functions | |
BlockedMatrix (int Nb_, int nnzbs_) | |
Allocate BlockedMatrix and data arrays with given sizes. More... | |
BlockedMatrix (const BlockedMatrix &M) | |
Allocate BlockedMatrix, but copy sparsity pattern instead of allocating new memory. More... | |
BlockedMatrix (int Nb_, int nnzbs_, double *nnzValues_, int *colIndices_, int *rowPointers_) | |
Allocate BlockedMatrix, but let data arrays point to existing arrays. More... | |
Public Attributes | |
double * | nnzValues |
int * | colIndices |
int * | rowPointers |
int | Nb |
int | nnzbs |
bool | deleteNnzs |
bool | deleteSparsity |
This struct resembles a blocked csr matrix, like Dune::BCRSMatrix.
The data is stored in contiguous memory, such that they can be copied to a device in one transfer.
|
inline |
Allocate BlockedMatrix and data arrays with given sizes.
[in] | Nb | number of blockrows |
[in] | nnzbs | number of nonzero blocks |
|
inline |
Allocate BlockedMatrix, but copy sparsity pattern instead of allocating new memory.
[in] | M | matrix to be copied |
|
inline |
Allocate BlockedMatrix, but let data arrays point to existing arrays.
[in] | Nb | number of blockrows |
[in] | nnzbs | number of nonzero blocks |
[in] | nnzValues | array of nonzero values, contains nnzb*block_size*block_size scalars |
[in] | colIndices | array of column indices, contains nnzb entries |
[in] | rowPointers | array of row pointers, contains Nb+1 entries |