comfort-array-0.5.4.2: Arrays where the index type is a function of the shape type
Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Array.Comfort.Storable.Private

Documentation

data Array sh a Source #

Constructors

Array 

Fields

Instances

Instances details
(AppendMonoid sh, Storable a) => Monoid (Array sh a) Source # 
Instance details

Defined in Data.Array.Comfort.Storable.Private

Methods

mempty :: Array sh a #

mappend :: Array sh a -> Array sh a -> Array sh a #

mconcat :: [Array sh a] -> Array sh a #

(AppendSemigroup sh, Storable a) => Semigroup (Array sh a) Source # 
Instance details

Defined in Data.Array.Comfort.Storable.Private

Methods

(<>) :: Array sh a -> Array sh a -> Array sh a #

sconcat :: NonEmpty (Array sh a) -> Array sh a #

stimes :: Integral b => b -> Array sh a -> Array sh a #

(C sh, Show sh, Storable a, Show a) => Show (Array sh a) Source # 
Instance details

Defined in Data.Array.Comfort.Storable.Private

Methods

showsPrec :: Int -> Array sh a -> ShowS #

show :: Array sh a -> String #

showList :: [Array sh a] -> ShowS #

NFData sh => NFData (Array sh a) Source # 
Instance details

Defined in Data.Array.Comfort.Storable.Private

Methods

rnf :: Array sh a -> () #

(C sh, Eq sh, Storable a, Eq a) => Eq (Array sh a) Source # 
Instance details

Defined in Data.Array.Comfort.Storable.Private

Methods

(==) :: Array sh a -> Array sh a -> Bool #

(/=) :: Array sh a -> Array sh a -> Bool #

reshape :: sh1 -> Array sh0 a -> Array sh1 a Source #

mapShape :: (sh0 -> sh1) -> Array sh0 a -> Array sh1 a Source #

(!) :: (Indexed sh, Storable a) => Array sh a -> Index sh -> a infixl 9 Source #

toList :: (C sh, Storable a) => Array sh a -> [a] Source #

fromList :: (C sh, Storable a) => sh -> [a] -> Array sh a Source #

(//) :: (Indexed sh, Storable a) => Array sh a -> [(Index sh, a)] -> Array sh a Source #

accumulate :: (Indexed sh, Storable a) => (a -> b -> a) -> Array sh a -> [(Index sh, b)] -> Array sh a Source #

fromAssociations :: (Indexed sh, Storable a) => a -> sh -> [(Index sh, a)] -> Array sh a Source #

freeze :: (PrimMonad m, C sh, Storable a) => Array m sh a -> m (Array sh a) Source #

thaw :: (PrimMonad m, C sh, Storable a) => Array sh a -> m (Array m sh a) Source #

unsafeFreeze :: (PrimMonad m, C sh, Storable a) => Array m sh a -> m (Array sh a) Source #

unsafeThaw :: (PrimMonad m, C sh, Storable a) => Array sh a -> m (Array m sh a) Source #

append :: (C shx, C shy, Storable a) => (shx -> shy -> shz) -> Array shx a -> Array shy a -> Array shz a Source #