TensorElementOrder Enumeration

Enumerates the ways the elements of a tensor may be laid out in memory.

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
C#
public enum TensorElementOrder

Members

CStyle0 The elements are arranged so the last index changes the fastest. This is how multi-dimensional arrays in C/C# are laid out. For 2D arrays, this is also called row-major order.
FortranStyle1 The elements are arranged so the first index changes the fastest. This is how multi-dimensional arrays in Fortran are laid out. For 2D arrays, this is also called column-major order.
Automatic2 Indicates that when operating on one or more tensors, the optimal element order of the result should be determined automatically.
Any3 Indicates that when operating on a tensor, the result should keep the same element order as the tensor if it is in Fortran style order and storage is contiguous; otherwise C-style order should be used.

See Also