Tensor Element Order 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#
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
public enum TensorElementOrder
Members
CStyle | 0 | 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. |
FortranStyle | 1 | 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. |
Automatic | 2 | Indicates that when operating on one or more tensors, the optimal element order of the result should be determined automatically. |
Any | 3 | 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. |