Zoltan2
|
#include <Zoltan2_GraphModel.hpp>
#include <Zoltan2_XpetraCrsMatrixAdapter.hpp>
#include <Zoltan2_XpetraCrsGraphAdapter.hpp>
#include <Zoltan2_BasicVectorAdapter.hpp>
#include <Zoltan2_TestHelpers.hpp>
#include <Zoltan2_InputTraits.hpp>
#include <string>
#include <vector>
#include <iostream>
#include <bitset>
#include <Teuchos_Comm.hpp>
#include <Teuchos_DefaultComm.hpp>
#include <Teuchos_ArrayView.hpp>
Go to the source code of this file.
Typedefs | |
typedef Zoltan2::BasicUserTypes< zscalar_t, zlno_t, zgno_t > | simpleUser_t |
typedef Tpetra::CrsMatrix< zscalar_t, zlno_t, zgno_t, znode_t > | tcrsMatrix_t |
typedef Tpetra::CrsGraph< zlno_t, zgno_t, znode_t > | tcrsGraph_t |
typedef Tpetra::Map< zlno_t, zgno_t, znode_t > | tmap_t |
typedef Zoltan2::BasicVectorAdapter< simpleUser_t > | simpleVAdapter_t |
typedef Zoltan2::MatrixAdapter< tcrsMatrix_t, simpleUser_t > | baseMAdapter_t |
typedef Zoltan2::GraphAdapter< tcrsGraph_t, simpleUser_t > | baseGAdapter_t |
typedef Zoltan2::XpetraCrsMatrixAdapter< tcrsMatrix_t, simpleUser_t > | xMAdapter_t |
typedef Zoltan2::XpetraCrsGraphAdapter< tcrsGraph_t, simpleUser_t > | xGAdapter_t |
Functions | |
void | printGraph (zlno_t nrows, const zgno_t *v, const zgno_t *elid, const zgno_t *egid, const zlno_t *idx, const RCP< const Comm< int > > &comm) |
template<typename BaseAdapter , typename Adapter , typename MatrixOrGraph > | |
void | testAdapter (RCP< const MatrixOrGraph > &M, RCP< const Tpetra::CrsGraph< zlno_t, zgno_t > > &Mgraph, const RCP< const Comm< int > > &comm, bool idsAreConsecutive, int nVtxWeights, int nEdgeWeights, int nnzWgtIdx, int coordDim, bool consecutiveIdsRequested, bool removeSelfEdges, bool buildLocalGraph) |
void | testGraphModel (string fname, zgno_t xdim, zgno_t ydim, zgno_t zdim, const RCP< const Comm< int > > &comm, int nVtxWeights, int nnzWgtIdx, int coordDim, bool consecutiveIdsRequested, bool removeSelfEdges, bool buildLocalGraph) |
int | main (int argc, char *argv[]) |
Variables | |
const int | SMALL_NUMBER_OF_ROWS = 5 |
Test of GraphModel interface. More... | |
typedef Zoltan2::BasicUserTypes<zscalar_t, zlno_t, zgno_t> simpleUser_t |
Definition at line 82 of file GraphModel.cpp.
typedef Tpetra::CrsMatrix<zscalar_t, zlno_t, zgno_t, znode_t> tcrsMatrix_t |
Definition at line 84 of file GraphModel.cpp.
typedef Tpetra::CrsGraph<zlno_t, zgno_t, znode_t> tcrsGraph_t |
Definition at line 85 of file GraphModel.cpp.
Definition at line 88 of file GraphModel.cpp.
Definition at line 90 of file GraphModel.cpp.
Definition at line 91 of file GraphModel.cpp.
Definition at line 93 of file GraphModel.cpp.
Definition at line 94 of file GraphModel.cpp.
void printGraph | ( | zlno_t | nrows, |
const zgno_t * | v, | ||
const zgno_t * | elid, | ||
const zgno_t * | egid, | ||
const zlno_t * | idx, | ||
const RCP< const Comm< int > > & | comm | ||
) |
Definition at line 100 of file GraphModel.cpp.
void testAdapter | ( | RCP< const MatrixOrGraph > & | M, |
RCP< const Tpetra::CrsGraph< zlno_t, zgno_t > > & | Mgraph, | ||
const RCP< const Comm< int > > & | comm, | ||
bool | idsAreConsecutive, | ||
int | nVtxWeights, | ||
int | nEdgeWeights, | ||
int | nnzWgtIdx, | ||
int | coordDim, | ||
bool | consecutiveIdsRequested, | ||
bool | removeSelfEdges, | ||
bool | buildLocalGraph | ||
) |
Definition at line 131 of file GraphModel.cpp.
void testGraphModel | ( | string | fname, |
zgno_t | xdim, | ||
zgno_t | ydim, | ||
zgno_t | zdim, | ||
const RCP< const Comm< int > > & | comm, | ||
int | nVtxWeights, | ||
int | nnzWgtIdx, | ||
int | coordDim, | ||
bool | consecutiveIdsRequested, | ||
bool | removeSelfEdges, | ||
bool | buildLocalGraph | ||
) |
Definition at line 555 of file GraphModel.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 669 of file GraphModel.cpp.
const int SMALL_NUMBER_OF_ROWS = 5 |
Test of GraphModel interface.
test all methods of GraphModel
test with GraphAdapter: add testGraphAdapter which is like testAdapter except is uses GraphAdapter queries and it may have edges weights.
Address the TODOs in the code below.
Definition at line 74 of file GraphModel.cpp.