Tensor<T>.CopyTo Method

Copies the contents of this tensor to another tensor.

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.0
C#
public virtual Tensor<T> CopyTo(
	Tensor<T> destination,
	Tensor<bool>? mask = null,
	TensorElementOrder order = TensorElementOrder.CStyle
)

Parameters

destination  Tensor<T>
The tensor into which values are copied.
mask  Tensor<Boolean>  (Optional)
Optional. A boolean that specifies for which elements the operation should be performed. If null (the default), the operation is applied everywhere.
order  TensorElementOrder  (Optional)
Optional. Specifies the element order of the result. By default, elements are stored in C-style (row-major) order.

Return Value

Tensor<T>
The copy of the tensor.

See Also