Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::CRSConvertable< F > Class Template Referenceabstract

#include <CRS.hh>

Inheritance diagram for concepts::CRSConvertable< F >:
concepts::SparseMatrix< FX > concepts::SparseMatrix< Real > concepts::SparseMatrix< F >

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
 

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)

Author
Kersten Schmidt, 2005

Definition at line 30 of file CRS.hh.

Constructor & Destructor Documentation

◆ ~CRSConvertable()

template<class F >
virtual concepts::CRSConvertable< F >::~CRSConvertable ( )
inlinevirtual

Definition at line 51 of file CRS.hh.

Member Function Documentation

◆ convertCCS()

template<class F >
virtual void concepts::CRSConvertable< F >::convertCCS ( F *  a,
int asub,
int xa 
) const
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 >.

◆ convertCRS()

template<class F >
virtual void concepts::CRSConvertable< F >::convertCRS ( F *  a,
int asub,
int xa 
) const
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 >.

◆ convertIJK()

template<class F >
virtual void concepts::CRSConvertable< F >::convertIJK ( F *  a,
int irn,
int jcn 
) const
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 >.

◆ used()

template<class F >
virtual uint concepts::CRSConvertable< F >::used ( ) const
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 >.


The documentation for this class was generated from the following file: