IReadOnlyTensor<TSelf,T>.CopyTo(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.
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.