Dune::CommMatrixSparsityPattern< M, I > Struct Template Reference

Utility class to communicate and build the sparsity pattern of a redistributed matrix. More...

#include <dune/istl/matrixredistribute.hh>

List of all members.

Public Types

typedef M::size_type size_type
typedef
Dune::GlobalLookupIndexSet< I > 
LookupIndexSet

Public Member Functions

 CommMatrixSparsityPattern (M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_)
 Constructor for the original side.
 CommMatrixSparsityPattern (M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_, const std::vector< typename M::size_type > &rowsize_)
 Constructor for the redistruted side.
void storeSparsityPattern (M &m)
 Creates ans stores the sparsity pattern of the redistributed matrix.

Public Attributes

M & matrix
const
Dune::GlobalLookupIndexSet< I > & 
idxset
const I & aggidxset
std::vector< std::set
< size_type > > 
sparsity
const std::vector< size_type > * rowsize

Detailed Description

template<class M, class I>
struct Dune::CommMatrixSparsityPattern< M, I >

Utility class to communicate and build the sparsity pattern of a redistributed matrix.

Template Parameters:
M The type of the matrix that the sparsity pattern is communicated of.
I The type of the index set.

Member Typedef Documentation

template<class M , class I >
typedef Dune::GlobalLookupIndexSet<I> Dune::CommMatrixSparsityPattern< M, I >::LookupIndexSet
template<class M , class I >
typedef M::size_type Dune::CommMatrixSparsityPattern< M, I >::size_type

Constructor & Destructor Documentation

template<class M , class I >
Dune::CommMatrixSparsityPattern< M, I >::CommMatrixSparsityPattern ( M &  m_,
const Dune::GlobalLookupIndexSet< I > &  idxset_,
const I &  aggidxset_ 
) [inline]

Constructor for the original side.

Parameters:
m_ The matrix whose sparsity pattern is communicated.
idxset_ The index set corresponding to the local matrix.
aggidxset_ The index set corresponding to the redistributed matrix.
template<class M , class I >
Dune::CommMatrixSparsityPattern< M, I >::CommMatrixSparsityPattern ( M &  m_,
const Dune::GlobalLookupIndexSet< I > &  idxset_,
const I &  aggidxset_,
const std::vector< typename M::size_type > &  rowsize_ 
) [inline]

Constructor for the redistruted side.

Parameters:
m_ The matrix whose sparsity pattern is communicated.
idxset_ The index set corresponding to the local matrix.
aggidxset_ The index set corresponding to the redistributed matrix.
rowsize_ The row size for the redistributed owner rows.

Member Function Documentation

template<class M , class I >
void Dune::CommMatrixSparsityPattern< M, I >::storeSparsityPattern ( M &  m  )  [inline]

Creates ans stores the sparsity pattern of the redistributed matrix.

After the pattern is communicated this function can be used.

Parameters:
m The matrix to build.

References Dune::CommMatrixSparsityPattern< M, I >::aggidxset, Dune::GlobalLookupIndexSet< I >::pair(), and Dune::CommMatrixSparsityPattern< M, I >::sparsity.


Member Data Documentation

template<class M , class I >
const I& Dune::CommMatrixSparsityPattern< M, I >::aggidxset
template<class M , class I >
const Dune::GlobalLookupIndexSet<I>& Dune::CommMatrixSparsityPattern< M, I >::idxset
template<class M , class I >
M& Dune::CommMatrixSparsityPattern< M, I >::matrix
template<class M , class I >
const std::vector<size_type>* Dune::CommMatrixSparsityPattern< M, I >::rowsize
template<class M , class I >
std::vector<std::set<size_type> > Dune::CommMatrixSparsityPattern< M, I >::sparsity

The documentation for this struct was generated from the following file:
Generated on Sat Apr 24 11:13:49 2010 for dune-istl by  doxygen 1.6.3