concepts::CRSConvertable< F > Class Template Referenceabstract
Base class for operators which can be converted to Sparse Row Storage (CRS) or Sparse Column Storage (CCS) More...
#include <CRS.hh>
Public Member Functions | |
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 and the index of the first value of each column xa . More... | |
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 and the index of the first value of each row xa . More... | |
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 column indices to jcn . More... | |
virtual uint | used () const =0 |
Returns the number of used entries in the matrix. More... | |
virtual | ~CRSConvertable () |
Detailed Description
template<class F>
class concepts::CRSConvertable< F >
Base class for operators which can be converted to Sparse Row Storage (CRS) or Sparse Column Storage (CCS)
Constructor & Destructor Documentation
◆ ~CRSConvertable()
|
inlinevirtual |
Member Function Documentation
◆ convertCCS()
|
pure virtual |
Converts to Compressed Column Storage (CCS) format and writes values to field a
, the row number asub
and the index of the first value of each column xa
.
The fields have to be allocated with enough memory.
◆ convertCRS()
|
pure virtual |
Converts to Compressed Row Storage (CRS) format and writes values to field a
, the column number asub
and the index of the first value of each row xa
.
The fields have to be allocated with enough memory.
◆ convertIJK()
|
pure virtual |
Convert to coordinate (COO) format and writes values to field a
, the row indices to irn
and the column indices to jcn
.
The fields have to be allocated with enough memory.
◆ used()
|
pure virtual |
Returns the number of used entries in the matrix.
The documentation for this class was generated from the following file:
- operator/CRS.hh