Zoltan2
|
Test of Zoltan2::TpetraRowMatrixAdapter class. More...
#include <Zoltan2_InputTraits.hpp>
#include <Zoltan2_TestHelpers.hpp>
#include <Zoltan2_TpetraRowMatrixAdapter.hpp>
#include <Zoltan2_TpetraCrsMatrixAdapter.hpp>
#include <Teuchos_Comm.hpp>
#include <Teuchos_CommHelpers.hpp>
#include <Teuchos_DefaultComm.hpp>
#include <Teuchos_RCP.hpp>
#include <cstdlib>
#include <stdexcept>
Go to the source code of this file.
Typedefs | |
using | ztcrsmatrix_t = Tpetra::CrsMatrix< zscalar_t, zlno_t, zgno_t, znode_t > |
using | ztrowmatrix_t = Tpetra::RowMatrix< zscalar_t, zlno_t, zgno_t, znode_t > |
using | node_t = typename Zoltan2::InputTraits< ztrowmatrix_t >::node_t |
using | device_t = typename node_t::device_type |
using | rowAdapter_t = Zoltan2::TpetraRowMatrixAdapter< ztrowmatrix_t > |
using | crsAdapter_t = Zoltan2::TpetraCrsMatrixAdapter< ztcrsmatrix_t > |
using | execspace_t = typename rowAdapter_t::ConstWeightsHostView1D::execution_space |
Functions | |
template<typename offset_t > | |
void | printMatrix (RCP< const Comm< int > > &comm, zlno_t nrows, const zgno_t *rowIds, const offset_t *offsets, const zgno_t *colIds) |
template<typename adapter_t , typename matrix_t > | |
void | TestMatrixIds (adapter_t &ia, matrix_t &matrix) |
template<typename adapter_t , typename matrix_t > | |
void | verifyInputAdapter (adapter_t &ia, matrix_t &matrix) |
int | main (int narg, char *arg[]) |
Test of Zoltan2::TpetraRowMatrixAdapter class.
Definition in file TpetraRowMatrixInput.cpp.
using ztcrsmatrix_t = Tpetra::CrsMatrix<zscalar_t, zlno_t, zgno_t, znode_t> |
Definition at line 37 of file TpetraRowMatrixInput.cpp.
using ztrowmatrix_t = Tpetra::RowMatrix<zscalar_t, zlno_t, zgno_t, znode_t> |
Definition at line 38 of file TpetraRowMatrixInput.cpp.
using node_t = typename Zoltan2::InputTraits<ztrowmatrix_t>::node_t |
Definition at line 39 of file TpetraRowMatrixInput.cpp.
using device_t = typename node_t::device_type |
Definition at line 40 of file TpetraRowMatrixInput.cpp.
Definition at line 41 of file TpetraRowMatrixInput.cpp.
Definition at line 42 of file TpetraRowMatrixInput.cpp.
using execspace_t = typename rowAdapter_t::ConstWeightsHostView1D::execution_space |
Definition at line 44 of file TpetraRowMatrixInput.cpp.
void printMatrix | ( | RCP< const Comm< int > > & | comm, |
zlno_t | nrows, | ||
const zgno_t * | rowIds, | ||
const offset_t * | offsets, | ||
const zgno_t * | colIds | ||
) |
Definition at line 49 of file TpetraRowMatrixInput.cpp.
void TestMatrixIds | ( | adapter_t & | ia, |
matrix_t & | matrix | ||
) |
Definition at line 74 of file TpetraRowMatrixInput.cpp.
void verifyInputAdapter | ( | adapter_t & | ia, |
matrix_t & | matrix | ||
) |
Definition at line 121 of file TpetraRowMatrixInput.cpp.
int main | ( | int | narg, |
char * | arg[] | ||
) |
Definition at line 204 of file TpetraRowMatrixInput.cpp.