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

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

Syntax

C#
public T[] ScatterFromFlattened<T>(
	T[] inValues,
	int[] counts,
	int root
)
Visual Basic (Declaration)
Public Function ScatterFromFlattened(Of T) ( _
	inValues As T(), _
	counts As Integer(), _
	root As Integer _
) As T()
Visual C++
public:
generic<typename T>
array<T>^ ScatterFromFlattened(
	array<T>^ inValues, 
	array<int>^ counts, 
	int root
)

Parameters

inValues
Type: array< T >[]()[]
The array to be scattered. Only significant at the root.
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.

Type Parameters

T
Any serializable type.

See Also