numerical-0.0.0.0: core package for Numerical Haskell project

Safe HaskellNone
LanguageHaskell2010

Numerical.Array.Storage

Synopsis

Documentation

data Boxed Source #

Boxed is the type index for Buffers that use the boxed data structure Vector as the underlying storage representation.

Instances
Data Boxed Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Boxed -> c Boxed #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Boxed #

toConstr :: Boxed -> Constr #

dataTypeOf :: Boxed -> DataType #

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

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

gmapT :: (forall b. Data b => b -> b) -> Boxed -> Boxed #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Boxed -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Boxed -> r #

gmapQ :: (forall d. Data d => d -> u) -> Boxed -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Boxed -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Boxed -> m Boxed #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Boxed -> m Boxed #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Boxed -> m Boxed #

Functor (BufferPure Boxed) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

fmap :: (a -> b) -> BufferPure Boxed a -> BufferPure Boxed b #

(<$) :: a -> BufferPure Boxed b -> BufferPure Boxed a #

Foldable (BufferPure Boxed) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

fold :: Monoid m => BufferPure Boxed m -> m #

foldMap :: Monoid m => (a -> m) -> BufferPure Boxed a -> m #

foldr :: (a -> b -> b) -> b -> BufferPure Boxed a -> b #

foldr' :: (a -> b -> b) -> b -> BufferPure Boxed a -> b #

foldl :: (b -> a -> b) -> b -> BufferPure Boxed a -> b #

foldl' :: (b -> a -> b) -> b -> BufferPure Boxed a -> b #

foldr1 :: (a -> a -> a) -> BufferPure Boxed a -> a #

foldl1 :: (a -> a -> a) -> BufferPure Boxed a -> a #

toList :: BufferPure Boxed a -> [a] #

null :: BufferPure Boxed a -> Bool #

length :: BufferPure Boxed a -> Int #

elem :: Eq a => a -> BufferPure Boxed a -> Bool #

maximum :: Ord a => BufferPure Boxed a -> a #

minimum :: Ord a => BufferPure Boxed a -> a #

sum :: Num a => BufferPure Boxed a -> a #

product :: Num a => BufferPure Boxed a -> a #

Traversable (BufferPure Boxed) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

traverse :: Applicative f => (a -> f b) -> BufferPure Boxed a -> f (BufferPure Boxed b) #

sequenceA :: Applicative f => BufferPure Boxed (f a) -> f (BufferPure Boxed a) #

mapM :: Monad m => (a -> m b) -> BufferPure Boxed a -> m (BufferPure Boxed b) #

sequence :: Monad m => BufferPure Boxed (m a) -> m (BufferPure Boxed a) #

Vector Vector a => Vector (BufferPure Boxed) a Source # 
Instance details

Defined in Numerical.Array.Storage

MVector MVector elem => MVector (BufferMut Boxed) elem Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

basicLength :: BufferMut Boxed s elem -> Int #

basicUnsafeSlice :: Int -> Int -> BufferMut Boxed s elem -> BufferMut Boxed s elem #

basicOverlaps :: BufferMut Boxed s elem -> BufferMut Boxed s elem -> Bool #

basicUnsafeNew :: PrimMonad m => Int -> m (BufferMut Boxed (PrimState m) elem) #

basicInitialize :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> m () #

basicUnsafeReplicate :: PrimMonad m => Int -> elem -> m (BufferMut Boxed (PrimState m) elem) #

basicUnsafeRead :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> Int -> m elem #

basicUnsafeWrite :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> Int -> elem -> m () #

basicClear :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> m () #

basicSet :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> elem -> m () #

basicUnsafeCopy :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> BufferMut Boxed (PrimState m) elem -> m () #

basicUnsafeMove :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> BufferMut Boxed (PrimState m) elem -> m () #

basicUnsafeGrow :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> Int -> m (BufferMut Boxed (PrimState m) elem) #

Data elem => Data (BufferPure Boxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BufferPure Boxed elem -> c (BufferPure Boxed elem) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (BufferPure Boxed elem) #

toConstr :: BufferPure Boxed elem -> Constr #

dataTypeOf :: BufferPure Boxed elem -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (BufferPure Boxed elem)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (BufferPure Boxed elem)) #

gmapT :: (forall b. Data b => b -> b) -> BufferPure Boxed elem -> BufferPure Boxed elem #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Boxed elem -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Boxed elem -> r #

