20 #ifndef OPM_MATRIX_HEADER_INCLUDED
21 #define OPM_MATRIX_HEADER_INCLUDED
44 nnzValues.resize(nnzs);
45 colIndices.resize(nnzs);
46 rowPointers.resize(N+1);
76 int toRDF(
int numColors, std::vector<int>& nodesPerColor,
77 std::vector<std::vector<int> >& colIndicesInColor,
int nnzsPerRowLimit,
78 std::vector<std::vector<double> >& ubNnzValues,
short int *ubColIndices,
int *nnzValsSizes,
unsigned char *NROffsets,
int *colorSizes);
81 std::vector<double> nnzValues;
82 std::vector<int> colIndices;
83 std::vector<int> rowPointers;
88 void sortRow(
int *colIndices,
double *data,
int left,
int right);
This struct resembles a csr matrix, only doubles are supported The data is stored in contiguous memor...
Definition: Matrix.hpp:32
Matrix(int N_, int M_, int nnzs_)
Allocate rectangular Matrix and data arrays with given sizes.
Definition: Matrix.hpp:53
Matrix(int N_, int nnzs_)
Allocate square Matrix and data arrays with given sizes.
Definition: Matrix.hpp:39
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: BlackoilPhases.hpp:27