Scatters an array of values by sending the ith value of the array to processor i.
Namespace:
MPIAssembly: MPI (in MPI.dll)
Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
protected T Scatter<T>( bool isRoot, T[] values, int root ) |
| Visual Basic (Declaration) |
|---|
Protected Function Scatter(Of T) ( _ isRoot As Boolean, _ values As T(), _ root As Integer _ ) As T |
| Visual C++ |
|---|
protected: generic<typename T> T Scatter( bool isRoot, array<T>^ values, int root ) |
Parameters
- isRoot
- Type: System..::.Boolean
Whether this process is root (== root for Intracommunicators, or ==Intercommunicator.Root for Intercommunicators).
- values
- Type: array<
T
>[]()[]
An array of values of length Size, which is only significant at the root. The ith value of this array (at the root process) will be sent to the ith processor.
- root
- Type: System..::.Int32
Rank of the "root" process, which will supply the array of values to be scattered.
Type Parameters
- T
- Any serializable type.