Safe Haskell | None |
---|---|
Language | Haskell2010 |
Element-by-element operation for Representable
s
- class (Representable m, Additive a) => AdditiveBasis m a where
- class (Representable m, AdditiveGroup a) => AdditiveGroupBasis m a where
- class (Representable m, Multiplicative a) => MultiplicativeBasis m a where
- class (Representable m, MultiplicativeGroup a) => MultiplicativeGroupBasis m a where
Documentation
class (Representable m, Additive a) => AdditiveBasis m a where Source #
element by element addition
(a .+. b) .+. c == a .+. (b .+. c) zero .+. a = a a .+. zero = a a .+. b == b .+. a
(Representable r, Additive a) => AdditiveBasis r a Source # | |
class (Representable m, AdditiveGroup a) => AdditiveGroupBasis m a where Source #
element by element subtraction
a .-. a = singleton zero
(Representable r, AdditiveGroup a) => AdditiveGroupBasis r a Source # | |
class (Representable m, Multiplicative a) => MultiplicativeBasis m a where Source #
element by element multiplication
(a .*. b) .*. c == a .*. (b .*. c) singleton one .*. a = a a .*. singelton one = a a .*. b == b .*. a
(Representable r, Multiplicative a) => MultiplicativeBasis r a Source # | |
class (Representable m, MultiplicativeGroup a) => MultiplicativeGroupBasis m a where Source #
element by element division
a ./. a == singleton one
(Representable r, MultiplicativeGroup a) => MultiplicativeGroupBasis r a Source # | |