TensorLayout.ToIndices Method

Converts a linear index to a set of indexes for each dimension according to the layout.

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.0
C#
public void ToIndices(
	int index,
	Span<int> indices
)

Parameters

index  Int32
The linear index to convert.
indices  Span<Int32>
A span to hold the computed indices.

See Also