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

Declaration and definition of Tpetra::Details::getDiagCopyWithoutOffsets, and declaration (only) of Tpetra::Details::getDiagCopyWithoutOffsetsNotFillcomplete. More...

#include "TpetraCore_config.h"
#include "Kokkos_Core.hpp"
#include "Kokkos_ArithTraits.hpp"
#include "Tpetra_Details_OrdinalTraits.hpp"
#include "Tpetra_RowMatrix_decl.hpp"
#include "Tpetra_Vector_decl.hpp"
#include <type_traits>

Go to the source code of this file.

Classes

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. More...
 

Namespaces

 Tpetra
 Namespace Tpetra contains the class and methods constituting the Tpetra library.
 
 Tpetra::Details
 Namespace for Tpetra implementation details.
 

Functions

template<class DiagType , class LocalMapType , class CrsMatrixType >
static
LocalMapType::local_ordinal_type 
Tpetra::Details::getDiagCopyWithoutOffsets (const DiagType &D, const LocalMapType &rowMap, const LocalMapType &colMap, const CrsMatrixType &A)
 Given a locally indexed, local sparse matrix, and corresponding local row and column Maps, extract the matrix's diagonal entries into a 1-D Kokkos::View. More...
 
template<class SC , class LO , class GO , class NT >
LO Tpetra::Details::getLocalDiagCopyWithoutOffsetsNotFillComplete (::Tpetra::Vector< SC, LO, GO, NT > &diag, const ::Tpetra::RowMatrix< SC, LO, GO, NT > &A, const bool debug=false)
 Given a locally indexed, global sparse matrix, extract the matrix's diagonal entries into a Tpetra::Vector. More...
 

Detailed Description

Declaration and definition of Tpetra::Details::getDiagCopyWithoutOffsets, and declaration (only) of Tpetra::Details::getDiagCopyWithoutOffsetsNotFillcomplete.

This header file, and the functions declared in it, are implementation details of Tpetra::CrsMatrix.

Definition in file Tpetra_Details_getDiagCopyWithoutOffsets_decl.hpp.