vector-space-map

vector-space operations for finite maps using Data.Map

https://github.com/conklech/vector-space-map

Latest on Hackage:0.2.1.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

MIT licensed by Christian Conkle
Maintained by [email protected]

Data.Map.Vector provides MapVector, a wrapper around Map from containers which supports constant maps, i.e. maps containing only one value. This allows an identity under intersection and an Applicative instance. It also has instances of AdditiveGroup, VectorSpace, InnerSpace, and HasBasis with appropriate value types. Provides operations for addition, subtraction, element-wise operations (through Applicative), scalar multiplication (through VectorSpace), and dot product. Also consider Conal Elliott's total-map package.