|
Zoltan2
|
A class containing the metrics for one measurable item. More...
#include <Zoltan2_Metric.hpp>
Public Types | |
| enum | metricOffset { evalLocalSum, evalGlobalSum, evalGlobalMin, evalGlobalMax, evalGlobalAvg, evalMinImbalance, evalAvgImbalance, evalMaxImbalance, evalNumMetrics } |
| Enumerator for offsets into metric data. More... | |
Public Member Functions | |
| void | printLine (std::ostream &os) const |
| Print a standard line of data that fits under the header. | |
| MetricValues (std::string mname) | |
| Constructor. | |
| MetricValues () | |
| Constructor. | |
| void | setName (std::string name) |
| Set or reset the name. | |
| void | setNorm (multiCriteriaNorm normVal) |
| Set or reset the norm. | |
| void | setLocalSum (scalar_t x) |
| Set the sum on the local process. | |
| void | setGlobalSum (scalar_t x) |
| Set the global sum. | |
| void | setGlobalMin (scalar_t x) |
| Set the global minimum across parts. | |
| void | setGlobalMax (scalar_t x) |
| Set the global maximum across parts. | |
| void | setGlobalAvg (scalar_t x) |
| Set the global average (sum / numParts). | |
| void | setMinImbalance (scalar_t x) |
| Set the imbalance of the least imbalanced part. | |
| void | setMaxImbalance (scalar_t x) |
| Set the imbalance of the worst imbalanced part. This is what we normally call the imbalance of a partition. | |
| void | setAvgImbalance (scalar_t x) |
| Set the average imbalance of all parts. | |
| const std::string & | getName () const |
| Get the name of the item measured. | |
| multiCriteriaNorm | getNorm () |
| Get the norm. | |
| scalar_t | getLocalSum () const |
| Get the sum on the local process. | |
| scalar_t | getGlobalSum () const |
| Get the global sum for all parts. | |
| scalar_t | getGlobalMin () const |
| Get the global minimum across all parts. | |
| scalar_t | getGlobalMax () const |
| Get the global maximum across all parts. | |
| scalar_t | getGlobalAvg () const |
| Get the average of the sum over all parts. | |
| scalar_t | getMinImbalance () const |
| Get the imbalance of the least imbalanced part. | |
| scalar_t | getMaxImbalance () const |
| Get the imbalance of the most imbalanced part. This is what we normally call the imbalance of a partition. | |
| scalar_t | getAvgImbalance () const |
| Get the average of the part imbalances. | |
Static Public Member Functions | |
| static void | printHeader (std::ostream &os) |
| Print a standard header. | |
A class containing the metrics for one measurable item.
Definition at line 74 of file Zoltan2_Metric.hpp.
| enum Zoltan2::MetricValues::metricOffset |
Enumerator for offsets into metric data.
When part sizes are all uniform, it is sufficient to look at totals per part. For non-uniform part sizes, the total is not really significant, but rather the min, max and average part imbalances. We provide both types of metrics.
Definition at line 95 of file Zoltan2_Metric.hpp.
| Zoltan2::MetricValues< scalar_t >::MetricValues | ( | std::string | mname | ) | [inline] |
Constructor.
Definition at line 120 of file Zoltan2_Metric.hpp.
| Zoltan2::MetricValues< scalar_t >::MetricValues | ( | ) | [inline] |
Constructor.
Definition at line 125 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::printHeader | ( | std::ostream & | os | ) | [static] |
Print a standard header.
Definition at line 234 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::printLine | ( | std::ostream & | os | ) | const |
Print a standard line of data that fits under the header.
Definition at line 198 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::setName | ( | std::string | name | ) | [inline] |
Set or reset the name.
Definition at line 130 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::setNorm | ( | multiCriteriaNorm | normVal | ) | [inline] |
Set or reset the norm.
Definition at line 133 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::setLocalSum | ( | scalar_t | x | ) | [inline] |
Set the sum on the local process.
Definition at line 137 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::setGlobalSum | ( | scalar_t | x | ) | [inline] |
Set the global sum.
Definition at line 140 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::setGlobalMin | ( | scalar_t | x | ) | [inline] |
Set the global minimum across parts.
Definition at line 143 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::setGlobalMax | ( | scalar_t | x | ) | [inline] |
Set the global maximum across parts.
Definition at line 146 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::setGlobalAvg | ( | scalar_t | x | ) | [inline] |
Set the global average (sum / numParts).
Definition at line 149 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::setMinImbalance | ( | scalar_t | x | ) | [inline] |
Set the imbalance of the least imbalanced part.
Definition at line 152 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::setMaxImbalance | ( | scalar_t | x | ) | [inline] |
Set the imbalance of the worst imbalanced part. This is what we normally call the imbalance of a partition.
Definition at line 157 of file Zoltan2_Metric.hpp.
| void Zoltan2::MetricValues< scalar_t >::setAvgImbalance | ( | scalar_t | x | ) | [inline] |
Set the average imbalance of all parts.
Definition at line 160 of file Zoltan2_Metric.hpp.
| const std::string& Zoltan2::MetricValues< scalar_t >::getName | ( | ) | const [inline] |
Get the name of the item measured.
Definition at line 163 of file Zoltan2_Metric.hpp.
| multiCriteriaNorm Zoltan2::MetricValues< scalar_t >::getNorm | ( | ) | [inline] |
Get the norm.
Definition at line 166 of file Zoltan2_Metric.hpp.
| scalar_t Zoltan2::MetricValues< scalar_t >::getLocalSum | ( | ) | const [inline] |
Get the sum on the local process.
Definition at line 169 of file Zoltan2_Metric.hpp.
| scalar_t Zoltan2::MetricValues< scalar_t >::getGlobalSum | ( | ) | const [inline] |
Get the global sum for all parts.
Definition at line 172 of file Zoltan2_Metric.hpp.
| scalar_t Zoltan2::MetricValues< scalar_t >::getGlobalMin | ( | ) | const [inline] |
Get the global minimum across all parts.
Definition at line 175 of file Zoltan2_Metric.hpp.
| scalar_t Zoltan2::MetricValues< scalar_t >::getGlobalMax | ( | ) | const [inline] |
Get the global maximum across all parts.
Definition at line 178 of file Zoltan2_Metric.hpp.
| scalar_t Zoltan2::MetricValues< scalar_t >::getGlobalAvg | ( | ) | const [inline] |
Get the average of the sum over all parts.
Definition at line 181 of file Zoltan2_Metric.hpp.
| scalar_t Zoltan2::MetricValues< scalar_t >::getMinImbalance | ( | ) | const [inline] |
Get the imbalance of the least imbalanced part.
Definition at line 184 of file Zoltan2_Metric.hpp.
| scalar_t Zoltan2::MetricValues< scalar_t >::getMaxImbalance | ( | ) | const [inline] |
Get the imbalance of the most imbalanced part. This is what we normally call the imbalance of a partition.
Definition at line 189 of file Zoltan2_Metric.hpp.
| scalar_t Zoltan2::MetricValues< scalar_t >::getAvgImbalance | ( | ) | const [inline] |
Get the average of the part imbalances.
Definition at line 192 of file Zoltan2_Metric.hpp.
1.7.6.1