toy-lib-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Instances.T2

Description

Strict 2D tuple.

WARNING: Not tested

Synopsis
  • data T2 a b = T2 !a !b

Documentation

data T2 a b #

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

Constructors

T2 !a !b 

Instances

Instances details
Bifunctor T2 # 
Instance details

Defined in Data.Instances.T2

Methods

bimap :: (a -> b) -> (c -> d) -> T2 a c -> T2 b d #

first :: (a -> b) -> T2 a c -> T2 b c #

second :: (b -> c) -> T2 a b -> T2 a c #

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

Defined in Data.Instances.T2

Methods

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

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

basicLength :: Vector (T2 a b) -> Int #

basicUnsafeSlice :: Int -> Int -> Vector (T2 a b) -> Vector (T2 a b) #

basicUnsafeIndexM :: Vector (T2 a b) -> Int -> Box (T2 a b) #

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

elemseq :: Vector (T2 a b) -> T2 a b -> b0 -> b0 #

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

Defined in Data.Instances.T2

Methods

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

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

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

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

basicInitialize :: MVector s (T2 a b) -> ST s () #

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

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

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

basicClear :: MVector s (T2 a b) -> ST s () #

basicSet :: MVector s (T2 a b) -> T2 a b -> ST s () #

basicUnsafeCopy :: MVector s (T2 a b) -> MVector s (T2 a b) -> ST s () #

basicUnsafeMove :: MVector s (T2 a b) -> MVector s (T2 a b) -> ST s () #

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

(Show a, Show b) => Show (T2 a b) # 
Instance details

Defined in Data.Instances.T2

Methods

showsPrec :: Int -> T2 a b -> ShowS #

show :: T2 a b -> String #

showList :: [T2 a b] -> ShowS #

(Eq a, Eq b) => Eq (T2 a b) # 
Instance details

Defined in Data.Instances.T2

Methods

(==) :: T2 a b -> T2 a b -> Bool #

(/=) :: T2 a b -> T2 a b -> Bool #

(Ord a, Ord b) => Ord (T2 a b) # 
Instance details

Defined in Data.Instances.T2

Methods

compare :: T2 a b -> T2 a b -> Ordering #

(<) :: T2 a b -> T2 a b -> Bool #

(<=) :: T2 a b -> T2 a b -> Bool #

(>) :: T2 a b -> T2 a b -> Bool #

(>=) :: T2 a b -> T2 a b -> Bool #

max :: T2 a b -> T2 a b -> T2 a b #

min :: T2 a b -> T2 a b -> T2 a b #

(Unbox a, Unbox b) => Unbox (T2 a b) # 
Instance details

Defined in Data.Instances.T2

data MVector s (T2 a b) # 
Instance details

Defined in Data.Instances.T2

data MVector s (T2 a b) = MV_T2 !(MVector s a) !(MVector s b)
data Vector (T2 a b) # 
Instance details

Defined in Data.Instances.T2

data Vector (T2 a b) = V_T2 !(Vector a) !(Vector b)