@hackage mappings0.3.2.0
Types which represent functions k -> v
Installation
Dependencies (6)
- base >=4.16 && <4.22
- cond >=0.5.1 && <0.6
- containers >=0.6.5 && <0.9
- formatting >=7.0.0 && <7.3
- indexed-traversable >=0.1.1 && <0.2
- partialord >=0.1 && <0.2 Show all…
Dependents (0)
Mappings
What's it do?
This package does two jobs:
-
It offers a general typeclass
Mappingfor types which represent functionsk -> v(for fixedk, but arbitrary orderedv).There are some fairly straightforward examples which build up mappings where
kisEither, or a pair, orMaybe, orBool. -
Three less trivial implementations are provided:
-
Decision diagrams, with nodes which may themselves be an arbitrary
Mapping(there is some code for viewing these in theexamplesdirectory); -
Piecewise constant maps on an ordered domain
k;
-
Why did I bother?
The aim is to use decision diagrams with nodes that are piecewise constant maps to store monomials for Grobner basis algorithms.