Broadcast a value from the root process to all processes in the other group.

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

Syntax

C#
public void Broadcast<T>(
	ref T value,
	int root
)
Visual Basic (Declaration)
Public Sub Broadcast(Of T) ( _
	ByRef value As T, _
	root As Integer _
)
Visual C++
public:
generic<typename T>
void Broadcast(
	T% value, 
	int root
)

Parameters

value
Type: T %
The value to be broadcast. At the root process, this value is read (but not written). At leaf group processes, this value will be replaced with the value at the root. At non-root processes in the root group, this value is not read or written.
root
Type: System..::.Int32
The rank of the process that is broadcasting the value out to all of the processes in the non-root group.

Type Parameters

T
Any serializable type.

See Also