Share via


Tensor<T>.TryCopyTo(TensorSpan<T>) Method

Definition

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);
member this.TryCopyTo : TensorSpan -> bool
Public Function TryCopyTo (ByRef 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.

Applies to