Tensor Back End.Min Index<T> Method
Computes the index of the smallest element of a tensor.
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.1
C#
A tensor containing the index of the smallest element of value that satisfy mask along the specified axis.
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.1
public virtual Tensor<int> MinIndex<T>(
Tensor<T> value,
Axes axis,
Tensor<int>? result = null,
bool keepDimensions = false,
Tensor<bool>? mask = null,
bool skipMissingValues = false,
TensorElementOrder order = TensorElementOrder.Automatic
)
Parameters
- value Tensor<T>
- A tensor.
- axis Axes
- The axis along which the index of the smallest element is computed.
- result Tensor<Int32> (Optional)
- Optional. The tensor that is to hold the result. May be null.
- keepDimensions Boolean (Optional)
- Optional. Specifies whether the reduced axis should be retained in the result. The default is false.
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies for which elements should be included in the operation. If null (the default), the operation is applied everywhere.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the operation. The default is false.
- order TensorElementOrder (Optional)
- Optional. If result is null, the desired ordering in memory of the result.
Type Parameters
- T
- The type of the elements of the tensor.
Return Value
Tensor<Int32>A tensor containing the index of the smallest element of value that satisfy mask along the specified axis.
Exceptions
Argument | value is null. |