40 #ifndef TPETRA_DETAILS_LOCALROWOFFSETS_DECL_HPP
41 #define TPETRA_DETAILS_LOCALROWOFFSETS_DECL_HPP
49 #include "KokkosSparse_CrsMatrix.hpp"
59 using local_graph_type =
60 typename KokkosSparse::CrsMatrix<
61 double, int,
typename NT::execution_space,
void>::
65 typename local_graph_type::row_map_type::non_const_type;
66 using offset_type =
typename offsets_type::non_const_value_type;
75 template <
class LO,
class GO,
class NT>
76 std::pair<typename LocalRowOffsetsResult<NT>::offsets_type,
size_t>
79 template <
class LO,
class GO,
class NT>
83 template <
class LO,
class GO,
class NT>
91 template <
class LO,
class GO,
class NT>
92 LocalRowOffsetsResult<NT>
98 #endif // TPETRA_DETAILS_LOCALROWOFFSETS_DECL_HPP
An abstract interface for graphs accessed by rows.
size_t maxNumEnt
Max number of entries over all local rows.
Forward declaration of Tpetra::RowGraph.
LocalRowOffsetsResult< NT > localRowOffsets(const RowGraph< LO, GO, NT > &G)
Get local row offsets ("ptr", in compressed sparse row terms) for the given graph.
A distributed graph accessed by rows (adjacency lists) and stored sparsely.
offsets_type ptr
Local row offsets (Kokkos::View)
offset_type nnz
Local number of graph / matrix entries.
Result returned by localRowOffsets (see below).
Forward declaration of Tpetra::CrsGraph.