Efficient Haskell equivalent to NumPy's argsort
问题 Is there a standard Haskell equivalent to NumPy's argsort function? I'm using HMatrix and, so, would like a function compatible with Vector R which is an alias for Data.Vector.Storable.Vector Double . The argSort function below is the implementation I'm currently using: {-# LANGUAGE NoImplicitPrelude #-} module Main where import qualified Data.List as L import qualified Data.Vector as V import qualified Data.Vector.Storable as VS import Prelude (($), Double, IO, Int, compare, print, snd) a ::