hblas-0.3.2.1: Human friendly BLAS and Lapack bindings for Haskell.

Safe HaskellTrustworthy
LanguageHaskell2010

Numerical.HBLAS.UtilsFFI

Documentation

withRWStorable :: (Storable a, PrimMonad m) => a -> (Ptr a -> m b) -> m a Source

withRStorable :: (Storable a, PrimMonad m) => a -> (Ptr a -> m b) -> m b Source

withRStorable_ :: (Storable a, PrimMonad m) => a -> (Ptr a -> m ()) -> m () Source

withForeignPtrPrim :: PrimMonad m => ForeignPtr a -> (Ptr a -> m b) -> m b Source

touchForeignPtrPrim :: PrimMonad m => ForeignPtr a -> m () Source

unsafeWithPrim :: (Storable a, PrimMonad m) => MVector (PrimState m) a -> (Ptr a -> m b) -> m b Source

unsafeWithPrimLen :: (Storable a, PrimMonad m) => MVector (PrimState m) a -> ((Ptr a, Int) -> m b) -> m b Source

unsafeWithPurePrim :: (Storable a, PrimMonad m) => Vector a -> (Ptr a -> m b) -> m b Source

unsafeWithPurePrimLen :: (Storable a, PrimMonad m) => Vector a -> ((Ptr a, Int) -> m b) -> m b Source