IReadOnlyTensor<TSelf,T>.TryCopyTo(TensorSpan<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to copy the contents of this tensor into a destination tensor span and returns a value to indicate whether or not the operation succeeded.
public:
bool TryCopyTo(System::Numerics::Tensors::TensorSpan<T> ^ destination);
public bool TryCopyTo(scoped in System.Numerics.Tensors.TensorSpan<T> destination);
abstract member TryCopyTo : TensorSpan -> bool
Public Function TryCopyTo (destination As TensorSpan(Of T)) As Boolean
Parameters
- destination
- TensorSpan<T>
The target of the copy operation.
Returns
true
if the copy operation succeeded; otherwise, false
.
Remarks
If the source and destination
overlap, the entirety of the source is handled as if it was copied to a temporary ___location before it is copied to destination
.
If the destination
length is shorter than the source, no items are copied and the method returns false
.