Tensor Back End.Sort In Place Method
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Overload List
Sort | Sorts the elements of a tensor in place. |
Sort | Sorts the elements of a tensor in place. |
SortInPlace<T>(Tensor<T>, Index, Tensor<Boolean>)
Sorts the elements of a tensor in place.
public virtual Tensor<T> SortInPlace<T>(
Tensor<T> value,
Index axis,
Tensor<bool>? mask = null
)
Parameters
- value Tensor<T>
- A tensor.
- axis Index
- The axis along which the transformation is computed.
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies whether the operation should be performed at the location. If omitted, the operation is performed everywhere.
Type Parameters
- T
- The type of the elements of the tensor.
Return Value
Tensor<T>This tensor with the elements replaced with their sorted along the dimension axis.
Exceptions
Argument | value is null. |
SortInPlace<T>(Tensor<T>, Index, IComparer<T>, Tensor<Boolean>)
Sorts the elements of a tensor in place.
public abstract Tensor<T> SortInPlace<T>(
Tensor<T> tensor,
Index axis,
IComparer<T> comparer,
Tensor<bool>? mask = null
)
Parameters
- tensor Tensor<T>
- A tensor.
- axis Index
- The axis along which the operation is to be performed.
- comparer IComparer<T>
- The IComparer<T> implementation to use when comparing elements, or null to use Comparer.
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies whether the operation should be performed at the location. If omitted, the operation is performed everywhere.
Type Parameters
- T
Return Value
Tensor<T>This tensor with the elements replaced with their sorted along the dimension axis.