Safe Haskell | None |
---|---|
Language | Haskell2010 |
Representation of subset of linear functions: only variables and coefficients, no constant summand
Documentation
Linear function is represented as a map from either a integral variable or an real variable, to a real coefficient.
mkLinear :: (Ord z, Ord r, Rep c) => [(Either z r, R c)] -> Linear z r c Source #
Create linear function from list of variables and coefficients