Collective operation in which every process sends data to every other process. Alltoall differs from Allgather<(Of <(T>)>)(T) in that a given process can send different data to all of the other processes, rather than contributing the same piece of data to all processes.

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


public T[] Alltoall<T>(
	T[] values
Visual Basic (Declaration)
Public Function Alltoall(Of T) ( _
	values As T() _
) As T()
Visual C++
generic<typename T>
array<T>^ Alltoall(
	array<T>^ values


Type: array< T >[]()[]
The array of values that will be sent to each process. The ith value in this array will be sent to the process with rank i.

Type Parameters

Any serializable type.

Return Value

An array of values received from all of the other processes. The jth value in this array will be the value sent to the calling process from the process with rank j.

See Also