Tensor.CreateFromSpan<T> Method

Constructs a 1-dimensional tensor from a span.

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.1
C#
public static Tensor<T> CreateFromSpan<T>(
	ReadOnlySpan<T> values
)

Parameters

values  ReadOnlySpan<T>
A span containing the elements of the new tensor.

Type Parameters

T
The type of the elements of the tensor.

Return Value

Tensor<T>
A 1-dimensional tensor of the same shape and with the same elements as values.

See Also