-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Half-precision floating-point
--
-- Half-precision floating-point
@package half
@version 0.2.2
-- | Half-precision floating-point values. These arise commonly in GPU work
-- and it is useful to be able to compute them and compute with them on
-- the CPU as well.
module Numeric.Half
newtype Half
[Half] :: CUShort -> Half
[getHalf] :: Half -> CUShort
-- | Is this Half equal to 0?
isZero :: Half -> Bool
-- | Convert a Half to a Float while preserving NaN
fromHalf :: Half -> Float
-- | Convert a Float to a Half with proper rounding, while
-- preserving NaN and dealing appropriately with infinity
toHalf :: Float -> Half
-- | Positive infinity
-- | Negative infinity
-- | Quiet NaN
-- | Signalling NaN
-- | Smallest positive half
-- | Smallest positive normalized half
-- | Largest positive half
-- | Smallest positive e for which half (1.0 + e) != half (1.0)
-- | Number of base 10 digits that can be represented without change
instance Storable Half
instance Show Half
instance Read Half
instance Eq Half
instance Ord Half
instance Real Half
instance Fractional Half
instance RealFrac Half
instance Floating Half
instance RealFloat Half
instance Num Half