Zoltan2
Public Member Functions | List of all members
Zoltan2::GraphPartitioningSolutionQuality< Adapter > Class Template Reference

#include <Zoltan2_PartitioningSolutionQuality.hpp>

Public Member Functions

 GraphPartitioningSolutionQuality (const RCP< const Environment > &env, const RCP< const Comm< int > > &problemComm, const RCP< const GraphModel< typename Adapter::base_adapter_t > > &graph, const RCP< const Adapter > &ia, const RCP< const PartitioningSolution< Adapter > > &soln)
 Constructor. More...
 
ArrayRCP< const GraphMetricValues< scalar_t > > getGraphMetrics () const
 Return the graph metric values. More...
 
void getWeightCut (scalar_t &cut, int idx=0) const
 Return the max cut for the requested weight. More...
 

Detailed Description

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

Definition at line 153 of file Zoltan2_PartitioningSolutionQuality.hpp.

Constructor & Destructor Documentation

template<typename Adapter >
Zoltan2::GraphPartitioningSolutionQuality< Adapter >::GraphPartitioningSolutionQuality ( const RCP< const Environment > &  env,
const RCP< const Comm< int > > &  problemComm,
const RCP< const GraphModel< typename Adapter::base_adapter_t > > &  graph,
const RCP< const Adapter > &  ia,
const RCP< const PartitioningSolution< Adapter > > &  soln 
)

Constructor.

Parameters
envthe problem environment
problemCommthe problem communicator
iathe problem input adapter
solnthe solution

The constructor does global communication to compute the metrics. The rest of the methods are local.

Definition at line 253 of file Zoltan2_PartitioningSolutionQuality.hpp.

Member Function Documentation

template<typename Adapter >
ArrayRCP<const GraphMetricValues<scalar_t> > Zoltan2::GraphPartitioningSolutionQuality< Adapter >::getGraphMetrics ( ) const
inline

Return the graph metric values.

Parameters
valueson return is the array of values.

Definition at line 189 of file Zoltan2_PartitioningSolutionQuality.hpp.

template<typename Adapter >
void Zoltan2::GraphPartitioningSolutionQuality< Adapter >::getWeightCut ( scalar_t &  cut,
int  idx = 0 
) const
inline

Return the max cut for the requested weight.

Parameters
cuton return is the requested value.
idxis the weight index reqested, ranging from zero to one less than the number of weights provided in the input. If there were no weights, this is the cut count.

Definition at line 200 of file Zoltan2_PartitioningSolutionQuality.hpp.


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