Safe Haskell | None |
---|
The repa-plugin
rewrites client code to use these primitives.
The plugin will use whatever names are in scope, so if you want to debug your code you can import a different implementation of these primitives into the module to be vectorized.
- data Primitives = Primitives {
- prim_Series :: forall k a. Series k a
- prim_Vector :: forall a. Vector a
- prim_Ref :: forall a. Ref a
- prim_addInt :: Int# -> Int# -> Int#
- prim_subInt :: Int# -> Int# -> Int#
- prim_mulInt :: Int# -> Int# -> Int#
- prim_divInt :: Int# -> Int# -> Int#
- prim_modInt :: Int# -> Int# -> Int#
- prim_remInt :: Int# -> Int# -> Int#
- prim_eqInt :: Int# -> Int# -> Bool
- prim_neqInt :: Int# -> Int# -> Bool
- prim_gtInt :: Int# -> Int# -> Bool
- prim_geInt :: Int# -> Int# -> Bool
- prim_ltInt :: Int# -> Int# -> Bool
- prim_leInt :: Int# -> Int# -> Bool
- prim_newRefInt :: Int# -> World -> (#World, Ref Int#)
- prim_readRefInt :: Ref Int -> World -> (#World, Int##)
- prim_writeRefInt :: Ref Int -> Int# -> World -> World
- prim_newRefInt_T2 :: (#Int#, Int##) -> World -> (#World, Ref (Int, Int)#)
- prim_readRefInt_T2 :: Ref (Int, Int) -> World -> (#World, (#Int#, Int##)#)
- prim_writeRefInt_T2 :: Ref (Int, Int) -> (#Int#, Int##) -> World -> World
- prim_newVectorInt :: Int# -> World -> (#World, Vector Int#)
- prim_readVectorInt :: Vector Int -> Int# -> World -> (#World, Int##)
- prim_writeVectorInt :: Vector Int -> Int# -> Int# -> World -> World
- prim_sliceVectorInt :: Int# -> Vector Int -> World -> (#World, Vector Int#)
- prim_rateOfSeries :: forall k a. Series k a -> Int#
- prim_loop :: Int# -> (Int# -> World -> World) -> World -> World
- prim_guard :: Ref Int -> Bool -> (Int# -> World -> World) -> World -> World
- prim_nextInt :: forall k. Series k Int -> Int# -> World -> (#World, Int##)
- prim_nextInt_T2 :: forall k. Series k (Int, Int) -> Int# -> World -> (#World, (#Int#, Int##)#)
- primitives :: Primitives
Documentation
data Primitives Source
Primitives needed by the repa-plugin.
primitives :: PrimitivesSource
Table of primitives used by the repa-plugin.