Tpetra parallel linear algebra Version of the Day
Loading...
Searching...
No Matches
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

namespace  Tpetra
 Namespace Tpetra contains the class and methods constituting the Tpetra library.
 
namespace  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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 

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.

Function Documentation

◆ getLocalDiagonalColumnIndex()

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.

Use global row and column indices to identify the diagonal entry. Caller promises that local row index is in the row Map on the calling process. Return Tpetra::Details::OrdinalTraits<LO>::invalid() if there's no diagonal entry on the calling process, which can happen if the global row index doesn't live in the column Map on the calling process.

Definition at line 148 of file Tpetra_Details_getNumDiags.hpp.

◆ countLocalNumDiagsInNonFillCompleteLocallyIndexedGraphWithRowViews()

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.

Definition at line 158 of file Tpetra_Details_getNumDiags.hpp.

◆ countLocalNumDiagsInNonFillCompleteLocallyIndexedGraphWithoutRowViews()

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.

Definition at line 202 of file Tpetra_Details_getNumDiags.hpp.

◆ countLocalNumDiagsInNonFillCompleteGloballyIndexedGraphWithRowViews()

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.

Definition at line 248 of file Tpetra_Details_getNumDiags.hpp.

◆ countLocalNumDiagsInNonFillCompleteGloballyIndexedGraphWithoutRowViews()

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.

Definition at line 283 of file Tpetra_Details_getNumDiags.hpp.