#include <Isorropia_CostDescriber.hpp>
Inheritance diagram for Isorropia::CostDescriber:

Public Member Functions | |
| virtual | ~CostDescriber () |
| Destructor. | |
| virtual void | setParameters (const Teuchos::ParameterList ¶mlist)=0 |
| Set parameters for the CostDescriber instance. | |
| virtual bool | haveVertexWeights () const =0 |
| Query whether non-default vertex weights are present. | |
| virtual int | getNumVertices () const =0 |
| Get the number of vertices. | |
| virtual void | getVertexWeights (int numVertices, int *global_ids, float *weights) const =0 |
| Get the lists of vertex ids and weights. | |
| virtual bool | haveGraphEdgeWeights () const =0 |
| Query whether non-default graph edge weights are present. | |
| virtual int | getNumGraphEdges (int vertex_global_id) const =0 |
| Get the number of graph edges for a specified vertex. | |
| virtual void | getGraphEdgeWeights (int vertex_global_id, int num_neighbors, int *neighbor_global_ids, float *weights) const =0 |
| Get the graph edge weights for a specified vertex. | |
| virtual bool | haveHypergraphEdgeWeights () const =0 |
| Query whether non-default hypergraph edge weights are present. | |
| virtual int | getNumHypergraphEdges () const =0 |
| Get the number of Hypergraph edges. | |
| virtual void | getHypergraphEdgeWeights (int numEdges, int *global_ids, float *weights) const =0 |
| Get the hypergraph edge weights. | |
This interface is intended to be queried by the partitioner.
In many cases, a user may provide some weights but not others. E.g., they may provide vertex weights but not edge weights, etc. Any weights which are not provided are assumed to have a default value of 1.0. The caller which needs the weights (i.e., the partitioner) can save time/work by querying whether "non-default" weights are specified, and if not, then simply use weights of 1.0 rather than making the call to obtain the weights arrays. The queries for whether weights are provided are the methods haveVertexWeights(), haveGraphEdgeWeights() and haveHypergraphEdgeWeights().
|
|
Set parameters for the CostDescriber instance. The contents of the input paramlist object are copied into an internal ParameterList attribute. Instances of this interface should not retain a reference to the input ParameterList after this method returns. Implemented in Isorropia::Epetra::CostDescriber. |
|
|
Query whether non-default vertex weights are present. If this function returns false, the caller can assume that vertex weights are all 1.0. Implemented in Isorropia::Epetra::CostDescriber. |
|
|
Get the number of vertices. Vertices typically correspond to matrix rows. Implemented in Isorropia::Epetra::CostDescriber. |
|
|
Query whether non-default graph edge weights are present. If this function returns false, the caller can assume that graph edge weights are all 1.0. Implemented in Isorropia::Epetra::CostDescriber. |
|
|
Get the number of graph edges for a specified vertex. Graph edges typically correspond to matrix nonzeros. Implemented in Isorropia::Epetra::CostDescriber. |
|
|
Query whether non-default hypergraph edge weights are present. If this function returns false, the caller can assume that hypergraph edge weights are all 1.0. Implemented in Isorropia::Epetra::CostDescriber. |
|
|
Get the number of Hypergraph edges. Hypergraph edges typically correspond to matrix columns. Implemented in Isorropia::Epetra::CostDescriber. |