Zoltan2
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
Zoltan2::TpetraCrsColorer< CrsMatrixType > Class Template Reference

#include <Zoltan2_TpetraCrsColorer.hpp>

Public Types

typedef CrsMatrixType matrix_t
 
typedef matrix_t::crs_graph_type graph_t
 
typedef matrix_t::scalar_type scalar_t
 
typedef matrix_t::local_ordinal_type lno_t
 
typedef matrix_t::global_ordinal_type gno_t
 
typedef matrix_t::node_type node_t
 
typedef node_t::device_type device_t
 
typedef device_t::execution_space execution_space
 
typedef Kokkos::View< int *, device_tlist_of_colors_t
 
typedef list_of_colors_t::HostMirror list_of_colors_host_t
 

Public Member Functions

 TpetraCrsColorer (const Teuchos::RCP< matrix_t > &matrix_)
 
 ~TpetraCrsColorer ()
 
void computeColoring (Teuchos::ParameterList &coloring_params)
 
template<typename MultiVectorType >
void computeSeedMatrix (MultiVectorType &V, const int color_beg=0) const
 
template<typename MultiVectorType >
void computeSeedMatrixFitted (MultiVectorType &V, const int color_beg=0) const
 
template<typename MultiVectorType >
void reconstructMatrix (MultiVectorType &W, const int color_beg=0) const
 
template<typename MultiVectorType >
void reconstructMatrix (MultiVectorType &W, matrix_t &mat, const int color_beg=0) const
 
template<typename MultiVectorType >
void reconstructMatrixFitted (MultiVectorType &W, const int color_beg=0) const
 
template<typename MultiVectorType >
void reconstructMatrixFitted (MultiVectorType &W, matrix_t &mat, const int color_beg=0) const
 
int getNumColors () const
 
int getColor (const size_t col) const
 
bool checkColoring () const
 

Protected Attributes

Teuchos::RCP< matrix_tmatrix
 
Teuchos::RCP< const graph_tgraph
 
list_of_colors_t list_of_colors
 
list_of_colors_host_t list_of_colors_host
 
int num_colors
 

Detailed Description

template<typename CrsMatrixType>
class Zoltan2::TpetraCrsColorer< CrsMatrixType >

Definition at line 25 of file Zoltan2_TpetraCrsColorer.hpp.

Member Typedef Documentation

◆ matrix_t

template<typename CrsMatrixType >
typedef CrsMatrixType Zoltan2::TpetraCrsColorer< CrsMatrixType >::matrix_t

Definition at line 28 of file Zoltan2_TpetraCrsColorer.hpp.

◆ graph_t

template<typename CrsMatrixType >
typedef matrix_t::crs_graph_type Zoltan2::TpetraCrsColorer< CrsMatrixType >::graph_t

Definition at line 29 of file Zoltan2_TpetraCrsColorer.hpp.

◆ scalar_t

template<typename CrsMatrixType >
typedef matrix_t::scalar_type Zoltan2::TpetraCrsColorer< CrsMatrixType >::scalar_t

Definition at line 30 of file Zoltan2_TpetraCrsColorer.hpp.

◆ lno_t

template<typename CrsMatrixType >
typedef matrix_t::local_ordinal_type Zoltan2::TpetraCrsColorer< CrsMatrixType >::lno_t

Definition at line 31 of file Zoltan2_TpetraCrsColorer.hpp.

◆ gno_t

template<typename CrsMatrixType >
typedef matrix_t::global_ordinal_type Zoltan2::TpetraCrsColorer< CrsMatrixType >::gno_t

Definition at line 32 of file Zoltan2_TpetraCrsColorer.hpp.

◆ node_t

template<typename CrsMatrixType >
typedef matrix_t::node_type Zoltan2::TpetraCrsColorer< CrsMatrixType >::node_t

Definition at line 33 of file Zoltan2_TpetraCrsColorer.hpp.

◆ device_t

template<typename CrsMatrixType >
typedef node_t::device_type Zoltan2::TpetraCrsColorer< CrsMatrixType >::device_t

Definition at line 34 of file Zoltan2_TpetraCrsColorer.hpp.

◆ execution_space

template<typename CrsMatrixType >
typedef device_t::execution_space Zoltan2::TpetraCrsColorer< CrsMatrixType >::execution_space

Definition at line 35 of file Zoltan2_TpetraCrsColorer.hpp.

◆ list_of_colors_t

template<typename CrsMatrixType >
typedef Kokkos::View<int *, device_t> Zoltan2::TpetraCrsColorer< CrsMatrixType >::list_of_colors_t

Definition at line 36 of file Zoltan2_TpetraCrsColorer.hpp.

◆ list_of_colors_host_t

template<typename CrsMatrixType >
typedef list_of_colors_t::HostMirror Zoltan2::TpetraCrsColorer< CrsMatrixType >::list_of_colors_host_t

Definition at line 37 of file Zoltan2_TpetraCrsColorer.hpp.

Constructor & Destructor Documentation

◆ TpetraCrsColorer()

