| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Numeric.Algebra.Factorable
Synopsis
- class Multiplicative m => Factorable m where
Factorable Multiplicative Semigroups
class Multiplicative m => Factorable m where #
`factorWith f c` returns a non-empty list containing `f a b` for all `a, b` such that `a * b = c`.
Results of factorWith f 0 are undefined and may result in either an error or an infinite list.
Minimal complete definition
Methods
factorWith :: (m -> m -> r) -> m -> NonEmpty r #
Instances
| Factorable Bool # | |
Defined in Numeric.Algebra.Factorable | |
| Factorable () # | |
Defined in Numeric.Algebra.Factorable Methods factorWith :: (() -> () -> r) -> () -> NonEmpty r # | |
| Partitionable r => Factorable (Exp r) # | |
Defined in Numeric.Exp | |
| (Factorable a, Factorable b) => Factorable (a, b) # | |
Defined in Numeric.Algebra.Factorable Methods factorWith :: ((a, b) -> (a, b) -> r) -> (a, b) -> NonEmpty r # | |
| (Factorable a, Factorable b, Factorable c) => Factorable (a, b, c) # | |
Defined in Numeric.Algebra.Factorable Methods factorWith :: ((a, b, c) -> (a, b, c) -> r) -> (a, b, c) -> NonEmpty r # | |
| (Factorable a, Factorable b, Factorable c, Factorable d) => Factorable (a, b, c, d) # | |
Defined in Numeric.Algebra.Factorable Methods factorWith :: ((a, b, c, d) -> (a, b, c, d) -> r) -> (a, b, c, d) -> NonEmpty r # | |
| (Factorable a, Factorable b, Factorable c, Factorable d, Factorable e) => Factorable (a, b, c, d, e) # | |
Defined in Numeric.Algebra.Factorable Methods factorWith :: ((a, b, c, d, e) -> (a, b, c, d, e) -> r) -> (a, b, c, d, e) -> NonEmpty r # | |