49 #ifndef XPETRA_STRIDEDMAPFACTORY_DECL_HPP
50 #define XPETRA_STRIDEDMAPFACTORY_DECL_HPP
63 template<
class LocalOrdinal,
69 #undef XPETRA_STRIDEDMAPFACTORY_SHORT
85 GlobalOrdinal indexBase,
86 std::vector<size_t>& stridingInfo,
88 LocalOrdinal stridedBlockId = -1,
89 GlobalOrdinal offset = 0,
99 size_t numLocalElements,
100 GlobalOrdinal indexBase,
101 std::vector<size_t>& stridingInfo,
103 LocalOrdinal stridedBlockId = -1,
104 GlobalOrdinal offset = 0);
108 Build(
const RCP<const Map>& map, std::vector<size_t>& stridingInfo, LocalOrdinal stridedBlockId = -1, GlobalOrdinal offset = 0);
129 GlobalOrdinal indexBase,
130 std::vector<size_t>& stridingInfo,
132 LocalOrdinal stridedBlockId = -1,
141 #define XPETRA_STRIDEDMAPFACTORY_SHORT
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.
Class that stores a strided map.
size_t global_size_t
Global size_t object.