Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Variable i = (Eq i, Ord i)
- type Monomial i j = (Variable i, Ord j, Semiring j)
- newtype Mono i j = M (Map i j)
- monomial :: Monomial i j => Map i j -> Mono i j
- evalMonomial :: forall i j b. MultiplicativeMonoid b => Exponent b j => (i -> b) -> Mono i j -> b
- mapVar :: Variable i => Map i i -> i -> i
- mapVarMonomial :: Variable i => Map i i -> Mono i j -> Mono i j
- oneM :: Mono i j -> Bool
- dividable :: forall i j. Monomial i j => Mono i j -> Mono i j -> Bool
- lcmM :: Monomial i j => Mono i j -> Mono i j -> Mono i j
- gcdM :: Monomial i j => Mono i j -> Mono i j -> Mono i j
Documentation
Monomial type
Instances
(Monomial i j, Arbitrary i, Arbitrary j) => Arbitrary (Mono i j) Source # | |
(FromJSONKey i, Ord i, FromJSON j) => FromJSON (Mono i j) Source # | |
(ToJSON j, ToJSONKey i) => ToJSON (Mono i j) Source # | |
Generic (Mono i j) Source # | |
Monomial i j => IsList (Mono i j) Source # | |
(Show i, Show j, Monomial i j) => Show (Mono i j) Source # | |
(NFData i, NFData j) => NFData (Mono i j) Source # | |
Monomial i j => Eq (Mono i j) Source # | |
Monomial i j => Ord (Mono i j) Source # | |
(Monomial i j, Ring j) => MultiplicativeGroup (Mono i j) Source # | |
Monomial i j => MultiplicativeMonoid (Mono i j) Source # | |
Monomial i j => MultiplicativeSemigroup (Mono i j) Source # | |
(Monomial i j, Ring j) => Exponent (Mono i j) Integer Source # | |
Monomial i j => Exponent (Mono i j) Natural Source # | |
type Rep (Mono i j) Source # | |
type Item (Mono i j) Source # | |
evalMonomial :: forall i j b. MultiplicativeMonoid b => Exponent b j => (i -> b) -> Mono i j -> b Source #