20 #ifndef FPGA_MATRIX_HEADER_INCLUDED
21 #define FPGA_MATRIX_HEADER_INCLUDED
38 : nnzValues(new double[nnzs_]),
39 colIndices(new int[nnzs_]),
40 rowPointers(new int[N_+1]),
69 int toRDF(
int numColors, std::vector<int>& nodesPerColor,
70 std::vector<std::vector<int> >& colIndicesInColor,
int nnzsPerRowLimit,
71 std::vector<std::vector<double> >& ubNnzValues,
short int *ubColIndices,
int *nnzValsSizes,
unsigned char *NROffsets,
int *colorSizes);
80 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: FPGAMatrix.hpp:30
Matrix(int N_, int nnzs_)
Allocate Matrix and data arrays with given sizes.
Definition: FPGAMatrix.hpp:37
~Matrix()
All constructors allocate new memory, so always delete here.
Definition: FPGAMatrix.hpp:46
int toRDF(int numColors, std::vector< int > &nodesPerColor, std::vector< std::vector< int > > &colIndicesInColor, int nnzsPerRowLimit, std::vector< std::vector< double > > &ubNnzValues, short int *ubColIndices, int *nnzValsSizes, unsigned char *NROffsets, int *colorSizes)
Converts this matrix to the dataformat used by the FPGA.
Definition: FPGAMatrix.cpp:89