49 #ifndef XPETRA_STRIDEDMAPFACTORY_DECL_HPP
50 #define XPETRA_STRIDEDMAPFACTORY_DECL_HPP
63 template<
class LocalOrdinal,
66 class StridedMapFactory
69 #undef XPETRA_STRIDEDMAPFACTORY_SHORT
82 static RCP<Xpetra::StridedMap<LocalOrdinal, GlobalOrdinal, Node>>
85 GlobalOrdinal indexBase,
86 std::vector<size_t>& stridingInfo,
87 const Teuchos::RCP<
const Teuchos::Comm<int>>& comm,
88 LocalOrdinal stridedBlockId = -1,
89 GlobalOrdinal offset = 0,
96 static RCP<StridedMap>
99 size_t numLocalElements,
100 GlobalOrdinal indexBase,
101 std::vector<size_t>& stridingInfo,
102 const Teuchos::RCP<
const Teuchos::Comm<int>>& comm,
103 LocalOrdinal stridedBlockId = -1,
104 GlobalOrdinal offset = 0);
107 static RCP<StridedMap>
108 Build(
const RCP<const Map>& map, std::vector<size_t>& stridingInfo, LocalOrdinal stridedBlockId = -1, GlobalOrdinal offset = 0);
112 static RCP<StridedMap>
113 Build(
const RCP<const StridedMap>& map, LocalOrdinal stridedBlockId);
117 static RCP<StridedMap>
118 Build(
const StridedMap& map);
125 static RCP<StridedMap>
128 const Teuchos::ArrayView<const GlobalOrdinal>& elementList,
129 GlobalOrdinal indexBase,
130 std::vector<size_t>& stridingInfo,
131 const Teuchos::RCP<
const Teuchos::Comm<int>>& comm,
132 LocalOrdinal stridedBlockId = -1,
141 #define XPETRA_STRIDEDMAPFACTORY_SHORT
143 #endif // XPETRA_STRIDEDMAPFACTORY_DECL_HPP__
size_t global_size_t
Global size_t object.
StridedMapFactory()
Private constructor. This is a static class.
static RCP< Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node > > Build(UnderlyingLib lib, global_size_t numGlobalElements, GlobalOrdinal indexBase, std::vector< size_t > &stridingInfo, const Teuchos::RCP< const Teuchos::Comm< int >> &comm, LocalOrdinal stridedBlockId=-1, GlobalOrdinal offset=0, LocalGlobal lg=Xpetra::GloballyDistributed)
Map constructor with Xpetra-defined contiguous uniform distribution.