vector-0.12.3.1: Efficient Arrays
Copyright(c) Roman Leshchinskiy 2009-2010
LicenseBSD-style
MaintainerRoman Leshchinskiy <rl@cse.unsw.edu.au>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Data.Vector.Unboxed

Description

Adaptive unboxed vectors. The implementation is based on type families and picks an efficient, specialised representation for every element type. In particular, unboxed vectors of pairs are represented as pairs of unboxed vectors.

Implementing unboxed vectors for new data types can be very easy. Here is how the library does this for Complex by simply wrapping vectors of pairs.

newtype instance MVector s (Complex a) = MV_Complex (MVector s (a,a))
newtype instance Vector    (Complex a) = V_Complex  (Vector    (a,a))

instance (RealFloat a, Unbox a) => MVector MVector (Complex a) where
  {-# INLINE basicLength #-}
  basicLength (MV_Complex v) = basicLength v
  ...

instance (RealFloat a, Unbox a) => Data.Vector.Generic.Vector Vector (Complex a) where
  {-# INLINE basicLength #-}
  basicLength (V_Complex v) = Data.Vector.Generic.basicLength v
  ...

instance (RealFloat a, Unbox a) => Unbox (Complex a)
Synopsis

Unboxed vectors

data family Vector a Source #

Instances

Instances details
NFData1 Vector Source #

Since: 0.12.1.0

Instance details

Defined in Data.Vector.Unboxed.Base

Methods

liftRnf :: (a -> ()) -> Vector a -> () Source #

Vector Vector Bool Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Char Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Double Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Float Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Int Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Int8 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Int16 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Int32 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Int64 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Word Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Word8 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Word16 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Word32 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Word64 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector () Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector All Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Vector Vector Any Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => Vector Vector (Complex a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => Vector Vector (Min a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => Vector Vector (Max a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => Vector Vector (First a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => Vector Vector (Last a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => Vector Vector (WrappedMonoid a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => Vector Vector (Identity a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => Vector Vector (Dual a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => Vector Vector (Sum a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => Vector Vector (Product a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => Vector Vector (Down a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

(Unbox a, Unbox b) => Vector Vector (a, b) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (a, b) -> m (Vector (a, b)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (a, b) -> m (Mutable Vector (PrimState m) (a, b)) Source #

basicLength :: Vector (a, b) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (a, b) -> Vector (a, b) Source #

basicUnsafeIndexM :: Monad m => Vector (a, b) -> Int -> m (a, b) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (a, b) -> Vector (a, b) -> m () Source #

elemseq :: Vector (a, b) -> (a, b) -> b0 -> b0 Source #

(Unbox a, Unbox b) => Vector Vector (Arg a b) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (Arg a b) -> m (Vector (Arg a b)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (Arg a b) -> m (Mutable Vector (PrimState m) (Arg a b)) Source #

basicLength :: Vector (Arg a b) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (Arg a b) -> Vector (Arg a b) Source #

basicUnsafeIndexM :: Monad m => Vector (Arg a b) -> Int -> m (Arg a b) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (Arg a b) -> Vector (Arg a b) -> m () Source #

elemseq :: Vector (Arg a b) -> Arg a b -> b0 -> b0 Source #

(Unbox a, Unbox b, Unbox c) => Vector Vector (a, b, c) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (a, b, c) -> m (Vector (a, b, c)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (a, b, c) -> m (Mutable Vector (PrimState m) (a, b, c)) Source #

basicLength :: Vector (a, b, c) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (a, b, c) -> Vector (a, b, c) Source #

basicUnsafeIndexM :: Monad m => Vector (a, b, c) -> Int -> m (a, b, c) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (a, b, c) -> Vector (a, b, c) -> m () Source #

elemseq :: Vector (a, b, c) -> (a, b, c) -> b0 -> b0 Source #

Unbox a => Vector Vector (Const a b) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (Const a b) -> m (Vector (Const a b)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (Const a b) -> m (Mutable Vector (PrimState m) (Const a b)) Source #

basicLength :: Vector (Const a b) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (Const a b) -> Vector (Const a b) Source #

basicUnsafeIndexM :: Monad m => Vector (Const a b) -> Int -> m (Const a b) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (Const a b) -> Vector (Const a b) -> m () Source #

elemseq :: Vector (Const a b) -> Const a b -> b0 -> b0 Source #

Unbox (f a) => Vector Vector (Alt f a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (Alt f a) -> m (Vector (Alt f a)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (Alt f a) -> m (Mutable Vector (PrimState m) (Alt f a)) Source #

basicLength :: Vector (Alt f a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (Alt f a) -> Vector (Alt f a) Source #

basicUnsafeIndexM :: Monad m => Vector (Alt f a) -> Int -> m (Alt f a) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (Alt f a) -> Vector (Alt f a) -> m () Source #

elemseq :: Vector (Alt f a) -> Alt f a -> b -> b Source #

(Unbox a, Unbox b, Unbox c, Unbox d) => Vector Vector (a, b, c, d) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (a, b, c, d) -> m (Vector (a, b, c, d)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (a, b, c, d) -> m (Mutable Vector (PrimState m) (a, b, c, d)) Source #

basicLength :: Vector (a, b, c, d) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (a, b, c, d) -> Vector (a, b, c, d) Source #

basicUnsafeIndexM :: Monad m => Vector (a, b, c, d) -> Int -> m (a, b, c, d) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (a, b, c, d) -> Vector (a, b, c, d) -> m () Source #

elemseq :: Vector (a, b, c, d) -> (a, b, c, d) -> b0 -> b0 Source #

(Unbox a, Unbox b, Unbox c, Unbox d, Unbox e) => Vector Vector (a, b, c, d, e) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (a, b, c, d, e) -> m (Vector (a, b, c, d, e)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (a, b, c, d, e) -> m (Mutable Vector (PrimState m) (a, b, c, d, e)) Source #

basicLength :: Vector (a, b, c, d, e) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (a, b, c, d, e) -> Vector (a, b, c, d, e) Source #

basicUnsafeIndexM :: Monad m => Vector (a, b, c, d, e) -> Int -> m (a, b, c, d, e) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (a, b, c, d, e) -> Vector (a, b, c, d, e) -> m () Source #

elemseq :: Vector (a, b, c, d, e) -> (a, b, c, d, e) -> b0 -> b0 Source #

Unbox (f (g a)) => Vector Vector (Compose f g a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (Compose f g a) -> m (Vector (Compose f g a)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (Compose f g a) -> m (Mutable Vector (PrimState m) (Compose f g a)) Source #

basicLength :: Vector (Compose f g a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (Compose f g a) -> Vector (Compose f g a) Source #

basicUnsafeIndexM :: Monad m => Vector (Compose f g a) -> Int -> m (Compose f g a) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (Compose f g a) -> Vector (Compose f g a) -> m () Source #

elemseq :: Vector (Compose f g a) -> Compose f g a -> b -> b Source #

(Unbox a, Unbox b, Unbox c, Unbox d, Unbox e, Unbox f) => Vector Vector (a, b, c, d, e, f) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (a, b, c, d, e, f) -> m (Vector (a, b, c, d, e, f)) Source #

basicUnsafeThaw :: PrimMonad m => Vector (a, b, c, d, e, f) -> m (Mutable Vector (PrimState m) (a, b, c, d, e, f)) Source #

basicLength :: Vector (a, b, c, d, e, f) -> Int Source #

basicUnsafeSlice :: Int -> Int -> Vector (a, b, c, d, e, f) -> Vector (a, b, c, d, e, f) Source #

basicUnsafeIndexM :: Monad m => Vector (a, b, c, d, e, f) -> Int -> m (a, b, c, d, e, f) Source #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (a, b, c, d, e, f) -> Vector (a, b, c, d, e, f) -> m () Source #

elemseq :: Vector (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> b0 -> b0 Source #

Unbox e => IsList (Vector e) Source # 
Instance details

Defined in Data.Vector.Unboxed

Associated Types

type Item (Vector e) Source #

Methods

fromList :: [Item (Vector e)] -> Vector e Source #

fromListN :: Int -> [Item (Vector e)] -> Vector e Source #

toList :: Vector e -> [Item (Vector e)] Source #

(Unbox a, Eq a) => Eq (Vector a) Source # 
Instance details

Defined in Data.Vector.Unboxed

Methods

(==) :: Vector a -> Vector a -> Bool Source #

(/=) :: Vector a -> Vector a -> Bool Source #

(Data a, Unbox a) => Data (Vector a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Vector a -> c (Vector a) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Vector a) Source #

toConstr :: Vector a -> Constr Source #

dataTypeOf :: Vector a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Vector a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Vector a)) Source #

gmapT :: (forall b. Data b => b -> b) -> Vector a -> Vector a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Vector a -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Vector a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Vector a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Vector a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Vector a -> m (Vector a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Vector a -> m (Vector a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Vector a -> m (Vector a) Source #

(Unbox a, Ord a) => Ord (Vector a) Source # 
Instance details

Defined in Data.Vector.Unboxed

Methods

compare :: Vector a -> Vector a -> Ordering Source #

(<) :: Vector a -> Vector a -> Bool Source #

(<=) :: Vector a -> Vector a -> Bool Source #

(>) :: Vector a -> Vector a -> Bool Source #

(>=) :: Vector a -> Vector a -> Bool Source #

max :: Vector a -> Vector a -> Vector a Source #

min :: Vector a -> Vector a -> Vector a Source #

(Read a, Unbox a) => Read (Vector a) Source # 
Instance details

Defined in Data.Vector.Unboxed

(Show a, Unbox a) => Show (Vector a) Source # 
Instance details

Defined in Data.Vector.Unboxed

Unbox a => Semigroup (Vector a) Source # 
Instance details

Defined in Data.Vector.Unboxed

Methods

(<>) :: Vector a -> Vector a -> Vector a Source #

sconcat :: NonEmpty (Vector a) -> Vector a Source #

stimes :: Integral b => b -> Vector a -> Vector a Source #

Unbox a => Monoid (Vector a) Source # 
Instance details

Defined in Data.Vector.Unboxed

NFData (Vector a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

rnf :: Vector a -> () Source #

type Mutable Vector Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Bool Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Char Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Double Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Float Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Int Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Int = V_Int (Vector Int)
newtype Vector Int8 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Int16 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Int32 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Int64 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Word Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Word8 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Word16 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Word32 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Word64 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector () Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector () = V_Unit Int
newtype Vector All Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector All = V_All (Vector Bool)
newtype Vector Any Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector Any = V_Any (Vector Bool)
type Item (Vector e) Source # 
Instance details

Defined in Data.Vector.Unboxed

type Item (Vector e) = e
newtype Vector (Complex a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Complex a) = V_Complex (Vector (a, a))
newtype Vector (Min a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Min a) = V_Min (Vector a)
newtype Vector (Max a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Max a) = V_Max (Vector a)
newtype Vector (First a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (First a) = V_First (Vector a)
newtype Vector (Last a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Last a) = V_Last (Vector a)
newtype Vector (WrappedMonoid a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Identity a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Identity a) = V_Identity (Vector a)
newtype Vector (Dual a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Dual a) = V_Dual (Vector a)
newtype Vector (Sum a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Sum a) = V_Sum (Vector a)
newtype Vector (Product a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Product a) = V_Product (Vector a)
newtype Vector (Down a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Down a) = V_Down (Vector a)
data Vector (a, b) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

data Vector (a, b) = V_2 !Int !(Vector a) !(Vector b)
newtype Vector (Arg a b) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Arg a b) = V_Arg (Vector (a, b))
data Vector (a, b, c) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

data Vector (a, b, c) = V_3 !Int !(Vector a) !(Vector b) !(Vector c)
newtype Vector (Const a b) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Const a b) = V_Const (Vector a)
newtype Vector (Alt f a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Alt f a) = V_Alt (Vector (f a))
data Vector (a, b, c, d) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

data Vector (a, b, c, d) = V_4 !Int !(Vector a) !(Vector b) !(Vector c) !(Vector d)
data Vector (a, b, c, d, e) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

data Vector (a, b, c, d, e) = V_5 !Int !(Vector a) !(Vector b) !(Vector c) !(Vector d) !(Vector e)
newtype Vector (Compose f g a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype Vector (Compose f g a) = V_Compose (Vector (f (g a)))
data Vector (a, b, c, d, e, f) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

data Vector (a, b, c, d, e, f) = V_6 !Int !(Vector a) !(Vector b) !(Vector c) !(Vector d) !(Vector e) !(Vector f)

data family MVector s a Source #

Instances

Instances details
MVector MVector Bool Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Char Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Double Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Float Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Int Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Int8 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Int16 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Int32 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Int64 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Word Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Word8 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Word16 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Word32 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Word64 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector () Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector All Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

MVector MVector Any Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector (Complex a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector (Min a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector (Max a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector (First a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector (Last a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector (WrappedMonoid a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector (Identity a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector (Dual a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector (Sum a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector (Product a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Unbox a => MVector MVector (Down a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

(Unbox a, Unbox b) => MVector MVector (a, b) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicLength :: MVector s (a, b) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (a, b) -> MVector s (a, b) Source #

basicOverlaps :: MVector s (a, b) -> MVector s (a, b) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (a, b)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (a, b) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> (a, b) -> m (MVector (PrimState m) (a, b)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (a, b) -> Int -> m (a, b) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (a, b) -> Int -> (a, b) -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (a, b) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (a, b) -> (a, b) -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (a, b) -> MVector (PrimState m) (a, b) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (a, b) -> MVector (PrimState m) (a, b) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (a, b) -> Int -> m (MVector (PrimState m) (a, b)) Source #

(Unbox a, Unbox b) => MVector MVector (Arg a b) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicLength :: MVector s (Arg a b) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (Arg a b) -> MVector s (Arg a b) Source #

basicOverlaps :: MVector s (Arg a b) -> MVector s (Arg a b) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (Arg a b)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (Arg a b) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> Arg a b -> m (MVector (PrimState m) (Arg a b)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (Arg a b) -> Int -> m (Arg a b) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (Arg a b) -> Int -> Arg a b -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (Arg a b) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (Arg a b) -> Arg a b -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (Arg a b) -> MVector (PrimState m) (Arg a b) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (Arg a b) -> MVector (PrimState m) (Arg a b) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (Arg a b) -> Int -> m (MVector (PrimState m) (Arg a b)) Source #

(Unbox a, Unbox b, Unbox c) => MVector MVector (a, b, c) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicLength :: MVector s (a, b, c) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (a, b, c) -> MVector s (a, b, c) Source #

basicOverlaps :: MVector s (a, b, c) -> MVector s (a, b, c) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (a, b, c)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (a, b, c) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> (a, b, c) -> m (MVector (PrimState m) (a, b, c)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (a, b, c) -> Int -> m (a, b, c) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (a, b, c) -> Int -> (a, b, c) -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (a, b, c) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (a, b, c) -> (a, b, c) -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (a, b, c) -> MVector (PrimState m) (a, b, c) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (a, b, c) -> MVector (PrimState m) (a, b, c) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (a, b, c) -> Int -> m (MVector (PrimState m) (a, b, c)) Source #

Unbox a => MVector MVector (Const a b) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicLength :: MVector s (Const a b) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (Const a b) -> MVector s (Const a b) Source #

basicOverlaps :: MVector s (Const a b) -> MVector s (Const a b) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (Const a b)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (Const a b) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> Const a b -> m (MVector (PrimState m) (Const a b)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (Const a b) -> Int -> m (Const a b) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (Const a b) -> Int -> Const a b -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (Const a b) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (Const a b) -> Const a b -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (Const a b) -> MVector (PrimState m) (Const a b) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (Const a b) -> MVector (PrimState m) (Const a b) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (Const a b) -> Int -> m (MVector (PrimState m) (Const a b)) Source #

Unbox (f a) => MVector MVector (Alt f a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicLength :: MVector s (Alt f a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (Alt f a) -> MVector s (Alt f a) Source #

basicOverlaps :: MVector s (Alt f a) -> MVector s (Alt f a) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (Alt f a)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (Alt f a) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> Alt f a -> m (MVector (PrimState m) (Alt f a)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (Alt f a) -> Int -> m (Alt f a) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (Alt f a) -> Int -> Alt f a -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (Alt f a) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (Alt f a) -> Alt f a -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (Alt f a) -> MVector (PrimState m) (Alt f a) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (Alt f a) -> MVector (PrimState m) (Alt f a) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (Alt f a) -> Int -> m (MVector (PrimState m) (Alt f a)) Source #

(Unbox a, Unbox b, Unbox c, Unbox d) => MVector MVector (a, b, c, d) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicLength :: MVector s (a, b, c, d) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (a, b, c, d) -> MVector s (a, b, c, d) Source #

basicOverlaps :: MVector s (a, b, c, d) -> MVector s (a, b, c, d) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (a, b, c, d)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (a, b, c, d) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> (a, b, c, d) -> m (MVector (PrimState m) (a, b, c, d)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (a, b, c, d) -> Int -> m (a, b, c, d) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (a, b, c, d) -> Int -> (a, b, c, d) -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (a, b, c, d) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (a, b, c, d) -> (a, b, c, d) -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (a, b, c, d) -> MVector (PrimState m) (a, b, c, d) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (a, b, c, d) -> MVector (PrimState m) (a, b, c, d) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (a, b, c, d) -> Int -> m (MVector (PrimState m) (a, b, c, d)) Source #

(Unbox a, Unbox b, Unbox c, Unbox d, Unbox e) => MVector MVector (a, b, c, d, e) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicLength :: MVector s (a, b, c, d, e) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (a, b, c, d, e) -> MVector s (a, b, c, d, e) Source #

basicOverlaps :: MVector s (a, b, c, d, e) -> MVector s (a, b, c, d, e) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (a, b, c, d, e)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> (a, b, c, d, e) -> m (MVector (PrimState m) (a, b, c, d, e)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e) -> Int -> m (a, b, c, d, e) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e) -> Int -> (a, b, c, d, e) -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e) -> (a, b, c, d, e) -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e) -> MVector (PrimState m) (a, b, c, d, e) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e) -> MVector (PrimState m) (a, b, c, d, e) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e) -> Int -> m (MVector (PrimState m) (a, b, c, d, e)) Source #

Unbox (f (g a)) => MVector MVector (Compose f g a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicLength :: MVector s (Compose f g a) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (Compose f g a) -> MVector s (Compose f g a) Source #

basicOverlaps :: MVector s (Compose f g a) -> MVector s (Compose f g a) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (Compose f g a)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (Compose f g a) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> Compose f g a -> m (MVector (PrimState m) (Compose f g a)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (Compose f g a) -> Int -> m (Compose f g a) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (Compose f g a) -> Int -> Compose f g a -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (Compose f g a) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (Compose f g a) -> Compose f g a -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (Compose f g a) -> MVector (PrimState m) (Compose f g a) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (Compose f g a) -> MVector (PrimState m) (Compose f g a) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (Compose f g a) -> Int -> m (MVector (PrimState m) (Compose f g a)) Source #

(Unbox a, Unbox b, Unbox c, Unbox d, Unbox e, Unbox f) => MVector MVector (a, b, c, d, e, f) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

basicLength :: MVector s (a, b, c, d, e, f) -> Int Source #

basicUnsafeSlice :: Int -> Int -> MVector s (a, b, c, d, e, f) -> MVector s (a, b, c, d, e, f) Source #

basicOverlaps :: MVector s (a, b, c, d, e, f) -> MVector s (a, b, c, d, e, f) -> Bool Source #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (a, b, c, d, e, f)) Source #

basicInitialize :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e, f) -> m () Source #

basicUnsafeReplicate :: PrimMonad m => Int -> (a, b, c, d, e, f) -> m (MVector (PrimState m) (a, b, c, d, e, f)) Source #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e, f) -> Int -> m (a, b, c, d, e, f) Source #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e, f) -> Int -> (a, b, c, d, e, f) -> m () Source #

basicClear :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e, f) -> m () Source #

basicSet :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> m () Source #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e, f) -> MVector (PrimState m) (a, b, c, d, e, f) -> m () Source #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e, f) -> MVector (PrimState m) (a, b, c, d, e, f) -> m () Source #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (a, b, c, d, e, f) -> Int -> m (MVector (PrimState m) (a, b, c, d, e, f)) Source #

NFData1 (MVector s) Source #

Since: 0.12.1.0

Instance details

Defined in Data.Vector.Unboxed.Base

Methods

liftRnf :: (a -> ()) -> MVector s a -> () Source #

NFData (MVector s a) Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

Methods

rnf :: MVector s a -> () Source #

newtype MVector s All Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s All = MV_All (MVector s Bool)
newtype MVector s Any Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s Any = MV_Any (MVector s Bool)
newtype MVector s Bool Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s Bool = MV_Bool (MVector s Word8)
newtype MVector s Char Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s Char = MV_Char (MVector s Char)
newtype MVector s Double Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s Float Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s Word64 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s Word32 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s Word16 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s Word8 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s Word Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s Word = MV_Word (MVector s Word)
newtype MVector s Int64 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype MVector s Int32 Source # 
Instance details

Defined in Data.Vector.Unboxed.Base

newtype