Tensor<T>.CopyFrom 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.3
C#
public abstract Tensor<T> CopyFrom(
	Tensor<T> source,
	Tensor<bool>? mask = null
)

Parameters

source  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.

Return Value

Tensor<T>
The copy of the tensor.

See Also