| Copyright | (C) 2012-2015 Edward Kmett |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe |
| Language | Haskell98 |
Linear.Conjugate
Description
Involutive rings
- class Num a => Conjugate a where
- class Conjugate a => TrivialConjugate a
Documentation
class Num a => Conjugate a where #
An involutive ring
Methods
Conjugate a value. This defaults to the trivial involution.
>>>conjugate (1 :+ 2)1.0 :+ (-2.0)
>>>conjugate 11
conjugate :: TrivialConjugate a => a -> a #
Conjugate a value. This defaults to the trivial involution.
>>>conjugate (1 :+ 2)1.0 :+ (-2.0)
>>>conjugate 11
Instances
| Conjugate Double # | |
| Conjugate Float # | |
| Conjugate Int # | |
| Conjugate Int8 # | |
| Conjugate Int16 # | |
| Conjugate Int32 # | |
| Conjugate Int64 # | |
| Conjugate Integer # | |
| Conjugate Word # | |
| Conjugate Word8 # | |
| Conjugate Word16 # | |
| Conjugate Word32 # | |
| Conjugate Word64 # | |
| Conjugate CFloat # | |
| Conjugate CDouble # | |
| (Conjugate a, RealFloat a) => Conjugate (Complex a) # | |
| (Conjugate a, RealFloat a) => Conjugate (Quaternion a) # | |
class Conjugate a => TrivialConjugate a #
Instances