sparse-0.9.2: A playground of sparse linear algebra primitives using Morton ordering

Copyright(C) 2013 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell98

Sparse.Matrix.Internal.Fusion

Description

Matrix stream fusion internals

Synopsis

Documentation

mergeStreamsWith :: Monad m => (a -> a -> a) -> Stream m (Key, a) -> Stream m (Key, a) -> Stream m (Key, a) Source

This is the internal stream fusion combinator used to merge streams for addition.

mergeStreamsWith0 :: Monad m => (a -> a -> Maybe a) -> Stream m (Key, a) -> Stream m (Key, a) -> Stream m (Key, a) Source

This is the internal stream fusion combinator used to merge streams for addition.

This form permits cancellative addition.