gmapQ :: (forall d. Data d => d -> u) -> BufferPure Boxed elem -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BufferPure Boxed elem -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BufferPure Boxed elem -> m (BufferPure Boxed elem) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Boxed elem -> m (BufferPure Boxed elem) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Boxed elem -> m (BufferPure Boxed elem) #

Show elem => Show (BufferPure Boxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Generic (BufferPure Boxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Associated Types

type Rep (BufferPure Boxed elem) :: Type -> Type #

Methods

from :: BufferPure Boxed elem -> Rep (BufferPure Boxed elem) x #

to :: Rep (BufferPure Boxed elem) x -> BufferPure Boxed elem #

data BufferMut Boxed st elem Source # 
Instance details

Defined in Numerical.Array.Storage

data BufferMut Boxed st elem = BoxedBufferMut (MVector st elem)
data BufferPure Boxed elem Source # 
Instance details

Defined in Numerical.Array.Storage

data BufferPure Boxed elem = BoxedBuffer (Vector elem)
type Rep (BufferPure Boxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

type Rep (BufferPure Boxed elem) = D1 (MetaData "BufferPure" "Numerical.Array.Storage" "numerical-0.0.0.0-G1yWw4Hx7O95VnU5FU3zyO" True) (C1 (MetaCons "BoxedBuffer" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Vector elem))))

data Unboxed Source #

Unboxed is the type index for Buffers that use the unboxed data structure Vector as the underlying storage representation.

Instances
Data Unboxed Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Unboxed -> c Unboxed #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Unboxed #

toConstr :: Unboxed -> Constr #

dataTypeOf :: Unboxed -> DataType #

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

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

gmapT :: (forall b. Data b => b -> b) -> Unboxed -> Unboxed #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Unboxed -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Unboxed -> r #

gmapQ :: (forall d. Data d => d -> u) -> Unboxed -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Unboxed -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Unboxed -> m Unboxed #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Unboxed -> m Unboxed #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Unboxed -> m Unboxed #

Vector Vector a => Vector (BufferPure Unboxed) a Source # 
Instance details

Defined in Numerical.Array.Storage

MVector MVector elem => MVector (BufferMut Unboxed) elem Source # 
Instance details

Defined in Numerical.Array.Storage

(Data elem, Unbox elem) => Data (BufferPure Unboxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BufferPure Unboxed elem -> c (BufferPure Unboxed elem) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (BufferPure Unboxed elem) #

toConstr :: BufferPure Unboxed elem -> Constr #

dataTypeOf :: BufferPure Unboxed elem -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (BufferPure Unboxed elem)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (BufferPure Unboxed elem)) #

gmapT :: (forall b. Data b => b -> b) -> BufferPure Unboxed elem -> BufferPure Unboxed elem #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Unboxed elem -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Unboxed elem -> r #

gmapQ :: (forall d. Data d => d -> u) -> BufferPure Unboxed elem -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BufferPure Unboxed elem -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BufferPure Unboxed elem -> m (BufferPure Unboxed elem) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Unboxed elem -> m (BufferPure Unboxed elem) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Unboxed elem -> m (BufferPure Unboxed elem) #

(Show elem, Unbox elem) => Show (BufferPure Unboxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Generic (BufferPure Unboxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Associated Types

type Rep (BufferPure Unboxed elem) :: Type -> Type #

Methods

from :: BufferPure Unboxed elem -> Rep (BufferPure Unboxed elem) x #

to :: Rep (BufferPure Unboxed elem) x -> BufferPure Unboxed elem #

data BufferMut Unboxed st elem Source # 
Instance details

Defined in Numerical.Array.Storage

data BufferMut Unboxed st elem = UnboxedBufferMut (MVector st elem)
data BufferPure Unboxed elem Source # 
Instance details

Defined in Numerical.Array.Storage

type Rep (BufferPure Unboxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

type Rep (BufferPure Unboxed elem) = D1 (MetaData "BufferPure" "Numerical.Array.Storage" "numerical-0.0.0.0-G1yWw4Hx7O95VnU5FU3zyO" True) (C1 (MetaCons "UnboxedBuffer" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Vector elem))))

data Stored Source #

Stored is the type index for Buffers that use the Storable for values, in pinned byte array buffers, provided by Storable

Instances
Data Stored Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Stored -> c Stored #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Stored #

toConstr :: Stored -> Constr #

dataTypeOf :: Stored -> DataType #

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

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

gmapT :: (forall b. Data b => b -> b) -> Stored -> Stored #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Stored -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Stored -> r #

gmapQ :: (forall d. Data d => d -> u) -> Stored -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Stored -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Stored -> m Stored #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Stored -> m Stored #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Stored -> m Stored #

Storable a => Vector (BufferPure Stored) a Source # 
Instance details

Defined in Numerical.Array.Storage

Storable elem => MVector (BufferMut Stored) elem Source # 
Instance details

Defined in Numerical.Array.Storage

(Data elem, Storable elem) => Data (BufferPure Stored elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BufferPure Stored elem -> c (BufferPure Stored elem) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (BufferPure Stored elem) #

toConstr :: BufferPure Stored elem -> Constr #

dataTypeOf :: BufferPure Stored elem -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (BufferPure Stored elem)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (BufferPure Stored elem)) #

gmapT :: (forall b. Data b => b -> b) -> BufferPure Stored elem -> BufferPure Stored elem #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Stored elem -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Stored elem -> r #

gmapQ :: (forall d. Data d => d -> u) -> BufferPure Stored elem -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BufferPure Stored elem -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BufferPure Stored elem -> m (BufferPure Stored elem) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Stored elem -> m (BufferPure Stored elem) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Stored elem -> m (BufferPure Stored elem) #

(Show elem, Storable elem) => Show (BufferPure Stored elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Generic (BufferPure Stored elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Associated Types

type Rep (BufferPure Stored elem) :: Type -> Type #

Methods

from :: BufferPure Stored elem -> Rep (BufferPure Stored elem) x #

to :: Rep (BufferPure Stored elem) x -> BufferPure Stored elem #

data BufferMut Stored st elem Source # 
Instance details

Defined in Numerical.Array.Storage

data BufferMut Stored st elem = StorableBufferMut (MVector st elem)
data BufferPure Stored elem Source # 
Instance details

Defined in Numerical.Array.Storage

type Rep (BufferPure Stored elem) Source # 
Instance details

Defined in Numerical.Array.Storage

type Rep (BufferPure Stored elem) = D1 (MetaData "BufferPure" "Numerical.Array.Storage" "numerical-0.0.0.0-G1yWw4Hx7O95VnU5FU3zyO" True) (C1 (MetaCons "StorableBuffer" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Vector elem))))

data family BufferPure sort elem Source #

Instances
Functor (BufferPure Boxed) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

fmap :: (a -> b) -> BufferPure Boxed a -> BufferPure Boxed b #

(<$) :: a -> BufferPure Boxed b -> BufferPure Boxed a #

Foldable (BufferPure Boxed) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

fold :: Monoid m => BufferPure Boxed m -> m #

foldMap :: Monoid m => (a -> m) -> BufferPure Boxed a -> m #

foldr :: (a -> b -> b) -> b -> BufferPure Boxed a -> b #

foldr' :: (a -> b -> b) -> b -> BufferPure Boxed a -> b #

foldl :: (b -> a -> b) -> b -> BufferPure Boxed a -> b #

foldl' :: (b -> a -> b) -> b -> BufferPure Boxed a -> b #

foldr1 :: (a -> a -> a) -> BufferPure Boxed a -> a #

foldl1 :: (a -> a -> a) -> BufferPure Boxed a -> a #

toList :: BufferPure Boxed a -> [a] #

null :: BufferPure Boxed a -> Bool #

length :: BufferPure Boxed a -> Int #

elem :: Eq a => a -> BufferPure Boxed a -> Bool #

maximum :: Ord a => BufferPure Boxed a -> a #

minimum :: Ord a => BufferPure Boxed a -> a #

sum :: Num a => BufferPure Boxed a -> a #

product :: Num a => BufferPure Boxed a -> a #

Traversable (BufferPure Boxed) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

traverse :: Applicative f => (a -> f b) -> BufferPure Boxed a -> f (BufferPure Boxed b) #

sequenceA :: Applicative f => BufferPure Boxed (f a) -> f (BufferPure Boxed a) #

mapM :: Monad m => (a -> m b) -> BufferPure Boxed a -> m (BufferPure Boxed b) #

sequence :: Monad m => BufferPure Boxed (m a) -> m (BufferPure Boxed a) #

Storable a => Vector (BufferPure Stored) a Source # 
Instance details

Defined in Numerical.Array.Storage

Vector Vector a => Vector (BufferPure Unboxed) a Source # 
Instance details

Defined in Numerical.Array.Storage

Vector Vector a => Vector (BufferPure Boxed) a Source # 
Instance details

Defined in Numerical.Array.Storage

(Data elem, Storable elem) => Data (BufferPure Stored elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BufferPure Stored elem -> c (BufferPure Stored elem) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (BufferPure Stored elem) #

toConstr :: BufferPure Stored elem -> Constr #

dataTypeOf :: BufferPure Stored elem -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (BufferPure Stored elem)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (BufferPure Stored elem)) #

gmapT :: (forall b. Data b => b -> b) -> BufferPure Stored elem -> BufferPure Stored elem #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Stored elem -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Stored elem -> r #

gmapQ :: (forall d. Data d => d -> u) -> BufferPure Stored elem -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BufferPure Stored elem -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BufferPure Stored elem -> m (BufferPure Stored elem) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Stored elem -> m (BufferPure Stored elem) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Stored elem -> m (BufferPure Stored elem) #

(Data elem, Unbox elem) => Data (BufferPure Unboxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BufferPure Unboxed elem -> c (BufferPure Unboxed elem) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (BufferPure Unboxed elem) #

toConstr :: BufferPure Unboxed elem -> Constr #

dataTypeOf :: BufferPure Unboxed elem -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (BufferPure Unboxed elem)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (BufferPure Unboxed elem)) #

gmapT :: (forall b. Data b => b -> b) -> BufferPure Unboxed elem -> BufferPure Unboxed elem #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Unboxed elem -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Unboxed elem -> r #

gmapQ :: (forall d. Data d => d -> u) -> BufferPure Unboxed elem -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BufferPure Unboxed elem -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BufferPure Unboxed elem -> m (BufferPure Unboxed elem) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Unboxed elem -> m (BufferPure Unboxed elem) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Unboxed elem -> m (BufferPure Unboxed elem) #

Data elem => Data (BufferPure Boxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BufferPure Boxed elem -> c (BufferPure Boxed elem) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (BufferPure Boxed elem) #

toConstr :: BufferPure Boxed elem -> Constr #

dataTypeOf :: BufferPure Boxed elem -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (BufferPure Boxed elem)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (BufferPure Boxed elem)) #

gmapT :: (forall b. Data b => b -> b) -> BufferPure Boxed elem -> BufferPure Boxed elem #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Boxed elem -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BufferPure Boxed elem -> r #

gmapQ :: (forall d. Data d => d -> u) -> BufferPure Boxed elem -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BufferPure Boxed elem -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BufferPure Boxed elem -> m (BufferPure Boxed elem) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Boxed elem -> m (BufferPure Boxed elem) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BufferPure Boxed elem -> m (BufferPure Boxed elem) #

(Show elem, Storable elem) => Show (BufferPure Stored elem) Source # 
Instance details

Defined in Numerical.Array.Storage

(Show elem, Unbox elem) => Show (BufferPure Unboxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Show elem => Show (BufferPure Boxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Generic (BufferPure Stored elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Associated Types

type Rep (BufferPure Stored elem) :: Type -> Type #

Methods

from :: BufferPure Stored elem -> Rep (BufferPure Stored elem) x #

to :: Rep (BufferPure Stored elem) x -> BufferPure Stored elem #

Generic (BufferPure Unboxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Associated Types

type Rep (BufferPure Unboxed elem) :: Type -> Type #

Methods

from :: BufferPure Unboxed elem -> Rep (BufferPure Unboxed elem) x #

to :: Rep (BufferPure Unboxed elem) x -> BufferPure Unboxed elem #

Generic (BufferPure Boxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

Associated Types

type Rep (BufferPure Boxed elem) :: Type -> Type #

Methods

from :: BufferPure Boxed elem -> Rep (BufferPure Boxed elem) x #

to :: Rep (BufferPure Boxed elem) x -> BufferPure Boxed elem #

data BufferPure Stored elem Source # 
Instance details

Defined in Numerical.Array.Storage

data BufferPure Unboxed elem Source # 
Instance details

Defined in Numerical.Array.Storage

data BufferPure Boxed elem Source # 
Instance details

Defined in Numerical.Array.Storage

data BufferPure Boxed elem = BoxedBuffer (Vector elem)
type Mutable (BufferPure sort) Source # 
Instance details

Defined in Numerical.Array.Storage

type Mutable (BufferPure sort) = BufferMut sort
type Rep (BufferPure Stored elem) Source # 
Instance details

Defined in Numerical.Array.Storage

type Rep (BufferPure Stored elem) = D1 (MetaData "BufferPure" "Numerical.Array.Storage" "numerical-0.0.0.0-G1yWw4Hx7O95VnU5FU3zyO" True) (C1 (MetaCons "StorableBuffer" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Vector elem))))
type Rep (BufferPure Unboxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

type Rep (BufferPure Unboxed elem) = D1 (MetaData "BufferPure" "Numerical.Array.Storage" "numerical-0.0.0.0-G1yWw4Hx7O95VnU5FU3zyO" True) (C1 (MetaCons "UnboxedBuffer" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Vector elem))))
type Rep (BufferPure Boxed elem) Source # 
Instance details

Defined in Numerical.Array.Storage

type Rep (BufferPure Boxed elem) = D1 (MetaData "BufferPure" "Numerical.Array.Storage" "numerical-0.0.0.0-G1yWw4Hx7O95VnU5FU3zyO" True) (C1 (MetaCons "BoxedBuffer" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Vector elem))))

data family BufferMut sort st elem Source #

Instances
Storable elem => MVector (BufferMut Stored) elem Source # 
Instance details

Defined in Numerical.Array.Storage

MVector MVector elem => MVector (BufferMut Unboxed) elem Source # 
Instance details

Defined in Numerical.Array.Storage

MVector MVector elem => MVector (BufferMut Boxed) elem Source # 
Instance details

Defined in Numerical.Array.Storage

Methods

basicLength :: BufferMut Boxed s elem -> Int #

basicUnsafeSlice :: Int -> Int -> BufferMut Boxed s elem -> BufferMut Boxed s elem #

basicOverlaps :: BufferMut Boxed s elem -> BufferMut Boxed s elem -> Bool #

basicUnsafeNew :: PrimMonad m => Int -> m (BufferMut Boxed (PrimState m) elem) #

basicInitialize :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> m () #

basicUnsafeReplicate :: PrimMonad m => Int -> elem -> m (BufferMut Boxed (PrimState m) elem) #

basicUnsafeRead :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> Int -> m elem #

basicUnsafeWrite :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> Int -> elem -> m () #

basicClear :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> m () #

basicSet :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> elem -> m () #

basicUnsafeCopy :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> BufferMut Boxed (PrimState m) elem -> m () #

basicUnsafeMove :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> BufferMut Boxed (PrimState m) elem -> m () #

basicUnsafeGrow :: PrimMonad m => BufferMut Boxed (PrimState m) elem -> Int -> m (BufferMut Boxed (PrimState m) elem) #

data BufferMut Stored st elem Source # 
Instance details

Defined in Numerical.Array.Storage

data BufferMut Stored st elem = StorableBufferMut (MVector st elem)
data BufferMut Unboxed st elem Source # 
Instance details

Defined in Numerical.Array.Storage

data BufferMut Unboxed st elem = UnboxedBufferMut (MVector st elem)
data BufferMut Boxed st elem Source # 
Instance details

Defined in Numerical.Array.Storage

data BufferMut Boxed st elem = BoxedBufferMut (MVector st elem)

class (Vector (BufferPure mode) a, MVector (BufferMut mode) a) => Buffer mode a Source #

The class instance Buffer mode a is a shorthand for saying that a given buffer representation mode has a Vector instance for both BufferPure and BufferMut.

Instances
(Vector (BufferPure mode) a, MVector (BufferMut mode) a) => Buffer mode a Source # 
Instance details

Defined in Numerical.Array.Storage

class MVector (BufferMut mode) a => MBuffer mode a Source #

Instances
MVector (BufferMut mode) a => MBuffer mode a Source # 
Instance details

Defined in Numerical.Array.Storage

unsafeBufferThaw :: (Buffer rep a, PrimMonad m) => BufferPure rep a -> m (BufferMut rep (PrimState m) a) Source #