Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Tpetra::Details::Impl::CountLocalNumDiags< LocalGraphType, LocalMapType > Class Template Reference

Kokkos::parallel_reduce functor for counting the local number of diagonal entries in a sparse graph. More...

#include <Tpetra_Details_getNumDiags.hpp>

Public Member Functions

KOKKOS_INLINE_FUNCTION void operator() (const typename LocalMapType::local_ordinal_type lclRow, result_type &diagCount) const
 Reduction function: result is (diagonal count, error count). More...
 

Detailed Description

template<class LocalGraphType, class LocalMapType>
class Tpetra::Details::Impl::CountLocalNumDiags< LocalGraphType, LocalMapType >

Kokkos::parallel_reduce functor for counting the local number of diagonal entries in a sparse graph.

Template Parameters
LocalGraphTypeKokkos::StaticCrsGraph specialization
LocalMapTypeResult of Tpetra::Map::getLocalGraph()

Definition at line 66 of file Tpetra_Details_getNumDiags.hpp.

Member Function Documentation

template<class LocalGraphType , class LocalMapType >
KOKKOS_INLINE_FUNCTION void Tpetra::Details::Impl::CountLocalNumDiags< LocalGraphType, LocalMapType >::operator() ( const typename LocalMapType::local_ordinal_type  lclRow,
result_type &  diagCount 
) const
inline

Reduction function: result is (diagonal count, error count).

Definition at line 80 of file Tpetra_Details_getNumDiags.hpp.


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