Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
Zoltan2::EvaluateOrdering< Adapter > Class Template Reference

A class that computes and returns quality metrics. base class for the local and global ordering versions. More...

#include <Zoltan2_EvaluateOrdering.hpp>

Inheritance diagram for Zoltan2::EvaluateOrdering< Adapter >:
Inheritance graph
[legend]
Collaboration diagram for Zoltan2::EvaluateOrdering< Adapter >:
Collaboration graph
[legend]

Public Member Functions

 EvaluateOrdering (const Adapter *ia, ParameterList *p, const LocalOrderingSolution< lno_t > *localSoln, const GlobalOrderingSolution< gno_t > *globalSoln)
 Constructor where communicator is Teuchos default. More...
 
 EvaluateOrdering (const Adapter *ia, ParameterList *p, const RCP< const Comm< int > > &problemComm, const LocalOrderingSolution< lno_t > *localSoln, const GlobalOrderingSolution< gno_t > *globalSoln)
 Constructor where Teuchos communicator is specified. More...
 
lno_t getBandwidth () const
 
lno_t getEnvelope () const
 
lno_t getSeparatorSize () const
 
virtual void printMetrics (std::ostream &os) const
 Print all metrics of type metricType based on the metric object type Note that parent class currently suppresses this if the list is empty. More...
 
void localOrderingMetrics (const RCP< const Environment > &env, const RCP< const Comm< int > > &comm, const Adapter *ia, const LocalOrderingSolution< typename Adapter::lno_t > *localSoln)
 
- Public Member Functions inherited from Zoltan2::EvaluateBaseClassRoot
virtual ~EvaluateBaseClassRoot ()
 

Detailed Description

template<typename Adapter>
class Zoltan2::EvaluateOrdering< Adapter >

A class that computes and returns quality metrics. base class for the local and global ordering versions.

Definition at line 26 of file Zoltan2_EvaluateOrdering.hpp.

Constructor & Destructor Documentation

template<typename Adapter >
Zoltan2::EvaluateOrdering< Adapter >::EvaluateOrdering ( const Adapter *  ia,
ParameterList *  p,
const LocalOrderingSolution< lno_t > *  localSoln,
const GlobalOrderingSolution< gno_t > *  globalSoln 
)
inline

Constructor where communicator is Teuchos default.

Parameters
iathe problem input adapter
pthe parameter list
localSolnthe local solution
globalSolnthe global solution The constructor does global communication to compute the metrics. The rest of the methods are local.

Definition at line 60 of file Zoltan2_EvaluateOrdering.hpp.

template<typename Adapter >
Zoltan2::EvaluateOrdering< Adapter >::EvaluateOrdering ( const Adapter *  ia,
ParameterList *  p,
const RCP< const Comm< int > > &  problemComm,
const LocalOrderingSolution< lno_t > *  localSoln,
const GlobalOrderingSolution< gno_t > *  globalSoln 
)
inline

Constructor where Teuchos communicator is specified.

Parameters
iathe problem input adapter
pthe parameter list
problemCommthe problem communicator
localSolnthe local solution
globalSolnthe global solution The constructor does global communication to compute the metrics. The rest of the methods are local.

Definition at line 79 of file Zoltan2_EvaluateOrdering.hpp.

Member Function Documentation

template<typename Adapter >
lno_t Zoltan2::EvaluateOrdering< Adapter >::getBandwidth ( ) const
inline

Definition at line 114 of file Zoltan2_EvaluateOrdering.hpp.

template<typename Adapter >
lno_t Zoltan2::EvaluateOrdering< Adapter >::getEnvelope ( ) const
inline

Definition at line 115 of file Zoltan2_EvaluateOrdering.hpp.

template<typename Adapter >
lno_t Zoltan2::EvaluateOrdering< Adapter >::getSeparatorSize ( ) const
inline

Definition at line 116 of file Zoltan2_EvaluateOrdering.hpp.

template<typename Adapter >
virtual void Zoltan2::EvaluateOrdering< Adapter >::printMetrics ( std::ostream &  os) const
inlinevirtual

Print all metrics of type metricType based on the metric object type Note that parent class currently suppresses this if the list is empty.

Reimplemented from Zoltan2::EvaluateBaseClassRoot.

Definition at line 121 of file Zoltan2_EvaluateOrdering.hpp.

template<typename Adapter >
void Zoltan2::EvaluateOrdering< Adapter >::localOrderingMetrics ( const RCP< const Environment > &  env,
const RCP< const Comm< int > > &  comm,
const Adapter *  ia,
const LocalOrderingSolution< typename Adapter::lno_t > *  localSoln 
)
inline

Definition at line 132 of file Zoltan2_EvaluateOrdering.hpp.


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