Scatter a one dimensional array to all processes of the other group, where the number of data items sent to each process may differ.

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


public void ScatterFromFlattened<T>(
	T[] inValues,
	int[] counts,
	int root,
	ref T[] outValues
Visual Basic (Declaration)
Public Sub ScatterFromFlattened(Of T) ( _
	inValues As T(), _
	counts As Integer(), _
	root As Integer, _
	ByRef outValues As T() _
Visual C++
generic<typename T>
void ScatterFromFlattened(
	array<T>^ inValues, 
	array<int>^ counts, 
	int root, 
	array<T>^% outValues


Type: array< T >[]()[]
The array to be scattered. Only significant at the root.
Type: array< System..::.Int32 >[]()[]
The number of items to be received by each process. If T must be serialized (i.e. is not a value type), counts is ignored at processes other than the root.
Type: System..::.Int32
Used to indicate the process gathering the data. At the root, should be Root. At leaf group processes should be the rank of the root process in the root group. At non-root processes in the root group, should be Null.
Type: array< T >[]()[] %
The array to write to at the receiving process. Does not have to be preallocated.

Type Parameters

Any serializable type.

See Also