dune-istl  2.3.0
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > > Class Template Reference

Converter for BCRSMatrix to column-compressed Matrix. specialization for BCRSMatrix. More...

#include <dune/istl/colcompmatrix.hh>

Inheritance diagram for Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >:
Dune::SuperLUMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >

Public Types

typedef BCRSMatrix
< FieldMatrix< B, n, m >, TA > 
Matrix
 The type of the matrix to convert. More...
 
typedef Matrix::size_type size_type
 

Public Member Functions

 ColCompMatrix (const Matrix &mat)
 Constructor that initializes the data. More...
 
 ColCompMatrix ()
 
virtual ~ColCompMatrix ()
 Destructor. More...
 
size_type N () const
 Get the number of rows. More...
 
size_type nnz () const
 
size_type M () const
 Get the number of columns. More...
 
B * getValues () const
 
int * getRowIndex () const
 
int * getColStart () const
 
ColCompMatrixoperator= (const Matrix &mat)
 
ColCompMatrixoperator= (const ColCompMatrix &mat)
 
virtual void setMatrix (const Matrix &mat, const std::set< std::size_t > &mrs)
 Initialize data from a given set of matrix rows and columns. More...
 
virtual void free ()
 free allocated space. More...
 
virtual void setMatrix (const Matrix &mat)
 Initialize data from given matrix. More...
 

Public Attributes

int N_
 
int M_
 
int Nnz_
 
B * values
 
int * rowindex
 
int * colstart
 

Friends

template<class M , class X , class TM , class TD , class T1 >
class SeqOverlappingSchwarz
 
struct ColCompMatrixInitializer< BCRSMatrix< FieldMatrix< B, n, m >, TA > >
 
struct SeqOverlappingSchwarzAssembler< ColCompMatrix< Matrix > >
 

Detailed Description

template<class B, class TA, int n, int m>
class Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >

Converter for BCRSMatrix to column-compressed Matrix. specialization for BCRSMatrix.

Member Typedef Documentation

template<class B , class TA , int n, int m>
typedef BCRSMatrix<FieldMatrix<B,n,m>,TA> Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::Matrix

The type of the matrix to convert.

template<class B , class TA , int n, int m>
typedef Matrix::size_type Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::size_type

Constructor & Destructor Documentation

template<class B , class TA , int n, int m>
Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::ColCompMatrix ( const Matrix mat)
explicit

Constructor that initializes the data.

Parameters
matThe matrix to convert.
template<class B , class TA , int n, int m>
Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::ColCompMatrix ( )
template<class B , class TA , int n, int m>
virtual Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::~ColCompMatrix ( )
virtual

Destructor.

Member Function Documentation

template<class B , class TA , int n, int m>
virtual void Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::free ( )
virtual

free allocated space.

Reimplemented in Dune::SuperLUMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >.

template<class B , class TA , int n, int m>
int* Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::getColStart ( ) const
inline
template<class B , class TA , int n, int m>
int* Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::getRowIndex ( ) const
inline
template<class B , class TA , int n, int m>
B* Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::getValues ( ) const
inline
template<class B , class TA , int n, int m>
size_type Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::M ( ) const
inline

Get the number of columns.

Returns
The number of columns.
template<class B , class TA , int n, int m>
size_type Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::N ( ) const
inline

Get the number of rows.

Returns
The number of rows.
template<class B , class TA , int n, int m>
size_type Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::nnz ( ) const
inline
template<class B , class TA , int n, int m>
ColCompMatrix& Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::operator= ( const Matrix mat)
template<class B , class TA , int n, int m>
ColCompMatrix& Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::operator= ( const ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > > &  mat)
template<class B , class TA , int n, int m>
virtual void Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::setMatrix ( const Matrix mat,
const std::set< std::size_t > &  mrs 
)
virtual

Initialize data from a given set of matrix rows and columns.

Template Parameters
Thetype of the row index set.
Parameters
matthe matrix with the values
mrsThe set of row (and column) indices to represent

Reimplemented in Dune::SuperLUMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >.

template<class B , class TA , int n, int m>
virtual void Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::setMatrix ( const Matrix mat)
virtual

Initialize data from given matrix.

Reimplemented in Dune::SuperLUMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >.

Friends And Related Function Documentation

template<class B , class TA , int n, int m>
friend struct ColCompMatrixInitializer< BCRSMatrix< FieldMatrix< B, n, m >, TA > >
friend
template<class B , class TA , int n, int m>
template<class M , class X , class TM , class TD , class T1 >
friend class SeqOverlappingSchwarz
friend
template<class B , class TA , int n, int m>
friend struct SeqOverlappingSchwarzAssembler< ColCompMatrix< Matrix > >
friend

Member Data Documentation

template<class B , class TA , int n, int m>
int* Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::colstart
template<class B , class TA , int n, int m>
int Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::M_
template<class B , class TA , int n, int m>
int Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::N_
template<class B , class TA , int n, int m>
int Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::Nnz_
template<class B , class TA , int n, int m>
int* Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::rowindex
template<class B , class TA , int n, int m>
B* Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::values

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