dune-fem  2.4.1-rc
Public Types | Public Member Functions | List of all members
Dune::ColCompMatrix< Fem::SparseRowMatrix< B > > Class Template Reference

Converter for SparseRowMatrix to column-compressed matrix. Specialization for SparseRowMatrix. More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/operator/matrix/colcompspmatrix.hh>

Public Types

typedef ColCompMatrix< Fem::SparseRowMatrix< B > > ThisType
 The type of the matrix converted. More...
 
typedef Fem::SparseRowMatrix< B > Matrix
 The type of the matrix to convert. More...
 
typedef int size_type
 

Public Member Functions

 ColCompMatrix (const Matrix &mat)
 Constructor that initializes the data. More...
 
 ColCompMatrix ()
 Empty constructor. More...
 
virtual ~ColCompMatrix ()
 Destructor. More...
 
size_type N () const
 Get the number of rows. More...
 
size_type nnz () const
 Get the number of non zero entries. More...
 
size_type M () const
 Get the number of columns. More...
 
B * getValues () const
 Get the non-zero entries of the matrix. More...
 
int * getRowIndex () const
 Get the row indices of the non-zero entries of the matrix. More...
 
int * getColStart () const
 Get the column start indices. More...
 
ThisTypeoperator= (const Matrix &mat)
 
ThisTypeoperator= (const ThisType &mat)
 
void free ()
 Free allocated space. More...
 
virtual void setMatrix (const Matrix &mat)
 Initialize data from given matrix. More...
 

Detailed Description

template<class B>
class Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >

Converter for SparseRowMatrix to column-compressed matrix. Specialization for SparseRowMatrix.

Member Typedef Documentation

template<class B >
typedef Fem::SparseRowMatrix<B> Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::Matrix

The type of the matrix to convert.

template<class B >
typedef int Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::size_type

The type of the matrix converted.

Constructor & Destructor Documentation

template<class B >
Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::ColCompMatrix ( const Matrix mat)
inlineexplicit

Constructor that initializes the data.

Parameters
matThe matrix to convert.
template<class B >
Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::ColCompMatrix ( )
inline

Empty constructor.

template<class B >
virtual Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::~ColCompMatrix ( )
inlinevirtual

Destructor.

Member Function Documentation

template<class B >
void Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::free ( )
inline

Free allocated space.

template<class B >
int* Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::getColStart ( ) const
inline

Get the column start indices.

template<class B >
int* Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::getRowIndex ( ) const
inline

Get the row indices of the non-zero entries of the matrix.

template<class B >
B* Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::getValues ( ) const
inline

Get the non-zero entries of the matrix.

template<class B >
size_type Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::M ( ) const
inline

Get the number of columns.

template<class B >
size_type Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::N ( ) const
inline

Get the number of rows.

template<class B >
size_type Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::nnz ( ) const
inline

Get the number of non zero entries.

template<class B >
ThisType& Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::operator= ( const Matrix mat)
inline
template<class B >
ThisType& Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::operator= ( const ThisType mat)
inline
template<class B >
virtual void Dune::ColCompMatrix< Fem::SparseRowMatrix< B > >::setMatrix ( const Matrix mat)
inlinevirtual

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