-- |
-- Module:     Data.Vector.Algorithms.Quicksort.Predefined.UPairSequentialAveragingMedianST
-- Copyright:  (c) Sergey Vinokurov 2023
-- License:    Apache-2.0 (see LICENSE)
-- Maintainer: serg.foo@gmail.com

module Data.Vector.Algorithms.Quicksort.Predefined.UPairSequentialAveragingMedianST
  ( sortUPairSequentialAveragingMedianST
  ) where

import Control.Monad.ST
import Data.Int
import Data.Vector.Unboxed qualified as U

import Data.Vector.Algorithms.Quicksort.Parameterised

import Data.Vector.Algorithms.Quicksort.Predefined.AveragingMedian
import Data.Vector.Algorithms.Quicksort.Predefined.Pair
import Data.Vector.Algorithms.Quicksort.Predefined.UPairSequentialMedian3ST ()

{-# NOINLINE sortUPairSequentialAveragingMedianST #-}
sortUPairSequentialAveragingMedianST :: U.MVector s (TestPair Int32 Int32) -> ST s ()
sortUPairSequentialAveragingMedianST :: forall s. MVector s (TestPair Int32 Int32) -> ST s ()
sortUPairSequentialAveragingMedianST = forall p med x (m :: * -> *) a (v :: * -> * -> *).
(Fork2 p x m, Median med a m (PrimState m), PrimMonad m, Ord a,
 MVector v a) =>
p -> med -> v (PrimState m) a -> m ()
sortInplaceFM Sequential
Sequential (forall {k} (a :: k). AveragingMedian a
AveragingMedian @(TestPair Int32 Int32))