Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
Tpetra::Details::CrsMatrixGetDiagCopyFunctor< DiagType, LocalMapType, CrsMatrixType > Struct Template Reference

Functor that implements much of the one-argument overload of Tpetra::CrsMatrix::getLocalDiagCopy, for the case where the matrix is fill complete. More...

#include <Tpetra_Details_getDiagCopyWithoutOffsets_decl.hpp>

Public Types

typedef LO value_type
 The result of the reduction; number of errors. More...
 

Public Member Functions

 CrsMatrixGetDiagCopyFunctor (const DiagType &D, const LocalMapType &rowMap, const LocalMapType &colMap, const CrsMatrixType &A)
 Constructor. More...
 
KOKKOS_FUNCTION void operator() (const LO &lclRowInd, value_type &errCount) const
 Operator for Kokkos::parallel_for. More...
 

Detailed Description

template<class DiagType, class LocalMapType, class CrsMatrixType>
struct Tpetra::Details::CrsMatrixGetDiagCopyFunctor< DiagType, LocalMapType, CrsMatrixType >

Functor that implements much of the one-argument overload of Tpetra::CrsMatrix::getLocalDiagCopy, for the case where the matrix is fill complete.

Warning
This is an implementation detail of getDiagCopyWithoutOffsets. See that function's documentation first, before considering direct use of this functor.
Template Parameters
DiagType1-D nonconst Kokkos::View
CrsMatrixTypeSpecialization of KokkosSparse::CrsMatrix
LocalMapTypeSpecialization of Tpetra::Details::LocalMap; type of the "local" part of a Tpetra::Map

Definition at line 82 of file Tpetra_Details_getDiagCopyWithoutOffsets_decl.hpp.

Member Typedef Documentation

template<class DiagType, class LocalMapType, class CrsMatrixType>
typedef LO Tpetra::Details::CrsMatrixGetDiagCopyFunctor< DiagType, LocalMapType, CrsMatrixType >::value_type

The result of the reduction; number of errors.

Definition at line 90 of file Tpetra_Details_getDiagCopyWithoutOffsets_decl.hpp.

Constructor & Destructor Documentation

template<class DiagType, class LocalMapType, class CrsMatrixType>
Tpetra::Details::CrsMatrixGetDiagCopyFunctor< DiagType, LocalMapType, CrsMatrixType >::CrsMatrixGetDiagCopyFunctor ( const DiagType &  D,
const LocalMapType &  rowMap,
const LocalMapType &  colMap,
const CrsMatrixType &  A 
)
inline

Constructor.

Parameters
D[out] 1-D Kokkos::View into which to store the matrix's diagonal.
rowMap[in] Local part of the Tpetra row Map.
colMap[in] Local part of the Tpetra column Map.
A[in] The sparse matrix from which to get the diagonal.

Definition at line 99 of file Tpetra_Details_getDiagCopyWithoutOffsets_decl.hpp.

Member Function Documentation

template<class DiagType, class LocalMapType, class CrsMatrixType>
KOKKOS_FUNCTION void Tpetra::Details::CrsMatrixGetDiagCopyFunctor< DiagType, LocalMapType, CrsMatrixType >::operator() ( const LO &  lclRowInd,
value_type errCount 
) const
inline

Operator for Kokkos::parallel_for.

Parameters
lclRowInd[in] Index of current (local) row of the sparse matrix.

Definition at line 110 of file Tpetra_Details_getDiagCopyWithoutOffsets_decl.hpp.


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