#include <CRS.hh>
Public Member Functions | |
| virtual uint | used () const =0 |
| Returns the number of used entries in the matrix. | |
| virtual void | convertCRS (F *a, int *asub, int *xa) const =0 |
| virtual void | convertCCS (F *a, int *asub, int *xa) const =0 |
| virtual void | convertIJK (F *a, int *irn, int *jcn) const =0 |
Base class for operators which can be converted to Sparse Row Storage (CRS) or Sparse Column Storage (CCS)
|
inlinevirtual |
|
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.
Implemented in concepts::SparseMatrix< F >.
|
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.
Implemented in concepts::SparseMatrix< F >.
|
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.
Implemented in concepts::SparseMatrix< F >.
|
pure virtual |
Returns the number of used entries in the matrix.
Implemented in concepts::SparseMatrix< F >, concepts::SparseMatrix< FX >, concepts::SparseMatrix< Real >, and concepts::SubMatrixN< F >.