[This is preliminary documentation and is subject to change.]

Gathers invididual values provided by each processor 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

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 processr, which will be placed into the element with index Rank in the returned array.
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 with rank i. Supply this argument when you have pre-allocated space for the resulting array.

Type Parameters

Any serializable type.

See Also