Function gatherv
boost::mpi::gatherv — Similar to boost::mpi::gather with the difference that the number of values to be send by non-root processes can vary.
Synopsis
template<typename T>
(communicator & comm, in_values,
out_values, sizes,
displs, root);
template<typename T>
(communicator & comm, in_values, in_size,
out_values, sizes,
displs, root);
template<typename T>
(communicator & comm, in_values,
root);
template<typename T>
(communicator & comm, in_values, in_size,
root);
template<typename T>
(communicator & comm, in_values, in_size,
out_values, sizes, root);
template<typename T>
(communicator & comm, in_values,
out_values, sizes, root);
Description
Parameters: |
comm
|
The communicator over which the gather will occur. |
displs
|
A vector such that the i-th entry specifies the displacement (relative to out_values ) from which to take the ingoing data at the root process. Overloaded versions for which displs is omitted assume that the data is to be placed contiguously at the root process. |
in_values
|
The array of values to be transmitted by each process. |
out_values
|
A pointer to storage that will be populated with the values from each process. For non-root processes, this parameter may be omitted. If it is still provided, however, it will be unchanged. |
root
|
The process ID number that will collect the values. This value must be the same on all processes. |
sizes
|
A vector containing the number of elements each non-root process will send. |
|