Dune Core Modules (2.6.0)

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>

Public Types

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

Public Member Functions

 ColCompMatrix (const Matrix &mat)
 Constructor that initializes the data. More...
 
virtual ~ColCompMatrix ()
 Destructor.
 
size_type N () const
 Get the number of rows. More...
 
size_type M () const
 Get the number of columns. More...
 
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.
 
virtual void setMatrix (const Matrix &mat)
 Initialize data from given 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.

Constructor & Destructor Documentation

◆ ColCompMatrix()

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.

Member Function Documentation

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

◆ setMatrix()

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


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 26, 22:29, 2024)