Vector<T>.SortInPlace Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

SortInPlace() Sorts the vector in ascending order.
SortInPlace(SortOrder) Sorts the vector in the specified order.
SortInPlace(SortOrder, Permutation) Sorts the vector in the specified order.

SortInPlace

Sorts the vector in ascending order.
C#
public Vector<T> SortInPlace()

Return Value

Vector<T>

SortInPlace(SortOrder)

Sorts the vector in the specified order.
C#
public virtual Vector<T> SortInPlace(
	SortOrder sortOrder
)

Parameters

sortOrder  SortOrder
A SortOrder value that specifies whether the elements should be sorted in ascending or descending order.

Return Value

Vector<T>

SortInPlace(SortOrder, Permutation)

Sorts the vector in the specified order.
C#
public virtual Vector<T> SortInPlace(
	SortOrder sortOrder,
	out Permutation permutation
)

Parameters

sortOrder  SortOrder
A SortOrder value that specifies whether the elements should be sorted in ascending or descending order.
permutation  Permutation
On return, the permutation that sorts the elements of the vector.

Return Value

Vector<T>

See Also