sort

package
v1.0.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2021 License: BSD-3-Clause, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package sort contains functions for sorting slices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgsortFloat

func ArgsortFloat(x []float64) []int

ArgsortFloat returns the indices after sorting an []float64.

func ArgsortInt

func ArgsortInt(x []int) []int

ArgsortInt returns the indices after sorting an []int.

func ByIndicesFloat

func ByIndicesFloat(s []float64, indices []int) []float64

ByIndicesFloat sorts a []float64 by indices.

func ByIndicesInt

func ByIndicesInt(s []int, indices []int) []int

ByIndicesInt sorts a []int by indices.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL