Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Typedefs | Functions
Metric.cpp File Reference
#include <Zoltan2_EvaluatePartition.hpp>
#include <Zoltan2_TestHelpers.hpp>
#include <Zoltan2_BasicIdentifierAdapter.hpp>
#include <Zoltan2_XpetraCrsGraphAdapter.hpp>
#include <stdlib.h>
#include <vector>
Include dependency graph for Metric.cpp:

Go to the source code of this file.

Typedefs

typedef
Zoltan2::BasicUserTypes
< zscalar_t, zlno_t, zgno_t
user_t
 
typedef
Zoltan2::BasicIdentifierAdapter
< user_t
basic_idInput_t
 
typedef Tpetra::CrsGraph
< zlno_t, zgno_t, znode_t
tcrsGraph_t
 
typedef
Zoltan2::XpetraCrsGraphAdapter
< tcrsGraph_t, user_t
graph_idInput_t
 

Functions

template<class idInput_t >
void doTest (RCP< const Comm< int > > comm, int numLocalObj, int nWeights, int numLocalParts, bool givePartSizes)
 
template<class idInput_t >
void runTestSuite (RCP< const Comm< int > > comm)
 
int main (int narg, char *arg[])
 
template<class idInput_t >
void evaluate_imbalance_results (RCP< const Comm< int > > comm, RCP< Zoltan2::EvaluatePartition< idInput_t >> metricObject, int numLocalObj, int nWeights, int original_numLocalParts, bool givePartSizes)
 
template<class idInput_t >
void evaluate_adapter_results (RCP< const Comm< int > > comm, RCP< Zoltan2::EvaluatePartition< idInput_t >> metricObject, int numLocalObj, int nWeights, int original_numLocalParts, bool givePartSizes)
 
template<>
void evaluate_adapter_results< graph_idInput_t > (RCP< const Comm< int > > comm, RCP< Zoltan2::EvaluatePartition< graph_idInput_t >> metricObject, int numLocalObj, int nWeights, int original_numLocalParts, bool givePartSizes)
 
template<>
void evaluate_adapter_results< basic_idInput_t > (RCP< const Comm< int > > comm, RCP< Zoltan2::EvaluatePartition< basic_idInput_t >> metricObject, int numLocalObj, int nWeights, int original_numLocalParts, bool givePartSizes)
 
template<class idInput_t >
idInput_tcreate_adapter (RCP< const Comm< int > > comm, int numLocalObj, zgno_t *myGids, std::vector< const zscalar_t * > &weights, std::vector< int > &strides)
 
template<>
graph_idInput_tcreate_adapter< graph_idInput_t > (RCP< const Comm< int > > comm, int numLocalObj, zgno_t *myGids, std::vector< const zscalar_t * > &weights, std::vector< int > &strides)
 
template<>
basic_idInput_tcreate_adapter< basic_idInput_t > (RCP< const Comm< int > > comm, int numLocalObj, zgno_t *myGids, std::vector< const zscalar_t * > &weights, std::vector< int > &strides)
 

Typedef Documentation

Definition at line 74 of file Metric.cpp.

Definition at line 77 of file Metric.cpp.

typedef Tpetra::CrsGraph<zlno_t, zgno_t, znode_t> tcrsGraph_t

Definition at line 80 of file Metric.cpp.

Definition at line 81 of file Metric.cpp.

Function Documentation

template<class idInput_t >
void doTest ( RCP< const Comm< int > >  comm,
int  numLocalObj,
int  nWeights,
int  numLocalParts,
bool  givePartSizes 
)

Definition at line 359 of file Metric.cpp.

template<class idInput_t >
void runTestSuite ( RCP< const Comm< int > >  comm)

Definition at line 85 of file Metric.cpp.

int main ( int  narg,
char *  arg[] 
)

Definition at line 100 of file Metric.cpp.

template<class idInput_t >
void evaluate_imbalance_results ( RCP< const Comm< int > >  comm,
RCP< Zoltan2::EvaluatePartition< idInput_t >>  metricObject,
int  numLocalObj,
int  nWeights,
int  original_numLocalParts,
bool  givePartSizes 
)

Definition at line 127 of file Metric.cpp.

template<class idInput_t >
void evaluate_adapter_results ( RCP< const Comm< int > >  comm,
RCP< Zoltan2::EvaluatePartition< idInput_t >>  metricObject,
int  numLocalObj,
int  nWeights,
int  original_numLocalParts,
bool  givePartSizes 
)

Definition at line 173 of file Metric.cpp.

template<>
void evaluate_adapter_results< graph_idInput_t > ( RCP< const Comm< int > >  comm,
RCP< Zoltan2::EvaluatePartition< graph_idInput_t >>  metricObject,
int  numLocalObj,
int  nWeights,
int  original_numLocalParts,
bool  givePartSizes 
)

Definition at line 180 of file Metric.cpp.

template<>
void evaluate_adapter_results< basic_idInput_t > ( RCP< const Comm< int > >  comm,
RCP< Zoltan2::EvaluatePartition< basic_idInput_t >>  metricObject,
int  numLocalObj,
int  nWeights,
int  original_numLocalParts,
bool  givePartSizes 
)

Definition at line 282 of file Metric.cpp.

template<class idInput_t >
idInput_t* create_adapter ( RCP< const Comm< int > >  comm,
int  numLocalObj,
zgno_t myGids,
std::vector< const zscalar_t * > &  weights,
std::vector< int > &  strides 
)

Definition at line 290 of file Metric.cpp.

template<>
graph_idInput_t* create_adapter< graph_idInput_t > ( RCP< const Comm< int > >  comm,
int  numLocalObj,
zgno_t myGids,
std::vector< const zscalar_t * > &  weights,
std::vector< int > &  strides 
)

Definition at line 298 of file Metric.cpp.

template<>
basic_idInput_t* create_adapter< basic_idInput_t > ( RCP< const Comm< int > >  comm,
int  numLocalObj,
zgno_t myGids,
std::vector< const zscalar_t * > &  weights,
std::vector< int > &  strides 
)

Definition at line 350 of file Metric.cpp.