dune-istl 3.0-git
Public Types | Public Member Functions | Public Attributes | 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 > >:
Inheritance graph

Public Types

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

Public Member Functions

 ColCompMatrix (const Matrix &mat)
 Constructor that initializes the data.
 
 ColCompMatrix ()
 
virtual ~ColCompMatrix ()
 Destructor.
 
size_type N () const
 Get the number of rows.
 
size_type nnz () const
 
size_type M () const
 Get the number of columns.
 
B * getValues () const
 
intgetRowIndex () const
 
intgetColStart () 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.
 
virtual void free ()
 free allocated space.
 
virtual void setMatrix (const Matrix &mat)
 Initialize data from given matrix.
 

Public Attributes

int N_
 
int M_
 
int Nnz_
 
B * values
 
introwindex
 
intcolstart
 

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

◆ Matrix

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.

◆ size_type

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

◆ ColCompMatrix() [1/2]

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.

◆ ColCompMatrix() [2/2]

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

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

◆ free()

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

◆ getColStart()

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

◆ getRowIndex()

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

◆ getValues()

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

◆ M()

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.

◆ N()

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.

◆ nnz()

template<class B , class TA , int n, int m>
size_type Dune::ColCompMatrix< BCRSMatrix< FieldMatrix< B, n, m >, TA > >::nnz ( ) const
inline

◆ operator=() [1/2]

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)

◆ operator=() [2/2]

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

◆ setMatrix() [1/2]

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

◆ setMatrix() [2/2]

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.

Parameters
matthe matrix with the values
mrsThe set of row (and column) indices to remove

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

Member Data Documentation

◆ colstart

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

◆ M_

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

◆ N_

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

◆ Nnz_

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

◆ rowindex

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

◆ values

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: