Xpetra
Version of the Day
|
#include <Xpetra_Map_decl.hpp>
Public Types | |
typedef LocalOrdinal | local_ordinal_type |
typedef GlobalOrdinal | global_ordinal_type |
typedef Node | node_type |
typedef Kokkos::View< const global_ordinal_type *, typename Node::device_type > | global_indices_array_device_type |
Constructor/Destructor Methods | |
virtual | ~Map () |
Destructor. More... | |
Attributes | |
virtual global_size_t | getGlobalNumElements () const =0 |
The number of elements in this Map. More... | |
virtual size_t | getLocalNumElements () const =0 |
The number of elements belonging to the calling process. More... | |
virtual GlobalOrdinal | getIndexBase () const =0 |
The index base for this Map. More... | |
virtual LocalOrdinal | getMinLocalIndex () const =0 |
The minimum local index. More... | |
virtual LocalOrdinal | getMaxLocalIndex () const =0 |
The maximum local index on the calling process. More... | |
virtual GlobalOrdinal | getMinGlobalIndex () const =0 |
The minimum global index owned by the calling process. More... | |
virtual GlobalOrdinal | getMaxGlobalIndex () const =0 |
The maximum global index owned by the calling process. More... | |
virtual GlobalOrdinal | getMinAllGlobalIndex () const =0 |
The minimum global index over all processes in the communicator. More... | |
virtual GlobalOrdinal | getMaxAllGlobalIndex () const =0 |
The maximum global index over all processes in the communicator. More... | |
virtual LocalOrdinal | getLocalElement (GlobalOrdinal globalIndex) const =0 |
The local index corresponding to the given global index. More... | |
virtual GlobalOrdinal | getGlobalElement (LocalOrdinal localIndex) const =0 |
The global index corresponding to the given local index. More... | |
virtual LookupStatus | getRemoteIndexList (const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList, const Teuchos::ArrayView< LocalOrdinal > &LIDList) const =0 |
Return the process ranks and corresponding local indices for the given global indices. More... | |
virtual LookupStatus | getRemoteIndexList (const Teuchos::ArrayView< const GlobalOrdinal > &GIDList, const Teuchos::ArrayView< int > &nodeIDList) const =0 |
Return the process ranks for the given global indices. More... | |
virtual Teuchos::ArrayView < const GlobalOrdinal > | getLocalElementList () const =0 |
Return a view of the global indices owned by this process. More... | |
virtual global_indices_array_device_type | getMyGlobalIndicesDevice () const =0 |
Return a view of the global indices owned by this process on the Map's device. More... | |
Boolean tests | |
virtual bool | isNodeLocalElement (LocalOrdinal localIndex) const =0 |
Whether the given local index is valid for this Map on this process. More... | |
virtual bool | isNodeGlobalElement (GlobalOrdinal globalIndex) const =0 |
Whether the given global index is valid for this Map on this process. More... | |
virtual bool | isContiguous () const =0 |
True if this Map is distributed contiguously, else false. More... | |
virtual bool | isDistributed () const =0 |
Whether this Map is globally distributed or locally replicated. More... | |
virtual bool | isCompatible (const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const =0 |
True if and only if map is compatible with this Map. More... | |
virtual bool | isSameAs (const Map< LocalOrdinal, GlobalOrdinal, Node > &map) const =0 |
True if and only if map is identical to this Map. More... | |
virtual Teuchos::RCP< const Teuchos::Comm< int > > | getComm () const =0 |
Get this Map's Comm object. More... | |
virtual std::string | description () const =0 |
Return a simple one-line description of this object. More... | |
virtual void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const =0 |
Print this object with the given verbosity level to the given Teuchos::FancyOStream. More... | |
virtual RCP< const Map < LocalOrdinal, GlobalOrdinal, Node > > | removeEmptyProcesses () const =0 |
Return a new Map with processes with zero elements removed. More... | |
virtual RCP< const Map < LocalOrdinal, GlobalOrdinal, Node > > | replaceCommWithSubset (const Teuchos::RCP< const Teuchos::Comm< int > > &newComm) const =0 |
Replace this Map's communicator with a subset communicator. More... | |
Xpetra specific | |
typedef Tpetra::Map < LocalOrdinal, GlobalOrdinal, Node >::local_map_type | local_map_type |
virtual UnderlyingLib | lib () const =0 |
Get the library used by this object (Tpetra or Epetra?) More... | |
virtual RCP< const Xpetra::Map < LocalOrdinal, GlobalOrdinal, Node > > | getMap () const |
virtual local_map_type | getLocalMap () const =0 |
Get the local Map for Kokkos kernels. More... | |
Definition at line 48 of file Xpetra_Map_decl.hpp.
typedef LocalOrdinal Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node >::local_ordinal_type |
Definition at line 51 of file Xpetra_Map_decl.hpp.
typedef GlobalOrdinal Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node >::global_ordinal_type |
Definition at line 52 of file Xpetra_Map_decl.hpp.
typedef Node Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node >::node_type |
Definition at line 53 of file Xpetra_Map_decl.hpp.
typedef Kokkos::View<const global_ordinal_type *, typename Node::device_type> Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node >::global_indices_array_device_type |
Definition at line 55 of file Xpetra_Map_decl.hpp.
typedef Tpetra::Map<LocalOrdinal, GlobalOrdinal, Node>::local_map_type Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node >::local_map_type |
Definition at line 187 of file Xpetra_Map_decl.hpp.
|
virtual |
Destructor.
Definition at line 19 of file Xpetra_Map_def.hpp.
|
pure virtual |
The number of elements in this Map.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The number of elements belonging to the calling process.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The index base for this Map.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The minimum local index.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The maximum local index on the calling process.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The minimum global index owned by the calling process.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The maximum global index owned by the calling process.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The minimum global index over all processes in the communicator.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The maximum global index over all processes in the communicator.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The local index corresponding to the given global index.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
The global index corresponding to the given local index.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Return the process ranks and corresponding local indices for the given global indices.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Return the process ranks for the given global indices.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Return a view of the global indices owned by this process.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Return a view of the global indices owned by this process on the Map's device.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Whether the given local index is valid for this Map on this process.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Whether the given global index is valid for this Map on this process.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
True if this Map is distributed contiguously, else false.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Whether this Map is globally distributed or locally replicated.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
True if and only if map is compatible with this Map.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
True if and only if map is identical to this Map.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Get this Map's Comm object.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Return a simple one-line description of this object.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Print this object with the given verbosity level to the given Teuchos::FancyOStream.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Return a new Map with processes with zero elements removed.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Replace this Map's communicator with a subset communicator.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
pure virtual |
Get the library used by this object (Tpetra or Epetra?)
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.
|
virtual |
Reimplemented in Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 24 of file Xpetra_Map_def.hpp.
|
pure virtual |
Get the local Map for Kokkos kernels.
Implemented in Xpetra::EpetraMapT< long long, EpetraNode >, Xpetra::EpetraMapT< int, EpetraNode >, Xpetra::TpetraMap< int, long long, EpetraNode >, Xpetra::TpetraMap< int, int, EpetraNode >, Xpetra::BlockedMap< LocalOrdinal, GlobalOrdinal, Node >, Xpetra::EpetraMapT< GlobalOrdinal, Node >, Xpetra::StridedMap< LocalOrdinal, GlobalOrdinal, Node >, and Xpetra::TpetraMap< LocalOrdinal, GlobalOrdinal, Node >.