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)

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.

◆ 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.

◆ 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.

◆ used()

template<class F >
virtual uint concepts::CRSConvertable< F >::used ( ) const
pure virtual

Returns the number of used entries in the matrix.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich