Packages

object SortingL

The SortingL companion object provides shortcuts for calling methods from the SortingL class.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SortingL
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def imedian(a: Array[Long], k: Int): Long

    Indirectly find the median value in the array.

    Indirectly find the median value in the array.

    a

    the array to be examined

  2. def iqsort(a: Array[Long]): Array[Int]

    Fast, ascending, unstable indirect sort.

    Fast, ascending, unstable indirect sort.

    a

    the array to be sorted

  3. def iselsort(a: Array[Long]): Array[Int]

    Slow, ascending, stable indirect sort.

    Slow, ascending, stable indirect sort.

    a

    the array to be sorted

  4. def iselsort2(a: Array[Long]): Array[Int]

    Slow, descending, stable indirect sort.

    Slow, descending, stable indirect sort.

    a

    the array to be sorted

  5. def median(a: Array[Long], k_: Int = -1): Long

    Find the median value in the array.

    Find the median value in the array.

    a

    the array to be examined

    k_

    specification for k-th smallest element

  6. def median3(a1: Long, a2: Long, a3: Long): Long

    Find the median of three unordered numbers.

    Find the median of three unordered numbers.

    a1

    the first number

    a2

    the second number

    a3

    the third number

    Annotations
    @inline()
  7. def qsort(a: Array[Long]): Unit

    Fast, ascending, unstable sort.

    Fast, ascending, unstable sort.

    a

    the array to be sorted

  8. def qsort2(a: Array[Long]): Unit

    Fast, descending, unstable sort.

    Fast, descending, unstable sort.

    a

    the array to be sorted

  9. def selsort(a: Array[Long]): Unit

    Slow, ascending, stable sort.

    Slow, ascending, stable sort.

    a

    the array to be sorted

  10. def selsort2(a: Array[Long]): Unit

    Slow, descending, stable sort.

    Slow, descending, stable sort.

    a

    the array to be sorted