Distributed Provider.Try Make Distributed Method
Definition
Namespace: Numerics.NET.Distributed
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Try | Creates a distributed version of a matrix and distributes the data to the device. |
Try | 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.
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
BooleanA 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.
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
BooleanA distributed vector whose local copy is vector.