containers-accelerate-0.1.0.0: Hashing-based container types

Copyright[2020] Ivo Gabe de Wolff Trevor L. McDonell
LicenseBSD3
MaintainerTrevor L. McDonell <trevor.mcdonell@gmail.com>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Data.Array.Accelerate.Data.Sort.Quick

Description

 
Synopsis

Documentation

sort :: Ord a => Acc (Vector a) -> Acc (Vector a) Source #

A quick-ish stable sort. This is a special case of sortBy which allows the user to supply their own comparison function.

sortBy :: Elt a => (Exp a -> Exp a -> Exp Ordering) -> Acc (Vector a) -> Acc (Vector a) Source #

A non-overloaded version of sort.

It is often convenient to use this together with on, for instance: sortBy (compare on fst)