Gathers individual values provided by each processor from the other group into an array of values in which the ith element of the array corresponds to the value provided by the processor with rank i. The resulting array of values is available to all of the processors.

Namespace:  MPI
Assembly:  MPI (in MPI.dll)
Version: (


public void Allgather<T>(
	T inValue,
	ref T[] outValues
Visual Basic (Declaration)
Public Sub Allgather(Of T) ( _
	inValue As T, _
	ByRef outValues As T() _
Visual C++
generic<typename T>
void Allgather(
	T inValue, 
	array<T>^% outValues


Type: T
The value supplied by this processor, which will be placed into the element with index Rank in the array sent to processes in the other group.
Type: array< T >[]()[] %
An array of values, where the ith value in the array is a copy of the inValue argument provided by the processor from the other group with rank i. Supply this argument when you have pre-allocated space for the resulting array.

Type Parameters

Any serializable type.

See Also