Copyright | [2012..2020] The Accelerate Team |
---|---|
License | BSD3 |
Maintainer | Trevor L. McDonell <trevor.mcdonell@gmail.com> |
Stability | experimental |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
type Vectors e = GArrayDataR Vector 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 (EltR e) :: Vector Int
- if
e :: (Double, Float)
, thenVectors (EltR e) :: (((), Vector Double), Vector Float)
fromVectors :: forall sh e. (HasCallStack, Shape sh, Elt e) => sh -> Vectors (EltR 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