virtual void convertCRS(F *a, int *asub, int *xa) const =0
Converts to Compressed Row Storage (CRS) format and writes values to field a, the column number asub ...
#define DEBUGL(doit, msg)
void convertIJK_unSorted(F &m, typename F::type *a, int *irn, int *jcn)
Definition: CRS.hh:171
void convertCRS_rowSorting(F &m, typename F::value_type *a, int *asub, int *xa)
Method converts a matrix of type F to Sparse Row Storage (CRS) format.
Definition: CRS.hh:88
virtual uint used() const =0
Returns the number of used entries in the matrix.
void sparseLineToArrays(std::map< int, F > &line, F *a, int *asub)
This function converts a sparse line to an array of values and an array of indices.
Definition: CRS.hh:63
void convertCCS_rowSorting(F &m, typename F::type *a, int *asub, int *xa)
Method converts a matrix of type F to Sparse Column Storage (CCS) format.
Definition: CRS.hh:135
virtual void convertIJK(F *a, int *irn, int *jcn) const =0
Convert to coordinate (COO) format and writes values to field a, the row indices to irn and the colum...
Base class for operators which can be converted to Sparse Row Storage (CRS) or Sparse Column Storage ...
Definition: CRS.hh:30
virtual void convertCCS(F *a, int *asub, int *xa) const =0
Converts to Compressed Column Storage (CCS) format and writes values to field a, the row number asub ...
uint getNumberofRows(HashedSparseMatrix< F > &m)
Definition: hashedSMatrix.hh:275