toy-lib-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Instances.A3

Description

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

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

Synopsis
  • data A3 a = A3 !a !a !a

Documentation

data A3 a #

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

Constructors

A3 !a !a !a 

Instances

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

Defined in Data.Instances.A3

Methods

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

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

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

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

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

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

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

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

Defined in Data.Instances.A3

Methods

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Defined in Data.Instances.A3

Methods

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

show :: A3 a -> String #

showList :: [A3 a] -> ShowS #

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

Defined in Data.Instances.A3

Methods

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

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

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

Defined in Data.Instances.A3

newtype MVector s (A3 a) # 
Instance details

Defined in Data.Instances.A3

newtype MVector s (A3 a) = MV_A3 (MVector s a)
newtype Vector (A3 a) # 
Instance details

Defined in Data.Instances.A3

newtype Vector (A3 a) = V_A3 (Vector a)