Scatter a one dimensional array to all processes of the other group, where the number of data items sent to each process may differ. This version should be called by members of the leaf group.

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

Syntax

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

Parameters

counts
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.
root
Type: System..::.Int32
The rank of the root process.
outValues
Type: array< T >[]()[] %
The array to write to at the receiving process. Does not have to be preallocated.

Type Parameters

T
Any serializable type.

See Also