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

Copyright[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.Vector.Generic

Contents

Description

This module provides an instance for Vector, for immutable vectors from the vector package backed by Accelerate arrays.

This allows computations written with the vector library to read from and store into, arrays which can then be passed directly to an Accelerate computation.

Since: 1.2.0.0

Documentation

Orphan instances

Elt e => Vector Vector e Source # 

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) e -> m (Vector e) #

basicUnsafeThaw :: PrimMonad m => Vector e -> m (Mutable Vector (PrimState m) e) #

basicLength :: Vector e -> Int #

basicUnsafeSlice :: Int -> Int -> Vector e -> Vector e #

basicUnsafeIndexM :: Monad m => Vector e -> Int -> m e #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) e -> Vector e -> m () #

elemseq :: Vector e -> e -> b -> b #