dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex > Class Template Reference

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

#include <dune/fem/operator/matrix/colcompspmatrix.hh>

Public Types

typedef ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector > > ThisType
 The type of the matrix converted.
 
typedef Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector > Matrix
 The type of the matrix to convert.
 
typedef Matrix::size_type size_type
 
typedef RowIndex RowIndexType
 

Public Member Functions

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

Detailed Description

template<class T, class IndexT, class ValuesVector, class IndicesVector, class RowIndex>
class Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >

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

Member Typedef Documentation

◆ Matrix

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
typedef Fem::SparseRowMatrix<T,IndexT,ValuesVector,IndicesVector> Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::Matrix

The type of the matrix to convert.

◆ RowIndexType

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
typedef RowIndex Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::RowIndexType

◆ size_type

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
typedef Matrix::size_type Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::size_type

◆ ThisType

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
typedef ColCompMatrix< Fem::SparseRowMatrix<T,IndexT,ValuesVector,IndicesVector> > Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::ThisType

The type of the matrix converted.

Constructor & Destructor Documentation

◆ ColCompMatrix() [1/2]

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::ColCompMatrix ( const Matrix mat)
inlineexplicit

Constructor that initializes the data.

Parameters
matThe matrix to convert.

◆ ColCompMatrix() [2/2]

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::ColCompMatrix ( )
inline

Empty constructor.

◆ ~ColCompMatrix()

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
virtual Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::~ColCompMatrix ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ free()

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
void Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::free ( )
inline

Free allocated space.

◆ getColStart()

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
RowIndexType * Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::getColStart ( ) const
inline

Get the column start indices.

◆ getRowIndex()

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
RowIndexType * Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::getRowIndex ( ) const
inline

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

◆ getValues()

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
T * Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::getValues ( ) const
inline

Get the non-zero entries of the matrix.

◆ M()

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
size_type Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::M ( ) const
inline

Get the number of columns.

◆ N()

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
size_type Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::N ( ) const
inline

Get the number of rows.

◆ nnz()

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
size_type Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::nnz ( ) const
inline

Get the number of non zero entries.

◆ operator=() [1/2]

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
ThisType & Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::operator= ( const Matrix mat)
inline

◆ operator=() [2/2]

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
ThisType & Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::operator= ( const ThisType mat)
inline

◆ setMatrix()

template<class T , class IndexT , class ValuesVector , class IndicesVector , class RowIndex >
virtual void Dune::ColCompMatrix< Fem::SparseRowMatrix< T, IndexT, ValuesVector, IndicesVector >, RowIndex >::setMatrix ( const Matrix mat)
inlinevirtual

Initialize data from given matrix.


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