Amesos2 - Direct Sparse Solver Interfaces  Version of the Day
Static Public Member Functions | List of all members
Amesos2::Util::get_cxs_helper< Matrix, S, GO, GS, Op > Struct Template Reference

A generic base class for the CRS and CCS helpers. More...

#include <Amesos2_Util.hpp>

Inheritance diagram for Amesos2::Util::get_cxs_helper< Matrix, S, GO, GS, Op >:
Inheritance graph
[legend]

Static Public Member Functions

static void do_get (const Teuchos::Ptr< const Matrix > mat, const ArrayView< S > nzvals, const ArrayView< GO > indices, const ArrayView< GS > pointers, GS &nnz, EDistribution distribution, EStorage_Ordering ordering=ARBITRARY, GO indexBase=0)
 
static void do_get (const Teuchos::Ptr< const Matrix > mat, const ArrayView< S > nzvals, const ArrayView< GO > indices, const ArrayView< GS > pointers, GS &nnz, EDistribution distribution, EStorage_Ordering ordering=ARBITRARY)
 
static void do_get (const Teuchos::Ptr< const Matrix > mat, const ArrayView< S > nzvals, const ArrayView< GO > indices, const ArrayView< GS > pointers, GS &nnz, const Teuchos::Ptr< const Tpetra::Map< typename Matrix::local_ordinal_t, typename Matrix::global_ordinal_t, typename Matrix::node_t > > map, EDistribution distribution, EStorage_Ordering ordering=ARBITRARY)
 

Detailed Description

template<class Matrix, typename S, typename GO, typename GS, class Op>
struct Amesos2::Util::get_cxs_helper< Matrix, S, GO, GS, Op >

A generic base class for the CRS and CCS helpers.

S, GO, and GS are the desired types. They are also the types of the respective input parameters. Matrix is expected to be an Amesos2 MatrixAdapter type.

The Op template parameter is a function-like class that provides a static apply() function.

Member Function Documentation

template<class Matrix, typename S, typename GO, typename GS, class Op>
static void Amesos2::Util::get_cxs_helper< Matrix, S, GO, GS, Op >::do_get ( const Teuchos::Ptr< const Matrix >  mat,
const ArrayView< S >  nzvals,
const ArrayView< GO >  indices,
const ArrayView< GS >  pointers,
GS &  nnz,
EDistribution  distribution,
EStorage_Ordering  ordering = ARBITRARY 
)
inlinestatic

Basic function overload that uses the matrix's row/col map as returned by Op::getMap().

template<class Matrix, typename S, typename GO, typename GS, class Op>
static void Amesos2::Util::get_cxs_helper< Matrix, S, GO, GS, Op >::do_get ( const Teuchos::Ptr< const Matrix >  mat,
const ArrayView< S >  nzvals,
const ArrayView< GO >  indices,
const ArrayView< GS >  pointers,
GS &  nnz,
const Teuchos::Ptr< const Tpetra::Map< typename Matrix::local_ordinal_t, typename Matrix::global_ordinal_t, typename Matrix::node_t > >  map,
EDistribution  distribution,
EStorage_Ordering  ordering = ARBITRARY 
)
inlinestatic

Function overload that takes an explicit map to use for the representation's distribution.


The documentation for this struct was generated from the following file: