46 #ifndef XPETRA_CRSGRAPHFACTORY_HPP
47 #define XPETRA_CRSGRAPHFACTORY_HPP
53 #ifdef HAVE_XPETRA_TPETRA
57 #ifdef HAVE_XPETRA_EPETRA
65 template <
class LocalOrdinal,
81 #ifdef HAVE_XPETRA_TPETRA
100 #ifdef HAVE_XPETRA_TPETRA
110 #ifdef HAVE_XPETRA_KOKKOS_REFACTOR
111 #ifdef HAVE_XPETRA_TPETRA
169 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& colMap,
175 return rcp(
new TpetraCrsGraph<LocalOrdinal, GlobalOrdinal, Node>(rowMap,
209 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& rowMap,
210 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& colMap,
211 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& domainMap = Teuchos::null,
212 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& rangeMap = Teuchos::null,
217 return rcp(
new TpetraCrsGraph<LocalOrdinal, GlobalOrdinal, Node>(lclGraph,
232 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES))
251 #ifdef HAVE_XPETRA_TPETRA
267 #ifdef HAVE_XPETRA_TPETRA
279 #ifdef HAVE_XPETRA_KOKKOS_REFACTOR
280 #ifdef HAVE_XPETRA_TPETRA
338 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& colMap,
344 return rcp(
new TpetraCrsGraph<LocalOrdinal, GlobalOrdinal, Node>(rowMap,
378 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& rowMap,
379 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& colMap,
380 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& domainMap = Teuchos::null,
381 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& rangeMap = Teuchos::null,
386 return rcp(
new TpetraCrsGraph<LocalOrdinal, GlobalOrdinal, Node>(lclGraph,
402 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES))
421 #ifdef HAVE_XPETRA_TPETRA
437 #ifdef HAVE_XPETRA_TPETRA
449 #ifdef HAVE_XPETRA_KOKKOS_REFACTOR
450 #ifdef HAVE_XPETRA_TPETRA
508 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& colMap,
514 return rcp(
new TpetraCrsGraph<LocalOrdinal, GlobalOrdinal, Node>(rowMap,
548 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& rowMap,
549 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& colMap,
550 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& domainMap = Teuchos::null,
551 const Teuchos::RCP<
const Map<LocalOrdinal, GlobalOrdinal, Node> >& rangeMap = Teuchos::null,
556 return rcp(
new TpetraCrsGraph<LocalOrdinal, GlobalOrdinal, Node>(lclGraph,
572 #define XPETRA_CRSGRAPHFACTORY_SHORT
static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build(const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const Teuchos::RCP< Teuchos::ParameterList > &plist=Teuchos::null)
static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build(const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map, size_t NumVectors, ProfileType pftype=DynamicProfile)
Constructor specifying the number of non-zeros for all rows.
static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build(const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const Teuchos::RCP< Teuchos::ParameterList > &plist=Teuchos::null)
static RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build(const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map, size_t NumVectors, ProfileType pftype=DynamicProfile)
#define XPETRA_FACTORY_ERROR_IF_EPETRA(lib)
static Teuchos::RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build(const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const Teuchos::RCP< Teuchos::ParameterList > &plist=Teuchos::null)
Constructor specifying column Map and number of entries in each row.
static RCP< CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Build(const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map, size_t NumVectors, ProfileType pftype=DynamicProfile)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
#define XPETRA_FACTORY_END
#define TEUCHOS_UNREACHABLE_RETURN(dummyReturnVal)
CrsGraphFactory()
Private constructor. This is a static class.
#define XPETRA_MONITOR(funcName)
CrsGraphFactory()
Private constructor. This is a static class.
CrsGraphFactory()
Private constructor. This is a static class.