template<typename CrsMatrixType >
Zoltan2::TpetraCrsColorer< CrsMatrixType >::TpetraCrsColorer ( const Teuchos::RCP< matrix_t > &  matrix_)

Definition at line 192 of file Zoltan2_TpetraCrsColorer.hpp.

◆ ~TpetraCrsColorer()

template<typename CrsMatrixType >
Zoltan2::TpetraCrsColorer< CrsMatrixType >::~TpetraCrsColorer ( )
inline

Definition at line 43 of file Zoltan2_TpetraCrsColorer.hpp.

Member Function Documentation

◆ computeColoring()

template<typename CrsMatrixType >
void Zoltan2::TpetraCrsColorer< CrsMatrixType >::computeColoring ( Teuchos::ParameterList &  coloring_params)

Definition at line 207 of file Zoltan2_TpetraCrsColorer.hpp.

◆ computeSeedMatrix()

template<typename CrsMatrixType >
template<typename MultiVectorType >
void Zoltan2::TpetraCrsColorer< CrsMatrixType >::computeSeedMatrix ( MultiVectorType &  V,
const int  color_beg = 0 
) const

Definition at line 231 of file Zoltan2_TpetraCrsColorer.hpp.

◆ computeSeedMatrixFitted()

template<typename CrsMatrixType >
template<typename MultiVectorType >
void Zoltan2::TpetraCrsColorer< CrsMatrixType >::computeSeedMatrixFitted ( MultiVectorType &  V,
const int  color_beg = 0 
) const

Definition at line 248 of file Zoltan2_TpetraCrsColorer.hpp.

◆ reconstructMatrix() [1/2]

template<typename CrsMatrixType >
template<typename MultiVectorType >
void Zoltan2::TpetraCrsColorer< CrsMatrixType >::reconstructMatrix ( MultiVectorType &  W,
const int  color_beg = 0 
) const

Definition at line 278 of file Zoltan2_TpetraCrsColorer.hpp.

◆ reconstructMatrix() [2/2]

template<typename CrsMatrixType >
template<typename MultiVectorType >
void Zoltan2::TpetraCrsColorer< CrsMatrixType >::reconstructMatrix ( MultiVectorType &  W,
matrix_t mat,
const int  color_beg = 0 
) const

Definition at line 288 of file Zoltan2_TpetraCrsColorer.hpp.

◆ reconstructMatrixFitted() [1/2]

template<typename CrsMatrixType >
template<typename MultiVectorType >
void Zoltan2::TpetraCrsColorer< CrsMatrixType >::reconstructMatrixFitted ( MultiVectorType &  W,
const int  color_beg = 0 
) const

Definition at line 307 of file Zoltan2_TpetraCrsColorer.hpp.

◆ reconstructMatrixFitted() [2/2]

template<typename CrsMatrixType >
template<typename MultiVectorType >
void Zoltan2::TpetraCrsColorer< CrsMatrixType >::reconstructMatrixFitted ( MultiVectorType &  W,
matrix_t mat,
const int  color_beg = 0 
) const

Definition at line 317 of file Zoltan2_TpetraCrsColorer.hpp.

◆ getNumColors()

template<typename CrsMatrixType >
int Zoltan2::TpetraCrsColorer< CrsMatrixType >::getNumColors ( ) const
inline

Definition at line 79 of file Zoltan2_TpetraCrsColorer.hpp.

◆ getColor()

template<typename CrsMatrixType >
int Zoltan2::TpetraCrsColorer< CrsMatrixType >::getColor ( const size_t  col) const
inline

Definition at line 86 of file Zoltan2_TpetraCrsColorer.hpp.

◆ checkColoring()

template<typename CrsMatrixType >
bool Zoltan2::TpetraCrsColorer< CrsMatrixType >::checkColoring ( ) const
inline

Definition at line 94 of file Zoltan2_TpetraCrsColorer.hpp.

Member Data Documentation

◆ matrix

template<typename CrsMatrixType >
Teuchos::RCP<matrix_t> Zoltan2::TpetraCrsColorer< CrsMatrixType >::matrix
protected

Definition at line 100 of file Zoltan2_TpetraCrsColorer.hpp.

◆ graph

template<typename CrsMatrixType >
Teuchos::RCP<const graph_t> Zoltan2::TpetraCrsColorer< CrsMatrixType >::graph
protected

Definition at line 101 of file Zoltan2_TpetraCrsColorer.hpp.

◆ list_of_colors

template<typename CrsMatrixType >
list_of_colors_t Zoltan2::TpetraCrsColorer< CrsMatrixType >::list_of_colors
protected

Definition at line 102 of file Zoltan2_TpetraCrsColorer.hpp.

◆ list_of_colors_host

template<typename CrsMatrixType >
list_of_colors_host_t Zoltan2::TpetraCrsColorer< CrsMatrixType >::list_of_colors_host
protected

Definition at line 103 of file Zoltan2_TpetraCrsColorer.hpp.

◆ num_colors

template<typename CrsMatrixType >
int Zoltan2::TpetraCrsColorer< CrsMatrixType >::num_colors
protected

Definition at line 104 of file Zoltan2_TpetraCrsColorer.hpp.


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