|
Zoltan2
Version of the Day
|
InputAdapter defines methods required by all InputAdapters. More...
#include <Zoltan2_InputAdapter.hpp>

Public Member Functions | |
| virtual enum InputAdapterType | inputAdapterType () const =0 |
| Returns the type of adapter. More... | |
| virtual | ~InputAdapter () |
| Desstructor. More... | |
| virtual string | inputAdapterName () const =0 |
| Returns a descriptive name that identifies the concrete adapter. More... | |
| virtual size_t | getLocalNumberOfObjects () const =0 |
| Returns the number of objects in the input. More... | |
| virtual int | getNumberOfWeightsPerObject () const =0 |
| Returns the number of weights per object. Number of weights per object should be zero or greater. If zero, then it is assumed that all objects are equally weighted. More... | |
| virtual size_t | getObjectWeights (int dim, const scalar_t *&wgt, int &stride) const =0 |
| Provide pointer to a weight array with stride. More... | |
Static Public Member Functions | |
| static string | inputAdapterTypeName (InputAdapterType iaType) |
| Returns the name of the input adapter. More... | |
InputAdapter defines methods required by all InputAdapters.
Input adapters provide access for Zoltan2 to the user's data. The methods in the interface must be defined by users. Many built-in adapters are already defined for common data structures, such as Tpetra and Epetra objects and C-language pointers to arrays.
Definition at line 84 of file Zoltan2_InputAdapter.hpp.
|
inlinevirtual |
Desstructor.
Definition at line 98 of file Zoltan2_InputAdapter.hpp.
|
pure virtual |
Returns the type of adapter.
Implemented in Zoltan2::MeshInput< User >, Zoltan2::GraphInput< User >, Zoltan2::MatrixInput< User >, Zoltan2::CoordinateInput< User >, Zoltan2::VectorInput< User >, and Zoltan2::IdentifierInput< User >.
|
pure virtual |
Returns a descriptive name that identifies the concrete adapter.
Implemented in Zoltan2::XpetraCrsGraphInput< User >, Zoltan2::BasicVectorInput< User >, Zoltan2::XpetraCrsMatrixInput< User >, Zoltan2::BasicCoordinateInput< User >, Zoltan2::XpetraRowMatrixInput< User >, Zoltan2::XpetraMultiVectorInput< User >, Zoltan2::XpetraVectorInput< User >, and Zoltan2::BasicIdentifierInput< User >.
|
pure virtual |
Returns the number of objects in the input.
Objects may be coordinates, graph vertices, matrix rows, etc. They are the objects to be partitioned, ordered, or colored.
Implemented in Zoltan2::XpetraCrsGraphInput< User >, Zoltan2::BasicVectorInput< User >, Zoltan2::XpetraCrsMatrixInput< User >, Zoltan2::BasicCoordinateInput< User >, Zoltan2::XpetraRowMatrixInput< User >, Zoltan2::XpetraMultiVectorInput< User >, Zoltan2::XpetraVectorInput< User >, and Zoltan2::BasicIdentifierInput< User >.
|
pure virtual |
Returns the number of weights per object. Number of weights per object should be zero or greater. If zero, then it is assumed that all objects are equally weighted.
Implemented in Zoltan2::XpetraCrsGraphInput< User >, Zoltan2::BasicVectorInput< User >, Zoltan2::XpetraCrsMatrixInput< User >, Zoltan2::BasicCoordinateInput< User >, Zoltan2::XpetraRowMatrixInput< User >, Zoltan2::XpetraMultiVectorInput< User >, Zoltan2::XpetraVectorInput< User >, and Zoltan2::BasicIdentifierInput< User >.
|
pure virtual |
Provide pointer to a weight array with stride.
| dim | the weight dimension, zero or greater |
| wgt | on return a pointer to the weights for this dimension |
| stride | on return, the value such that the nth weight should be found at wgt[n*stride] . |
wgt array, which should be at least equal to getLocalNumberOfObjects() * stride . Implemented in Zoltan2::XpetraCrsGraphInput< User >, Zoltan2::BasicVectorInput< User >, Zoltan2::XpetraCrsMatrixInput< User >, Zoltan2::BasicCoordinateInput< User >, Zoltan2::XpetraRowMatrixInput< User >, Zoltan2::XpetraMultiVectorInput< User >, Zoltan2::XpetraVectorInput< User >, and Zoltan2::BasicIdentifierInput< User >.
|
static |
Returns the name of the input adapter.
Definition at line 134 of file Zoltan2_InputAdapter.hpp.
1.8.11