gko::experimental::distributed::
DistributedBase#
Mixin that gives a distributed type access to its MPI communicator
through get_communicator(). Every type in this namespace inherits
from it, so any Matrix, Vector, Partition, RowGatherer, or
preconditioner exposes the underlying mpi::communicator for
direct use in MPI-aware application code.
-
class DistributedBase#
A base class for distributed objects.
This class stores and gives access to the used mpi::communicator object.
Note
The communicator is not changed on assignment.
Subclassed by
gko::experimental::distributed::Vector< to_complex< value_type > >
gko::experimental::distributed::Vector< previous_precision< ValueType > >
gko::experimental::distributed::Vector< previous_precision< ValueType, 2 > >
gko::experimental::distributed::Vector< previous_precision< ValueType, 3 > >
gko::experimental::distributed::Matrix< ValueType, LocalIndexType, GlobalIndexType >
gko::experimental::distributed::RowGatherer< LocalIndexType >
Public Functions
-
inline DistributedBase &operator=(const DistributedBase&)#
Copy assignment that doesn’t change the used mpi::communicator.
- Returns:
unmodified *this
-
inline DistributedBase &operator=(DistributedBase&&) noexcept#
Move assignment that doesn’t change the used mpi::communicator.
- Returns:
unmodified *this
-
inline mpi::communicator get_communicator() const#
Access the used mpi::communicator.
- Returns:
used mpi::communicator