Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
BatchInit | |
|
fromListBI :: [a] -> BatchInit a Source #
fromVectorBI :: Vector v e => v e -> BatchInit e Source #
class Layout form (rank :: Nat) => LayoutBuilder form (rank :: Nat) | form -> rank where Source #
buildFormatM :: (store ~ FormatStorageRep form, Buffer store Int, Buffer store a, PrimMonad m) => Index rank -> proxy form -> a -> Maybe (BatchInit (Index rank, a)) -> m (form, BufferMut store (PrimState m) a) Source #
Instances
buildFormatPure :: forall store form rank proxy m a. (LayoutBuilder form (rank :: Nat), store ~ FormatStorageRep form, Buffer store Int, Buffer store a, Monad m) => Index rank -> proxy form -> a -> Maybe (BatchInit (Index rank, a)) -> m (form, BufferPure store a) Source #