Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
massiv Data.Massiv.Array.Mutable Sequentially loop over a mutable array while modifying each element with an index aware action.
-
massiv Data.Massiv.Array.Mutable Sequentially loop over a mutable array while reading each element and applying an index aware action to it. There is no mutation to the array, unless the action itself modifies it.
unsafeArrayFromForeignPtr :: Storable e => Comp -> ForeignPtr e -> Int -> Sz1 -> Array S Ix1 emassiv Data.Massiv.Array.Unsafe O(1) - Wrap a ForeignPtr, an offset and it's size into a pure storable array.
unsafeArrayFromForeignPtr0 :: Comp -> ForeignPtr e -> Sz1 -> Vector S emassiv Data.Massiv.Array.Unsafe O(1) - Wrap a ForeignPtr and it's size into a pure storable array.
unsafeArrayToForeignPtr :: Index ix => Array S ix e -> (ForeignPtr e, Int)massiv Data.Massiv.Array.Unsafe O(1) - Yield the underlying ForeignPtr together with its length.
unsafeMArrayFromForeignPtr :: Storable e => ForeignPtr e -> Int -> Sz1 -> MArray s S Ix1 emassiv Data.Massiv.Array.Unsafe O(1) - Wrap a ForeignPtr, an offset and it's size into a mutable storable array. It is still safe to modify the pointer, unless the array gets frozen prior to modification.
unsafeMArrayFromForeignPtr0 :: ForeignPtr e -> Sz1 -> MArray s S Ix1 emassiv Data.Massiv.Array.Unsafe O(1) - Wrap a ForeignPtr and it's size into a mutable storable array. It is still safe to modify the pointer, unless the array gets frozen prior to modification.
unsafeMArrayToForeignPtr :: Index ix => MArray s S ix e -> (ForeignPtr e, Int)massiv Data.Massiv.Array.Unsafe O(1) - Yield the underlying ForeignPtr together with its length.
-
massiv Data.Massiv.Array.Unsafe Same transform', except no bounds checking is performed, thus making it faster, but unsafe.
-
massiv Data.Massiv.Array.Unsafe Same transform2', except no bounds checking is performed, thus making it faster, but unsafe.