Xpetra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Xpetra::CrsMatrixUtils< Scalar, LocalOrdinal, GlobalOrdinal, Node > Class Template Reference

Xpetra utility class for CrsMatrix-related routines. More...

#include <Xpetra_CrsMatrixUtils_fwd.hpp>

Static Public Member Functions

static void sortCrsEntries (const Teuchos::ArrayView< size_t > &CRS_rowptr, const Teuchos::ArrayView< LocalOrdinal > &CRS_colind, const Teuchos::ArrayView< Scalar > &CRS_vals, const UnderlyingLib lib)
 Sort the entries of the (raw CSR) matrix by column index within each row. More...
 
static void sortAndMergeCrsEntries (const Teuchos::ArrayView< size_t > &CRS_rowptr, const Teuchos::ArrayView< LocalOrdinal > &CRS_colind, const Teuchos::ArrayView< Scalar > &CRS_vals, const UnderlyingLib lib)
 Sort and merge the entries of the (raw CSR) matrix by column index within each row. More...
 

Detailed Description

template<class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node>
class Xpetra::CrsMatrixUtils< Scalar, LocalOrdinal, GlobalOrdinal, Node >

Xpetra utility class for CrsMatrix-related routines.

The routines should be independent from Epetra/Tpetra and be purely implemented in Xpetra.

Definition at line 51 of file Xpetra_CrsMatrixUtils_fwd.hpp.

Member Function Documentation

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
static void Xpetra::CrsMatrixUtils< Scalar, LocalOrdinal, GlobalOrdinal, Node >::sortCrsEntries ( const Teuchos::ArrayView< size_t > &  CRS_rowptr,
const Teuchos::ArrayView< LocalOrdinal > &  CRS_colind,
const Teuchos::ArrayView< Scalar > &  CRS_vals,
const UnderlyingLib  lib 
)
inlinestatic

Sort the entries of the (raw CSR) matrix by column index within each row.

Definition at line 81 of file Xpetra_CrsMatrixUtils.hpp.

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
static void Xpetra::CrsMatrixUtils< Scalar, LocalOrdinal, GlobalOrdinal, Node >::sortAndMergeCrsEntries ( const Teuchos::ArrayView< size_t > &  CRS_rowptr,
const Teuchos::ArrayView< LocalOrdinal > &  CRS_colind,
const Teuchos::ArrayView< Scalar > &  CRS_vals,
const UnderlyingLib  lib 
)
inlinestatic

Sort and merge the entries of the (raw CSR) matrix by column index within each row.

Definition at line 100 of file Xpetra_CrsMatrixUtils.hpp.


The documentation for this class was generated from the following files: