.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _triqs__gfs__mpi_reduce: triqs::gfs::mpi_reduce ====================== *#include * **Synopsis** .. rst-class:: cppsynopsis 1. | :green:`template` | lazy> :red:`mpi_reduce` (:ref:`block_gf\ ` const & :param:`a`, | :ref:`communicator ` :param:`c` = {}, | int :param:`root` = 0, | bool :param:`all` = false, | MPI_Op :param:`op` = MPI_SUM) 2. | :green:`template` | lazy> :red:`mpi_reduce` (block_gf_view const & :param:`a`, | :ref:`communicator ` :param:`c` = {}, | int :param:`root` = 0, | bool :param:`all` = false, | MPI_Op :param:`op` = MPI_SUM) Documentation **1)** Initiate (lazy) MPI Reduce When the returned object is used at the RHS of operator = or in a constructor of a gf, the MPI Reduce operation is performed. **2)** Initiate (lazy) MPI Reduce When the returned object is used at the RHS of operator = or in a constructor of a gf, the MPI Reduce operation is performed. Parameters ^^^^^^^^^^ * :param:`g` The Green function * :param:`c` The MPI communicator (default is world) * :param:`root` The root of the broadcast communication in the MPI sense. Returns ^^^^^^^ Returns a lazy object describing the object and the MPI operation to be performed.