Tensor<T>.ToArray Method

Gets the elements of the tensor as an array in the specified order.

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.0
C#
public abstract T[] ToArray(
	TensorElementOrder order = TensorElementOrder.CStyle
)

Parameters

order  TensorElementOrder  (Optional)
Optional. Specifies the element order of the result. By default, elements are listed in C-style (row-major) order.

Return Value

T[]
An array that contains a copy of the elements of the tensor in the order specified by order.

See Also