42#ifndef TPETRA_ROWGRAPH_DEF_HPP
43#define TPETRA_ROWGRAPH_DEF_HPP
46 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
50 Teuchos::Array<GlobalOrdinal>& exports,
62 ": exportLIDs and numPacketsPerLID must have the same size.");
64 const map_type&
srcMap = * (this->getRowMap ());
73 nonconst_global_inds_host_view_type row;
76 size_t row_length = this->getNumEntriesInGlobalRow (GID);
88 size_t row_length = this->getNumEntriesInGlobalRow (GID);
100#ifdef TPETRA_ENABLE_DEPRECATED_CODE
101 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
105 Teuchos::ArrayView<const LocalOrdinal>& )
const
107 const char prefix[] =
"Tpetra::RowGraph::getLocalRowView: ";
114 (! this->supportsRowViews (), std::runtime_error,
115 prefix <<
"This object does not support row views.");
117 (this->supportsRowViews (), std::runtime_error,
118 prefix <<
"This object claims to support row views, "
119 "but this method is not implemented.");
122 template<
class LocalOrdinal,
class GlobalOrdinal,
class Node>
126 Teuchos::ArrayView<const GlobalOrdinal>& )
const
128 const char prefix[] =
"Tpetra::RowGraph::getGlobalRowView: ";
134 TEUCHOS_TEST_FOR_EXCEPTION
135 (! this->supportsRowViews (), std::runtime_error,
136 prefix <<
"This object does not support row views.");
137 TEUCHOS_TEST_FOR_EXCEPTION
138 (this->supportsRowViews (), std::runtime_error,
139 prefix <<
"This object claims to support row views, "
140 "but this method is not implemented.");
152#define TPETRA_ROWGRAPH_INSTANT(LO,GO,NODE) \
153 template class RowGraph< LO , GO , NODE >;
Struct that holds views of the contents of a CrsMatrix.
virtual void pack(const Teuchos::ArrayView< const LocalOrdinal > &exportLIDs, Teuchos::Array< GlobalOrdinal > &exports, const Teuchos::ArrayView< size_t > &numPacketsPerLID, size_t &constantNumPackets) const
Pack this object's data for Import or Export.
virtual void getGlobalRowView(const GlobalOrdinal gblRow, global_inds_host_view_type &gblColInds) const =0
Get a const, non-persisting view of the given global row's global column indices, as a Teuchos::Array...
virtual void getLocalRowView(const LocalOrdinal lclRow, local_inds_host_view_type &lclColInds) const =0
Get a constant, nonpersisting, locally indexed view of the given row of the graph.
Namespace Tpetra contains the class and methods constituting the Tpetra library.