mkmik / argsort

Return the indices that would sort a slice without mutating the slice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Report Card

Argsort

Package argsort is Go package that implements a variant of the sort function that returns a slice of indices that would sort the array.

The name comes from the popular Python numpy.Argsort function.

About

Return the indices that would sort a slice without mutating the slice

License:MIT License


Languages

Language:Go 100.0%