Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data F
- data family Array r sh e
- fromForeignPtr :: Shape sh => sh -> ForeignPtr e -> Array F sh e
- toForeignPtr :: Array F sh e -> ForeignPtr e
- computeIntoS :: (Load r1 sh e, Storable e) => ForeignPtr e -> Array r1 sh e -> IO ()
- computeIntoP :: (Load r1 sh e, Storable e) => ForeignPtr e -> Array r1 sh e -> IO ()
Documentation
Arrays represented as foreign buffers in the C heap.
Instances
Storable a => Source F a Source # | Read elements from a foreign buffer. |
Defined in Data.Array.Repa.Repr.ForeignPtr | |
Storable e => Target F e Source # | Filling foreign buffers. |
Defined in Data.Array.Repa.Repr.ForeignPtr | |
Storable a => Structured F a b Source # | |
data Array F sh a Source # | |
Defined in Data.Array.Repa.Repr.ForeignPtr | |
data MVec F e Source # | |
Defined in Data.Array.Repa.Repr.ForeignPtr | |
type TR F Source # | |
Defined in Data.Array.Repa.Operators.Mapping |
data family Array r sh e Source #
Instances
fromForeignPtr :: Shape sh => sh -> ForeignPtr e -> Array F sh e Source #
O(1). Wrap a ForeignPtr
as an array.
toForeignPtr :: Array F sh e -> ForeignPtr e Source #
O(1). Unpack a ForeignPtr
from an array.
computeIntoS :: (Load r1 sh e, Storable e) => ForeignPtr e -> Array r1 sh e -> IO () Source #
Compute an array sequentially and write the elements into a foreign
buffer without intermediate copying. If you want to copy a
pre-existing manifest array to a foreign buffer then delay
it first.
computeIntoP :: (Load r1 sh e, Storable e) => ForeignPtr e -> Array r1 sh e -> IO () Source #
Compute an array in parallel and write the elements into a foreign
buffer without intermediate copying. If you want to copy a
pre-existing manifest array to a foreign buffer then delay
it first.