accelerate-io-vector-0.1.0.0: Convert between Accelerate and vector

Copyright[2017..2020] The Accelerate Team
LicenseBSD3
MaintainerTrevor L. McDonell <trevor.mcdonell@gmail.com>
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: 0.1.0.0

Orphan instances

Elt e => Vector Vector e Source # 
Instance details

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 #