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

Portabilitynon-portable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellNone

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.