IReadOnlyTensor<TSelf,T>.CopyTo(TensorSpan<T>) Method

Definition

Copies the contents of the tensor into a destination tensor span.

public:
 void CopyTo(System::Numerics::Tensors::TensorSpan<T> ^ destination);
public void CopyTo(scoped in System.Numerics.Tensors.TensorSpan<T> destination);
abstract member CopyTo : TensorSpan -> unit
Public Sub CopyTo (destination As TensorSpan(Of T))

Parameters

destination
TensorSpan<T>

The destination tensor span.

Exceptions

destination is shorter than the source tensor.

Remarks

This method copies all of the source tensor to destination even if they overlap.

Applies to