Tensor Index Structure
Represents a unified view of values that can serve
as an index to a tensor.
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.1
C#
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.1
public readonly struct TensorIndex
Remarks
Values that can be used as an index include: integers, integers, Index, Range, Range and Slice.
Mixing regular indexing with boolean indexing is not supported.
Properties
End | Gets the end index of the TensorIndex. |
IsSingle | Gets whether the index specifies a single value |
Start | Gets the start index of the TensorIndex. |
Methods
Equals | Indicates whether this instance and a specified object are equal. (Overrides ValueType.Equals(Object)) |
Get | Returns the hash code for this instance. (Overrides ValueType.GetHashCode()) |
Get | Gets the Type of the current instance. (Inherited from Object) |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType) |
Operators
Equality( | Compares two TensorIndex instances for equality. |
Implicit(Index to TensorIndex) | Implicitly converts a Index to a TensorIndex. |
Implicit(Int32 to TensorIndex) | Implicitly converts an integer to a TensorIndex. |
Implicit(Range to TensorIndex) | Implicitly converts a Range to a TensorIndex. |
Implicit(Range to TensorIndex) | Implicitly converts a Range to a TensorIndex. |
Implicit(Slice to TensorIndex) | Implicitly converts a Slice to a TensorIndex. |
Inequality( | Compares two TensorIndex instances for inequality. |
Fields
All | Represents an index that spans the entire dimension. |
New | Represents an index that creates a new singleton dimension. |