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.
Instances
(Ord z, Ord r, Rep c) => Eq (Linear z r c) Source # | |
(Ord z, Ord r, Rep c) => Ord (Linear z r c) Source # | |
Defined in Numeric.Limp.Canon.Linear |
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