Tensor<T>.SortInPlace Method

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3

Overload List

SortInPlace(Index, Tensor<Boolean>) Sorts the elements of a tensor in place.
SortInPlace(Index, IComparer<T>, Tensor<Boolean>) Sorts the elements of a tensor in place.

SortInPlace(Index, Tensor<Boolean>)

Sorts the elements of a tensor in place.
C#
public Tensor<T> SortInPlace(
	Index axis,
	Tensor<bool>? mask = null
)

Parameters

axis  Index
The axis along which the operation is to be performed.
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.

Return Value

Tensor<T>
This tensor with the elements replaced with their sorted along the dimension axis.

SortInPlace(Index, IComparer<T>, Tensor<Boolean>)

Sorts the elements of a tensor in place.
C#
public Tensor<T> SortInPlace(
	Index axis,
	IComparer<T> comparer,
	Tensor<bool>? mask = null
)

Parameters

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.

Return Value

Tensor<T>
This tensor with the elements replaced with their sorted along the dimension axis.

See Also