Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- insertIM2 :: Key -> Key -> a -> IntMap (IntMap a) -> IntMap (IntMap a)
- lookupIM2 :: Key -> Key -> IntMap (IntMap a) -> Maybe a
- fromListIM2 :: Foldable t => t (Key, Key, a) -> IntMap (IntMap a) -> IntMap (IntMap a)
- ifoldlIM2' :: (Key -> Key -> a -> b -> b) -> b -> IntMap (IntMap a) -> b
- ifoldlIM2 :: (Key -> Key -> t -> IntMap a -> IntMap a) -> IntMap (IntMap t) -> IntMap a
- foldlIM2 :: (a -> b -> b) -> b -> IntMap (IntMap a) -> b
- transposeIM2 :: IntMap (IntMap a) -> IntMap (IntMap a)
- ifilterIM2 :: (Key -> Key -> a -> Bool) -> IntMap (IntMap a) -> IntMap (IntMap a)
- filterSubdiag :: IntMap (IntMap a) -> IntMap (IntMap a)
- countSubdiagonalNZ :: IntMap (IntMap a) -> Int
- subdiagIndices :: IntMap (IntMap a) -> [(Key, Key)]
- rpairs :: (a, [b]) -> [(a, b)]
- mapIM2 :: (a -> b) -> IntMap (IntMap a) -> IntMap (IntMap b)
- imapIM2 :: (Key -> Key -> a -> b) -> IntMap (IntMap a) -> IntMap (IntMap b)
- mapKeysIM2 :: (Key -> Key) -> (Key -> Key) -> IntMap (IntMap a) -> IntMap (IntMap a)
- mapColumnIM2 :: (b -> b) -> IntMap (IntMap b) -> Int -> IntMap (IntMap b)
Documentation
set-like brackets
Insertion
Lookup
fromListIM2 :: Foldable t => t (Key, Key, a) -> IntMap (IntMap a) -> IntMap (IntMap a) Source #
Ppopulate an IM2 from a list of (row index, column index, value)
folding
ifoldlIM2' :: (Key -> Key -> a -> b -> b) -> b -> IntMap (IntMap a) -> b Source #
Indexed left fold over an IM2, with general accumulator
ifoldlIM2 :: (Key -> Key -> t -> IntMap a -> IntMap a) -> IntMap (IntMap t) -> IntMap a Source #
Indexed left fold over an IM2
foldlIM2 :: (a -> b -> b) -> b -> IntMap (IntMap a) -> b Source #
Left fold over an IM2, with general accumulator
transposeIM2 :: IntMap (IntMap a) -> IntMap (IntMap a) Source #
Inner indices become outer ones and vice versa. No loss of information because both inner and outer IntMaps are nubbed.
filtering
ifilterIM2 :: (Key -> Key -> a -> Bool) -> IntMap (IntMap a) -> IntMap (IntMap a) Source #
Map over outer IM and filter all inner IM's
filterSubdiag :: IntMap (IntMap a) -> IntMap (IntMap a) Source #
Specialized filtering : keep only sub-diagonal elements
subdiagIndices :: IntMap (IntMap a) -> [(Key, Key)] Source #
List of (row, col) indices of (nonzero) subdiagonal elements
mapping
imapIM2 :: (Key -> Key -> a -> b) -> IntMap (IntMap a) -> IntMap (IntMap b) Source #
Indexed map over IM2
mapKeysIM2 :: (Key -> Key) -> (Key -> Key) -> IntMap (IntMap a) -> IntMap (IntMap a) Source #
Mapping keys