10#ifndef TPETRA_DETAILS_GETGRAPHOFFRANKOFFSETS_DEF_HPP
11#define TPETRA_DETAILS_GETGRAPHOFFRANKOFFSETS_DEF_HPP
19#include "Tpetra_Map.hpp"
20#include "KokkosSparse_findRelOffset.hpp"
47 const row_offsets_type&
ptr,
48 const lcl_col_inds_type&
ind) :
55 typedef typename device_type::execution_space execution_space;
56 typedef Kokkos::RangePolicy<execution_space, LO> policy_type;
58 lclNumRows_ =
ptr.extent(0)-1;
59 policy_type
range (0,
ptr.extent(0));
60 Kokkos::parallel_for (
range, *
this);
72 Tpetra::Details::OrdinalTraits<LO>::invalid ();
97#define TPETRA_DETAILS_IMPL_GETGRAPHOFFRANKOFFSETS_INSTANT( LO, GO, NODE ) \
98 template class Details::Impl::GetGraphOffRankOffsets< LO, GO, NODE::device_type >;
Import KokkosSparse::OrdinalTraits, a traits class for "invalid" (flag) values of integer types,...
Struct that holds views of the contents of a CrsMatrix.
GetGraphOffRankOffsets(const offsets_type &OffRankOffsets, const local_map_type &lclColMap, const local_map_type &lclDomMap, const row_offsets_type &ptr, const lcl_col_inds_type &ind)
Constructor; also runs the functor.
KOKKOS_FUNCTION void operator()(const LO &lclRowInd) const
Kokkos::parallel_for loop body.
Implementation details of Tpetra.
Namespace Tpetra contains the class and methods constituting the Tpetra library.