Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions
Tpetra_Details_getNumDiags.hpp File Reference

Declaration and definition of getLocalNumDiags and getGlobalNumDiags. More...

#include "Tpetra_CrsGraph.hpp"
#include "Teuchos_CommHelpers.hpp"
#include "Tpetra_Details_OrdinalTraits.hpp"

Go to the source code of this file.

Classes

class  Tpetra::Details::Impl::CountLocalNumDiags< LocalGraphType, LocalMapType >
 Kokkos::parallel_reduce functor for counting the local number of diagonal entries in a sparse graph. More...
 
struct  Tpetra::Details::Impl::GetLocalNumDiags< MatrixType >
 Implementation of Tpetra::Details::getLocalNumDiags (see below). More...
 
struct  Tpetra::Details::Impl::GetLocalNumDiags< ::Tpetra::RowGraph< LO, GO, NT > >
 Specialization of GetLocalNumDiags for RowGraph. More...
 
struct  Tpetra::Details::Impl::GetLocalNumDiags< ::Tpetra::CrsGraph< LO, GO, NT > >
 Specialization of GetLocalNumDiags for CrsGraph. More...
 

Namespaces

 Tpetra
 Namespace Tpetra contains the class and methods constituting the Tpetra library.
 
 Tpetra::Details
 Nonmember function that computes a residual Computes R = B - A * X.
 

Functions

template<class MapType >
MapType::local_ordinal_type Tpetra::Details::Impl::getLocalDiagonalColumnIndex (const typename MapType::local_ordinal_type lclRow, const MapType &rowMap, const MapType &colMap)
 Local columm index of diagonal entry. More...
 
template<class LO , class GO , class NT >
typename::Tpetra::RowGraph< LO,
GO, NT >::local_ordinal_type 
Tpetra::Details::Impl::countLocalNumDiagsInNonFillCompleteLocallyIndexedGraphWithRowViews (const ::Tpetra::RowGraph< LO, GO, NT > &G)
 Return local number of diagonal entries. More...
 
template<class LO , class GO , class NT >
typename::Tpetra::RowGraph< LO,
GO, NT >::local_ordinal_type 
Tpetra::Details::Impl::countLocalNumDiagsInNonFillCompleteLocallyIndexedGraphWithoutRowViews (const ::Tpetra::RowGraph< LO, GO, NT > &G)
 Return local number of diagonal entries. More...
 
template<class LO , class GO , class NT >
typename::Tpetra::RowGraph< LO,
GO, NT >::local_ordinal_type 
Tpetra::Details::Impl::countLocalNumDiagsInNonFillCompleteGloballyIndexedGraphWithRowViews (const ::Tpetra::RowGraph< LO, GO, NT > &G)
 Return local number of diagonal entries. More...
 
template<class LO , class GO , class NT >
typename::Tpetra::RowGraph< LO,
GO, NT >::local_ordinal_type 
Tpetra::Details::Impl::countLocalNumDiagsInNonFillCompleteGloballyIndexedGraphWithoutRowViews (const ::Tpetra::RowGraph< LO, GO, NT > &G)
 Return local number of diagonal entries. More...
 
template<class CrsGraphType >
CrsGraphType::local_ordinal_type Tpetra::Details::getLocalNumDiags (const CrsGraphType &G)
 Number of populated diagonal entries in the given sparse graph, on the calling (MPI) process. More...
 
template<class CrsGraphType >
CrsGraphType::global_ordinal_type Tpetra::Details::getGlobalNumDiags (const CrsGraphType &G)
 Number of populated diagonal entries in the given sparse graph, over all processes in the graph's (MPI) communicator. More...
 

Detailed Description

Declaration and definition of getLocalNumDiags and getGlobalNumDiags.

These two functions are meant to help Tpetra developers deprecate and remove the getLocalNumDiags and getGlobalNumDiags methods from various Tpetra classes. See Trilinos GitHub issue #2630.

Definition in file Tpetra_Details_getNumDiags.hpp.