Broadcast an array from the root process to all processes in the other group.

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


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


Type: array< T >[]()[] %
The array of values to be broadcast. At the root process, this value is read (but not written); at processes in the leaf group, this value will be replaced with the value at the root; and at non-root root group processes, this value is not read or written. Note that the receiving processes must already have allocated enough space in the array to receive data from the root, prior to calling Broadcast.
Type: System..::.Int32
The rank of the process that is broadcasting the values out to all of the processes in the non-root group.

Type Parameters

Any serializable type.

See Also