dune-istl  2.7.1
Public Types | Public Member Functions | Public Attributes | List of all members
Dune::SuperLUMatrix< BCRSMatrix< B, TA > > Class Template Reference

Converter for BCRSMatrix to SuperLU Matrix. More...

#include <dune/istl/supermatrix.hh>

Inheritance diagram for Dune::SuperLUMatrix< BCRSMatrix< B, TA > >:
Inheritance graph

Public Types

typedef BCRSMatrix< B, TA > Matrix
 The type of the matrix to convert. More...
 
typedef Matrix::size_type size_type
 
using Index = int
 

Public Member Functions

 SuperLUMatrix (const Matrix &mat)
 Constructor that initializes the data. More...
 
 SuperLUMatrix ()
 
virtual ~SuperLUMatrix ()
 Destructor. More...
 
 operator SuperMatrix & ()
 Cast to a SuperLU Matrix. More...
 
 operator const SuperMatrix & () const
 Cast to a SuperLU Matrix. More...
 
SuperLUMatrix< BCRSMatrix< B, TA > > & operator= (const BCRSMatrix< B, TA > &mat)
 
SuperLUMatrix< BCRSMatrix< B, TA > > & operator= (const SuperLUMatrix< BCRSMatrix< B, TA > > &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 setMatrix (const Matrix &mat)
 Initialize data from given matrix. More...
 
virtual void free ()
 free allocated space. 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
 
IndexgetRowIndex () const
 
IndexgetColStart () const
 

Public Attributes

size_type N_
 
size_type M_
 
size_type Nnz_
 
B * values
 
Indexrowindex
 
Indexcolstart
 

Detailed Description

template<class B, class TA>
class Dune::SuperLUMatrix< BCRSMatrix< B, TA > >

Converter for BCRSMatrix to SuperLU Matrix.

Member Typedef Documentation

◆ Index

using Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::Index = int
inherited

◆ Matrix

template<class B , class TA >
typedef BCRSMatrix<B,TA> Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::Matrix

The type of the matrix to convert.

◆ size_type

template<class B , class TA >
typedef Matrix::size_type Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::size_type

Constructor & Destructor Documentation

◆ SuperLUMatrix() [1/2]

template<class B , class TA >
Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::SuperLUMatrix ( const Matrix mat)
inlineexplicit

Constructor that initializes the data.

Parameters
matThe matrix to convert.

◆ SuperLUMatrix() [2/2]

template<class B , class TA >
Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::SuperLUMatrix ( )
inline

◆ ~SuperLUMatrix()

template<class B , class TA >
virtual Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::~SuperLUMatrix ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ free()

template<class B , class TA >
virtual void Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::free ( )
inlinevirtual

free allocated space.

Reimplemented from Dune::ColCompMatrix< BCRSMatrix< B, TA > >.

◆ getColStart()

Index* Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::getColStart ( ) const
inlineinherited

◆ getRowIndex()

Index* Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::getRowIndex ( ) const
inlineinherited

◆ getValues()

B* Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::getValues ( ) const
inlineinherited

◆ M()

size_type Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::M ( ) const
inlineinherited

Get the number of columns.

Returns
The number of columns.

◆ N()

size_type Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::N ( ) const
inlineinherited

Get the number of rows.

Returns
The number of rows.

◆ nnz()

size_type Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::nnz ( ) const
inlineinherited

◆ operator const SuperMatrix &()

template<class B , class TA >
Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::operator const SuperMatrix & ( ) const
inline

Cast to a SuperLU Matrix.

◆ operator SuperMatrix &()

template<class B , class TA >
Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::operator SuperMatrix & ( )
inline

Cast to a SuperLU Matrix.

◆ operator=() [1/2]

template<class B , class TA >
SuperLUMatrix<BCRSMatrix<B,TA> >& Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::operator= ( const BCRSMatrix< B, TA > &  mat)
inline

◆ operator=() [2/2]

template<class B , class TA >
SuperLUMatrix<BCRSMatrix<B,TA> >& Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::operator= ( const SuperLUMatrix< BCRSMatrix< B, TA > > &  mat)
inline

◆ setMatrix() [1/2]

template<class B , class TA >
virtual void Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::setMatrix ( const Matrix mat)
inlinevirtual

Initialize data from given matrix.

Reimplemented from Dune::ColCompMatrix< BCRSMatrix< B, TA > >.

◆ setMatrix() [2/2]

template<class B , class TA >
virtual void Dune::SuperLUMatrix< BCRSMatrix< B, TA > >::setMatrix ( const Matrix mat,
const std::set< std::size_t > &  mrs 
)
inlinevirtual

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 from Dune::ColCompMatrix< BCRSMatrix< B, TA > >.

Member Data Documentation

◆ colstart

Index* Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::colstart
inherited

◆ M_

size_type Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::M_
inherited

◆ N_

size_type Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::N_
inherited

◆ Nnz_

size_type Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::Nnz_
inherited

◆ rowindex

Index* Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::rowindex
inherited

◆ values

B* Dune::ColCompMatrix< BCRSMatrix< B, TA > , int >::values
inherited

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