Portability | portable |
---|---|
Stability | experimental |
Maintainer | bos@serpentine.com |
Useful functions.
- minMax :: Vector Double -> (Double, Double)
- sort :: (Unbox e, Ord e) => Vector e -> Vector e
- partialSort :: (Unbox e, Ord e) => Int -> Vector e -> Vector e
- indices :: Unbox a => Vector a -> Vector Int
- createU :: Unbox e => forall s. Int -> (Int -> ST s e) -> ST s (Vector e)
- createIO :: Unbox e => Int -> (Int -> IO e) -> IO (Vector e)
Documentation
minMax :: Vector Double -> (Double, Double)Source
Compute the minimum and maximum of an array in one pass.
Partially sort an array, such that the least k elements will be at the front.