Copyright | [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
class (Unbox e, Elt e) => Unbox e where Source #
arrayDataOfUnboxed :: Vector e -> ArrayData (EltRepr e) Source #
unboxedOfArrayData :: Int -> ArrayData (EltRepr e) -> Vector e Source #
Unbox Bool Source # | |
Unbox Char Source # | |
Unbox Double Source # | |
Unbox Float Source # | |
Unbox Int Source # | |
Unbox Int8 Source # | |
Unbox Int16 Source # | |
Unbox Int32 Source # | |
Unbox Int64 Source # | |
Unbox Word Source # | |
Unbox Word8 Source # | |
Unbox Word16 Source # | |
Unbox Word32 Source # | |
Unbox Word64 Source # | |
Unbox () Source # | |
(Unbox a, Unbox b) => Unbox (a, b) Source # | |
(Unbox a, Unbox b, Unbox c) => Unbox (a, b, c) Source # | |
(Unbox a, Unbox b, Unbox c, Unbox d) => Unbox (a, b, c, d) Source # | |
(Unbox a, Unbox b, Unbox c, Unbox d, Unbox e) => Unbox (a, b, c, d, e) Source # | |
(Unbox a, Unbox b, Unbox c, Unbox d, Unbox e, Unbox f) => Unbox (a, b, c, d, e, f) Source # | |
toUnboxed :: (Shape sh, Unbox e) => Array sh e -> Vector e Source #
O(1) (typically). Convert an Accelerate array into an Unboxed vector.
If the array data was allocated by Accelerate, this can typically be done without copying. The resulting vector will be pinned.
since 1.1.0.0
fromUnboxed :: Unbox e => Vector e -> Array DIM1 e Source #
O(n) (typically). Convert an Unboxed vector into an Accelerate array Accelerate array.
If the underlying vectors are pinned then this can be done without copying.
See also: https://ghc.haskell.org/trac/ghc/ticket/5556
since 1.1.0.0