Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Typedefs | Functions
TpetraRowMatrixInput.cpp File Reference

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>
Include dependency graph for TpetraRowMatrixInput.cpp:

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[])
 

Detailed Description

Test of Zoltan2::TpetraRowMatrixAdapter class.

Todo:
test with geometric row coordinates.

Definition in file TpetraRowMatrixInput.cpp.

Typedef Documentation

using ztcrsmatrix_t = Tpetra::CrsMatrix<zscalar_t, zlno_t, zgno_t, znode_t>

Definition at line 72 of file TpetraRowMatrixInput.cpp.

using ztrowmatrix_t = Tpetra::RowMatrix<zscalar_t, zlno_t, zgno_t, znode_t>

Definition at line 73 of file TpetraRowMatrixInput.cpp.

Definition at line 74 of file TpetraRowMatrixInput.cpp.

using device_t = typename node_t::device_type

Definition at line 75 of file TpetraRowMatrixInput.cpp.

Definition at line 76 of file TpetraRowMatrixInput.cpp.

Definition at line 77 of file TpetraRowMatrixInput.cpp.

using execspace_t = typename rowAdapter_t::ConstWeightsHostView1D::execution_space

Definition at line 79 of file TpetraRowMatrixInput.cpp.

Function Documentation

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 
)

Definition at line 84 of file TpetraRowMatrixInput.cpp.

template<typename adapter_t , typename matrix_t >
void TestMatrixIds ( adapter_t &  ia,
matrix_t &  matrix 
)

Definition at line 109 of file TpetraRowMatrixInput.cpp.

template<typename adapter_t , typename matrix_t >
void verifyInputAdapter ( adapter_t &  ia,
matrix_t &  matrix 
)

Definition at line 156 of file TpetraRowMatrixInput.cpp.

int main ( int  narg,
char *  arg[] 
)

Definition at line 239 of file TpetraRowMatrixInput.cpp.