Copyright | [2012] Adam C. Foltzer [2012..2017] Trevor L. McDonell |
---|---|
License | BSD3 |
Maintainer | Trevor L. McDonell <tmcdonell@cse.unsw.edu.au> |
Stability | experimental |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
type family Vectors e Source #
A family of types that represents a collection of storable Vector
s. The
structure of the collection depends on the element type e
.
For example:
- if
e :: Int
, thenVectors (EltRepr e) :: Vector Int
- if
e :: (Double, Float)
, thenVectors (EltRepr e) :: (((), Vector Double), Vector Float)
type Vectors Bool Source # | |
type Vectors Char Source # | |
type Vectors Double Source # | |
type Vectors Float Source # | |
type Vectors Int Source # | |
type Vectors Int8 Source # | |
type Vectors Int16 Source # | |
type Vectors Int32 Source # | |
type Vectors Int64 Source # | |
type Vectors Word Source # | |
type Vectors Word8 Source # | |
type Vectors Word16 Source # | |
type Vectors Word32 Source # | |
type Vectors Word64 Source # | |
type Vectors () Source # | |
type Vectors Half Source # | |
type Vectors CDouble Source # | |
type Vectors CFloat Source # | |
type Vectors CULLong Source # | |
type Vectors CLLong Source # | |
type Vectors CULong Source # | |
type Vectors CLong Source # | |
type Vectors CUInt Source # | |
type Vectors CInt Source # | |
type Vectors CUShort Source # | |
type Vectors CShort Source # | |
type Vectors CUChar Source # | |
type Vectors CSChar Source # | |
type Vectors CChar Source # | |
type Vectors (V2 a) Source # | |
type Vectors (V3 a) Source # | |
type Vectors (V4 a) Source # | |
type Vectors (V8 a) Source # | |
type Vectors (V16 a) Source # | |
type Vectors (a, b) Source # | |
fromVectors :: (Shape sh, Elt e) => sh -> Vectors (EltRepr e) -> Array sh e Source #
O(1). Treat a set of storable vectors as Accelerate arrays. The type of
elements e
in the output Accelerate array determines the structure of the
collection that will be required as the second argument. See Vectors
.
Data will be consumed from the vector in row-major order. You must make sure that each of the input vectors contains the right number of elements