accelerate-io-1.2.0.0: Read and write Accelerate arrays in various formats

Copyright[2010..2011] Sean Seefried
[2010..2017] Trevor L. McDonell
LicenseBSD3
MaintainerTrevor L. McDonell <tmcdonell@cse.unsw.edu.au>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Data.Array.Accelerate.IO.Data.ByteString

Description

Conversion between strict ByteStrings and Accelerate Arrays.

Synopsis

Documentation

type family ByteStrings e Source #

A family of types that represents a collection of ByteStrings. The structure of the collection depends on the element type e.

Instances

type ByteStrings Bool Source # 
type ByteStrings Char Source # 
type ByteStrings Double Source # 
type ByteStrings Float Source # 
type ByteStrings Int Source # 
type ByteStrings Int8 Source # 
type ByteStrings Int16 Source # 
type ByteStrings Int32 Source # 
type ByteStrings Int64 Source # 
type ByteStrings Word Source # 
type ByteStrings Word8 Source # 
type ByteStrings Word16 Source # 
type ByteStrings Word32 Source # 
type ByteStrings Word64 Source # 
type ByteStrings () Source # 
type ByteStrings () = ()
type ByteStrings Half Source # 
type ByteStrings CDouble Source # 
type ByteStrings CFloat Source # 
type ByteStrings CULLong Source # 
type ByteStrings CLLong Source # 
type ByteStrings CULong Source # 
type ByteStrings CLong Source # 
type ByteStrings CUInt Source # 
type ByteStrings CInt Source # 
type ByteStrings CUShort Source # 
type ByteStrings CShort Source # 
type ByteStrings CShort Source # 
type ByteStrings CUChar Source # 
type ByteStrings CSChar Source # 
type ByteStrings CChar Source # 
type ByteStrings (V2 a) Source # 
type ByteStrings (V2 a) = ByteStrings a
type ByteStrings (V3 a) Source # 
type ByteStrings (V3 a) = ByteStrings a
type ByteStrings (V4 a) Source # 
type ByteStrings (V4 a) = ByteStrings a
type ByteStrings (V8 a) Source # 
type ByteStrings (V8 a) = ByteStrings a
type ByteStrings (V16 a) Source # 
type ByteStrings (V16 a) = ByteStrings a
type ByteStrings (a, b) Source # 
type ByteStrings (a, b) = (ByteStrings a, ByteStrings b)

fromByteStrings :: (Shape sh, Elt e) => sh -> ByteStrings (EltRepr e) -> Array sh e Source #

O(1). Treat a set of strict ByteStrings as an Accelerate array. The type of the elements e in the output Accelerate array determines the structure of the collection.

Data is considered to be in row-major order. You must ensure that each input contains the right number of bytes (this is not checked).

The input data may not be modified through the ByteStrings afterwards.

since 1.1.0.0

toByteStrings :: (Shape sh, Elt e) => Array sh e -> ByteStrings (EltRepr e) Source #

O(1). Convert an Accelerate Array into a collection of strict ByteStrings. The element type e will determine the structure of the output collection.

Data is considered to be in row-major order.

since 1.1.0.0