Scatter a one dimensional array to all processes, where multiple items are sent to each process. (If the number of items to be sent is different, see ScatterFromFlattened<(Of <(T>)>)(array<T>[]()[], array<Int32>[]()[], Int32, array<T>[]()[]%)

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

Syntax

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

Parameters

inValues
Type: array< T >[]()[]
The array to be scattered. Only significant at the root.
count
Type: System..::.Int32
The number of items to be received by each process. If T is a value type (primitive or structure) count must be the same at each process (not just at the root). If T must be serialized, count 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