Semiring Bool Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Double Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Float Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Int Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Int8 Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Int16 Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Int32 Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Int64 Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Integer Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Natural Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Word Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Word8 Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Word16 Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Word32 Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Word64 Source # | |
Instance detailsDefined in Data.Semiring |
Semiring () Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CDev Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CIno Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CMode Source # | |
Instance detailsDefined in Data.Semiring |
Semiring COff Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CPid Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CSsize Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CGid Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CNlink Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CUid Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CCc Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CSpeed Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CTcflag Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CRLim Source # | |
Instance detailsDefined in Data.Semiring |
Semiring Fd Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CChar Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CSChar Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CUChar Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CShort Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CUShort Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CInt Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CUInt Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CLong Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CULong Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CLLong Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CULLong Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CFloat Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CDouble Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CPtrdiff Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CSize Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CWchar Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CSigAtomic Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CClock Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CTime Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CUSeconds Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CSUSeconds Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CIntPtr Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CUIntPtr Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CIntMax Source # | |
Instance detailsDefined in Data.Semiring |
Semiring CUIntMax Source # | |
Instance detailsDefined in Data.Semiring |
Semiring WordPtr Source # | |
Instance detailsDefined in Data.Semiring |
Semiring IntPtr Source # | |
Instance detailsDefined in Data.Semiring |
Semiring a => Semiring [a] Source # | The Semiring instance for '[a]' can be interpreted as
treating each element of the list as coefficients to a
polynomial in one variable. ExamplesExpandpoly1 = [1,2,3] :: [Int]
poly2 = [ 2,1] :: [Int]
poly1 * poly2 = [2,5,8,3]
fromList [2,5,8,3]
|
Instance detailsDefined in Data.Semiring |
Semiring a => Semiring (Maybe a) Source # | |
Instance detailsDefined in Data.Semiring |
Integral a => Semiring (Ratio a) Source # | |
Instance detailsDefined in Data.Semiring |
Semiring a => Semiring (IO a) Source # | |
Instance detailsDefined in Data.Semiring |
Ring a => Semiring (Complex a) Source # | This instance can suffer due to floating point arithmetic. |
Instance detailsDefined in Data.Semiring |
HasResolution a => Semiring (Fixed a) Source # | |
Instance detailsDefined in Data.Semiring |
Semiring (Predicate a) Source # | |
Instance detailsDefined in Data.Semiring |
Semiring a => Semiring (Equivalence a) Source # | |
Instance detailsDefined in Data.Semiring |
Semiring a => Semiring (Identity a) Source # | |
Instance detailsDefined in Data.Semiring |
Semiring a => Semiring (Dual a) Source # | |
Instance detailsDefined in Data.Semiring |
Semiring a => Semiring (Down a) Source # | |
Instance detailsDefined in Data.Semiring |
(Ord a, Monoid a) => Semiring (Set a) Source # | The multiplication laws are satisfied for
any underlying Monoid , so we require a
Monoid constraint instead of a Semiring
constraint since times can use
the context of either. |
Instance detailsDefined in Data.Semiring |
(Eq a, Hashable a, Monoid a) => Semiring (HashSet a) Source # | The multiplication laws are satisfied for
any underlying Monoid , so we require a
Monoid constraint instead of a Semiring
constraint since times can use
the context of either. |
Instance detailsDefined in Data.Semiring |
(Unbox a, Semiring a) => Semiring (Vector a) Source # | |
Instance detailsDefined in Data.Semiring |
(Storable a, Semiring a) => Semiring (Vector a) Source # | |
Instance detailsDefined in Data.Semiring |
Semiring a => Semiring (Vector a) Source # | The Semiring instance for 'Vector a' can be interpreted as
treating each element of the list as coefficients to a
polynomial in one variable. ExamplesExpandpoly1 = Vector.fromList [1,2,3 :: Int]
poly2 = Vector.fromList [ 2,1 :: Int]
poly1 * poly2
fromList [2,5,8,3]
|
Instance detailsDefined in Data.Semiring |
(Coercible Int a, Monoid a) => Semiring (IntSetOf a) Source # | |
Instance detailsDefined in Data.Semiring |
Num a => Semiring (WrappedNum a) Source # | |
Instance detailsDefined in Data.Semiring |
Semiring a => Semiring (GenericSemiring a) Source # | |
Instance detailsDefined in Data.Semiring.Generic |
Semiring b => Semiring (a -> b) Source # | |
Instance detailsDefined in Data.Semiring |
(Semiring a, Semiring b) => Semiring (a, b) Source # | |
Instance detailsDefined in Data.Semiring.Generic |
Semiring a => Semiring (Op a b) Source # | |
Instance detailsDefined in Data.Semiring |
Semiring (Proxy a) Source # | |
Instance detailsDefined in Data.Semiring |
(Ord k, Monoid k, Semiring v) => Semiring (Map k v) Source # | The multiplication laws are satisfied for
any underlying Monoid as the key type,
so we require a Monoid constraint instead of
a Semiring constraint since times can use
the context of either. |
Instance detailsDefined in Data.Semiring |
(Eq k, Hashable k, Monoid k, Semiring v) => Semiring (HashMap k v) Source # | The multiplication laws are satisfied for
any underlying Monoid as the key type,
so we require a Monoid constraint instead of
a Semiring constraint since times can use
the context of either. |
Instance detailsDefined in Data.Semiring |
(Coercible Int k, Monoid k, Semiring v) => Semiring (IntMapOf k v) Source # | |
Instance detailsDefined in Data.Semiring |
(Ord a, Monoid a, Extremum e) => Semiring (Tropical e a) Source # | |
Instance detailsDefined in Data.Semiring.Tropical |
(Semiring a, Semiring b, Semiring c) => Semiring (a, b, c) Source # | |
Instance detailsDefined in Data.Semiring.Generic Methods plus :: (a, b, c) -> (a, b, c) -> (a, b, c) Source # zero :: (a, b, c) Source # times :: (a, b, c) -> (a, b, c) -> (a, b, c) Source # one :: (a, b, c) Source # |
Semiring a => Semiring (Const a b) Source # | |
Instance detailsDefined in Data.Semiring |
(Semiring a, Applicative f) => Semiring (Ap f a) Source # | |
Instance detailsDefined in Data.Semiring |
(Semiring a, Semiring b, Semiring c, Semiring d) => Semiring (a, b, c, d) Source # | |
Instance detailsDefined in Data.Semiring.Generic Methods plus :: (a, b, c, d) -> (a, b, c, d) -> (a, b, c, d) Source # zero :: (a, b, c, d) Source # times :: (a, b, c, d) -> (a, b, c, d) -> (a, b, c, d) Source # one :: (a, b, c, d) Source # |
(Semiring a, Semiring b, Semiring c, Semiring d, Semiring e) => Semiring (a, b, c, d, e) Source # | |
Instance detailsDefined in Data.Semiring.Generic Methods plus :: (a, b, c, d, e) -> (a, b, c, d, e) -> (a, b, c, d, e) Source # zero :: (a, b, c, d, e) Source # times :: (a, b, c, d, e) -> (a, b, c, d, e) -> (a, b, c, d, e) Source # one :: (a, b, c, d, e) Source # |
(Semiring a, Semiring b, Semiring c, Semiring d, Semiring e, Semiring f) => Semiring (a, b, c, d, e, f) Source # | |
Instance detailsDefined in Data.Semiring.Generic Methods plus :: (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> (a, b, c, d, e, f) Source # zero :: (a, b, c, d, e, f) Source # times :: (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> (a, b, c, d, e, f) Source # one :: (a, b, c, d, e, f) Source # |
(Semiring a, Semiring b, Semiring c, Semiring d, Semiring e, Semiring f, Semiring g) => Semiring (a, b, c, d, e, f, g) Source # | |
Instance detailsDefined in Data.Semiring.Generic Methods plus :: (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) Source # zero :: (a, b, c, d, e, f, g) Source # times :: (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) Source # one :: (a, b, c, d, e, f, g) Source # |