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.Mutable

Description

This module provides instance for MVector, for generic mutable vectors backed by Accelerate.

Since: 0.1.0.0

Synopsis

Documentation

data MArray sh s e where Source #

Dense, regular, mutable, multi-dimensional arrays

Constructors

MArray :: EltR sh -> MutableArrayData (EltR e) -> MArray sh s e 
Instances
Elt e => MVector MVector e Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Data.Vector.Generic.Mutable

Methods

basicLength :: MVector s e -> Int #

basicUnsafeSlice :: Int -> Int -> MVector s e -> MVector s e #

basicOverlaps :: MVector s e -> MVector s e -> Bool #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) e) #

basicInitialize :: PrimMonad m => MVector (PrimState m) e -> m () #

basicUnsafeReplicate :: PrimMonad m => Int -> e -> m (MVector (PrimState m) e) #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) e -> Int -> m e #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) e -> Int -> e -> m () #

basicClear :: PrimMonad m => MVector (PrimState m) e -> m () #

basicSet :: PrimMonad m => MVector (PrimState m) e -> e -> m () #

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

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) e -> MVector (PrimState m) e -> m () #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) e -> Int -> m (MVector (PrimState m) e) #