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

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