DistributedProvider.TryMakeDistributed Method

Definition

Namespace: Numerics.NET.Distributed
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

TryMakeDistributed<T>(Matrix<T>, Boolean, DistributedMatrix<T>) Creates a distributed version of a matrix and distributes the data to the device.
TryMakeDistributed<T>(Vector<T>, Boolean, DistributedVector<T>) Creates a distributed version of a vector and distributes the data to the device.

TryMakeDistributed<T>(Matrix<T>, Boolean, DistributedMatrix<T>)

Creates a distributed version of a matrix and distributes the data to the device.
C#
public bool TryMakeDistributed<T>(
	Matrix<T> matrix,
	bool copyData,
	out DistributedMatrix<T>? result
)
where T : struct, new()

Parameters

matrix  Matrix<T>
A matrix.
copyData  Boolean
true if the matrix elements should be copied to the distributed copy; otherwise false.
result  DistributedMatrix<T>
On return, the distributed matrix.

Type Parameters

T
The element type of the matrix.

Return Value

Boolean
A distributed matrix whose local copy is matrix.

TryMakeDistributed<T>(Vector<T>, Boolean, DistributedVector<T>)

Creates a distributed version of a vector and distributes the data to the device.
C#
public bool TryMakeDistributed<T>(
	Vector<T> vector,
	bool copyData,
	out DistributedVector<T>? result
)
where T : struct, new()

Parameters

vector  Vector<T>
A vector.
copyData  Boolean
true if the vector elements should be copied to the distributed copy; otherwise false.
result  DistributedVector<T>
On return, the distributed vector.

Type Parameters

T
The element type of the vector.

Return Value

Boolean
A distributed vector whose local copy is vector.

See Also