40#ifndef _ispatest_lbeval_utils_hpp_
41#define _ispatest_lbeval_utils_hpp_
48#include <Epetra_CrsGraph.h>
49#include <Epetra_CrsMatrix.h>
50#include <Epetra_Vector.h>
51#include <Epetra_LinearProblem.h>
99 double &min,
double &max,
double &avg);
108 double &myGoalWeight,
109 double &balance,
double &cutn,
double &cutl);
118 double &myGoalWeight,
119 double &balance,
double &cutn,
double &cutl);
138 double &myGoalWeight,
139 double &balance,
int &numCuts,
double &cutWgt,
double &cutn,
double &cutl);
158 double &myGoalWeight,
159 double &balance,
int &numCuts,
double &cutWgt,
double &cutn,
double &cutl);
165void show_matrix(
const char *txt,
const Epetra_RowMatrix &matrix,
const Epetra_Comm &comm);
171void show_matrix(
const char *txt,
const Epetra_CrsGraph &graph,
const Epetra_Comm &comm);
177void show_matrix(
const char *txt,
const Epetra_LinearProblem &problem,
const Epetra_Comm &comm);
Definition: Isorropia_EpetraCostDescriber.hpp:128
ispatest is the namespace that contains isorropia's test-utilities.
Definition: ispatest_epetra_utils.hpp:59
int compute_hypergraph_metrics(const Epetra_CrsGraph &graph, Isorropia::Epetra::CostDescriber &costs, double &myGoalWeight, double &balance, double &cutn, double &cutl)
Compute Zoltan-style hypergraph metrics given a partitioned CrsGraph and a CostDescriber (weight) obj...
int compute_graph_metrics(const Epetra_RowMatrix &matrix, Isorropia::Epetra::CostDescriber &costs, double &myGoalWeight, double &balance, int &numCuts, double &cutWgt, double &cutn, double &cutl)
Compute graph metrics given an Epetra_RowMatrix.
void show_matrix(const char *txt, const Epetra_RowMatrix &matrix, const Epetra_Comm &comm)
Print out a distributed RowMatrix.
int compute_balance(const Epetra_Vector &wgts, double myGoalWeight, double &min, double &max, double &avg)
Given an Epetra_Vector of weights, compute the weight imbalance on each process.