Copyright | (c) Edward Kmett 2021 |
---|---|
License | BSD3 |
Maintainer | ekmett@gmail.com |
Stability | experimental |
Portability | GHC only |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
The choice between two AD modes is an AD mode in its own right
Instances
(Mode a, Mode b, Chosen s, Scalar a ~ Scalar b) => Mode (Or s a b) Source # | |
Defined in Numeric.AD.Internal.Or isKnownConstant :: Or s a b -> Bool Source # asKnownConstant :: Or s a b -> Maybe (Scalar (Or s a b)) Source # isKnownZero :: Or s a b -> Bool Source # auto :: Scalar (Or s a b) -> Or s a b Source # (*^) :: Scalar (Or s a b) -> Or s a b -> Or s a b Source # (^*) :: Or s a b -> Scalar (Or s a b) -> Or s a b Source # | |
(Bounded a, Bounded b, Chosen s) => Bounded (Or s a b) Source # | |
(Enum a, Enum b, Chosen s) => Enum (Or s a b) Source # | |
(Floating a, Floating b, Chosen s) => Floating (Or s a b) Source # | |
Defined in Numeric.AD.Internal.Or sqrt :: Or s a b -> Or s a b # (**) :: Or s a b -> Or s a b -> Or s a b # logBase :: Or s a b -> Or s a b -> Or s a b # asin :: Or s a b -> Or s a b # acos :: Or s a b -> Or s a b # atan :: Or s a b -> Or s a b # sinh :: Or s a b -> Or s a b # cosh :: Or s a b -> Or s a b # tanh :: Or s a b -> Or s a b # asinh :: Or s a b -> Or s a b # acosh :: Or s a b -> Or s a b # atanh :: Or s a b -> Or s a b # log1p :: Or s a b -> Or s a b # expm1 :: Or s a b -> Or s a b # | |
(RealFloat a, RealFloat b, Chosen s) => RealFloat (Or s a b) Source # | |
Defined in Numeric.AD.Internal.Or floatRadix :: Or s a b -> Integer # floatDigits :: Or s a b -> Int # floatRange :: Or s a b -> (Int, Int) # decodeFloat :: Or s a b -> (Integer, Int) # encodeFloat :: Integer -> Int -> Or s a b # significand :: Or s a b -> Or s a b # scaleFloat :: Int -> Or s a b -> Or s a b # isInfinite :: Or s a b -> Bool # isDenormalized :: Or s a b -> Bool # isNegativeZero :: Or s a b -> Bool # | |
(Num a, Num b, Chosen s) => Num (Or s a b) Source # | |
(Fractional a, Fractional b, Chosen s) => Fractional (Or s a b) Source # | |
(Real a, Real b, Chosen s) => Real (Or s a b) Source # | |
Defined in Numeric.AD.Internal.Or toRational :: Or s a b -> Rational # | |
(RealFrac a, RealFrac b, Chosen s) => RealFrac (Or s a b) Source # | |
(Erf a, Erf b, Chosen s) => Erf (Or s a b) Source # | |
(InvErf a, InvErf b, Chosen s) => InvErf (Or s a b) Source # | |
(Eq a, Eq b) => Eq (Or s a b) Source # | |
(Ord a, Ord b) => Ord (Or s a b) Source # | |
Defined in Numeric.AD.Internal.Or | |
type Scalar (Or s a b) Source # | |
Defined in Numeric.AD.Internal.Or |