toy-lib-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Instances.A2

Description

Unboxed 2D array stored in a packed 1-dimensional vector.

The Unbox implementation is from Affine type in cojna/iota.

Synopsis
  • data A2 a = A2 !a !a

Documentation

data A2 a #

Unboxed 2D array packed in one array when stored in Vector.

Constructors

A2 !a !a 

Instances

Instances details
Unbox a => Vector Vector (A2 a) # 
Instance details

Defined in Data.Instances.A2

Methods

basicUnsafeFreeze :: Mutable Vector s (A2 a) -> ST s (Vector (A2 a)) #

basicUnsafeThaw :: Vector (A2 a) -> ST s (Mutable Vector s (A2 a)) #

basicLength :: Vector (A2 a) -> Int #

basicUnsafeSlice :: Int -> Int -> Vector (A2 a) -> Vector (A2 a) #

basicUnsafeIndexM :: Vector (A2 a) -> Int -> Box (A2 a) #

basicUnsafeCopy :: Mutable Vector s (A2 a) -> Vector (A2 a) -> ST s () #

elemseq :: Vector (A2 a) -> A2 a -> b -> b #

Unbox a => MVector MVector (A2 a) # 
Instance details

Defined in Data.Instances.A2

Methods

basicLength :: MVector s (A2 a) -> Int #

basicUnsafeSlice :: Int -> Int -> MVector s (A2 a) -> MVector s (A2 a) #

basicOverlaps :: MVector s (A2 a) -> MVector s (A2 a) -> Bool #

basicUnsafeNew :: Int -> ST s (MVector s (A2 a)) #

basicInitialize :: MVector s (A2 a) -> ST s () #

basicUnsafeReplicate :: Int -> A2 a -> ST s (MVector s (A2 a)) #

basicUnsafeRead :: MVector s (A2 a) -> Int -> ST s (A2 a) #

basicUnsafeWrite :: MVector s (A2 a) -> Int -> A2 a -> ST s () #

basicClear :: MVector s (A2 a) -> ST s () #

basicSet :: MVector s (A2 a) -> A2 a -> ST s () #

basicUnsafeCopy :: MVector s (A2 a) -> MVector s (A2 a) -> ST s () #

basicUnsafeMove :: MVector s (A2 a) -> MVector s (A2 a) -> ST s () #

basicUnsafeGrow :: MVector s (A2 a) -> Int -> ST s (MVector s (A2 a)) #

Show a => Show (A2 a) # 
Instance details

Defined in Data.Instances.A2

Methods

showsPrec :: Int -> A2 a -> ShowS #

show :: A2 a -> String #

showList :: [A2 a] -> ShowS #

Eq a => Eq (A2 a) # 
Instance details

Defined in Data.Instances.A2

Methods

(==) :: A2 a -> A2 a -> Bool #

(/=) :: A2 a -> A2 a -> Bool #

Unbox a => Unbox (A2 a) # 
Instance details

Defined in Data.Instances.A2

IsoUnbox (RH b p) RHRepr # 
Instance details

Defined in Data.RollingHash

Methods

toURepr :: RH b p -> RHRepr #

fromURepr :: RHRepr -> RH b p #

newtype MVector s (A2 a) # 
Instance details

Defined in Data.Instances.A2

newtype MVector s (A2 a) = MV_A2 (MVector s a)
newtype Vector (A2 a) # 
Instance details

Defined in Data.Instances.A2

newtype Vector (A2 a) = V_A2 (Vector a)