This struct resembles a blocked csr matrix, like Dune::BCRSMatrix.
More...
#include <BlockedMatrix.hpp>
|
double * | nnzValues |
|
int * | colIndices |
|
int * | rowPointers |
|
int | Nb |
|
int | nnzbs |
|
unsigned int | block_size |
|
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.
◆ BlockedMatrix() [1/3]
Opm::Accelerator::BlockedMatrix::BlockedMatrix |
( |
int |
Nb_, |
|
|
int |
nnzbs_, |
|
|
unsigned int |
block_size_ |
|
) |
| |
|
inline |
Allocate BlockedMatrix and data arrays with given sizes.
- Parameters
-
[in] | Nb | number of blockrows |
[in] | nnzbs | number of nonzero blocks |
[in] | block_size | the number of rows and columns for each block |
◆ BlockedMatrix() [2/3]
Opm::Accelerator::BlockedMatrix::BlockedMatrix |
( |
const BlockedMatrix & |
M | ) |
|
|
inline |
Allocate BlockedMatrix, but copy sparsity pattern instead of allocating new memory.
- Parameters
-
◆ BlockedMatrix() [3/3]
Opm::Accelerator::BlockedMatrix::BlockedMatrix |
( |
int |
Nb_, |
|
|
int |
nnzbs_, |
|
|
unsigned int |
block_size_, |
|
|
double * |
nnzValues_, |
|
|
int * |
colIndices_, |
|
|
int * |
rowPointers_ |
|
) |
| |
|
inline |
Allocate BlockedMatrix, but let data arrays point to existing arrays.
- Parameters
-
[in] | Nb | number of blockrows |
[in] | nnzbs | number of nonzero blocks |
[in] | block_size | the number of rows and columns for each block |
[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 |
The documentation for this class was generated from the following file: