TensorIndex 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.3
C#
public readonly struct TensorIndex
Inheritance
Object  →  ValueType  →  TensorIndex

Remarks

Values that can be used as an index include: integers, Index, Range, Range and Slice.

Mixing regular indexing with boolean indexing is not supported.

Properties

End Gets the end index of the TensorIndex.
IsSingleValue Gets whether the index specifies a single value
Start Gets the start index of the TensorIndex.

Methods

EqualsIndicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object))
GetHashCodeReturns the hash code for this instance.
(Overrides ValueType.GetHashCode())
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)

Operators

Equality(TensorIndex, TensorIndex) 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(TensorIndex, TensorIndex) Compares two TensorIndex instances for inequality.

Fields

All Represents an index that spans the entire dimension.
NewAxis Represents an index that creates a new singleton dimension.

See Also