.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _mpi__mpi_gather: mpi::mpi_gather =============== *#include * **Synopsis** .. rst-class:: cppsynopsis | :green:`template` | std::vector :red:`mpi_gather` (std::vector const & :param:`v`, :ref:`communicator ` :param:`c` = {}, int :param:`root` = 0, bool :param:`all` = false) Template parameters ^^^^^^^^^^^^^^^^^^^ * :param:`T` Value type of the vector. Parameters ^^^^^^^^^^ * :param:`v` std::vector to gather. * :param:`c` mpi::communicator. * :param:`root` Rank of the root process. * :param:`all` Should all processes receive the result of the reduction. Returns ^^^^^^^ std::vector containing the result of the gather operation.