Language

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, or the source and destination overlap in an unsupported layout.

Remarks

Overlapping dense tensors with equal element counts and identical views are supported. Other overlapping layouts are rejected before copying.

Applies to