rounded-hw-0.2.0: Directed rounding for built-in floating types
Safe HaskellNone
LanguageHaskell2010

Numeric.Rounded.Hardware.Vector.Storable

Synopsis

Conversion between VS.Vector a and VS.Vector (Rounded r a)

Specialized functions

roundedSum :: RoundedRing_Vector vector a => RoundingMode -> vector a -> a Source #

Equivalent to \r -> foldl (roundedAdd r) 0

zipWith_roundedAdd :: RoundedRing_Vector vector a => RoundingMode -> vector a -> vector a -> vector a Source #

Equivalent to zipWith . roundedAdd

zipWith_roundedSub :: RoundedRing_Vector vector a => RoundingMode -> vector a -> vector a -> vector a Source #

Equivalent to zipWith . roundedSub

zipWith_roundedMul :: RoundedRing_Vector vector a => RoundingMode -> vector a -> vector a -> vector a Source #

Equivalent to zipWith . roundedMul

zipWith3_roundedFusedMultiplyAdd :: RoundedRing_Vector vector a => RoundingMode -> vector a -> vector a -> vector a -> vector a Source #

Equivalent to zipWith3 . roundedFusedMultiplyAdd

zipWith_roundedDiv :: RoundedFractional_Vector vector a => RoundingMode -> vector a -> vector a -> vector a Source #

Equivalent to zipWith . roundedDiv

map_roundedSqrt :: RoundedSqrt_Vector vector a => RoundingMode -> vector a -> vector a Source #

Equivalent to map . roundedSqrt

sum :: forall r a. (Rounding r, Storable a, RoundedRing_Vector Vector a) => Vector (Rounded r a) -> Rounded r a Source #

Equivalent to sum

zipWith_add :: forall r a. (Rounding r, Storable a, RoundedRing_Vector Vector a) => Vector (Rounded r a) -> Vector (Rounded r a) -> Vector (Rounded r a) Source #

Equivalent to zipWith (+)

zipWith_sub :: forall r a. (Rounding r, Storable a, RoundedRing_Vector Vector a) => Vector (Rounded r a) -> Vector (Rounded r a) -> Vector (Rounded r a) Source #

Equivalent to zipWith (-)

zipWith_mul :: forall r a. (Rounding r, Storable a, RoundedRing_Vector Vector a) => Vector (Rounded r a) -> Vector (Rounded r a) -> Vector (Rounded r a) Source #

Equivalent to zipWith (*)

zipWith3_fusedMultiplyAdd :: forall r a. (Rounding r, Storable a, RoundedRing_Vector Vector a) => Vector (Rounded r a) -> Vector (Rounded r a) -> Vector (Rounded r a) -> Vector (Rounded r a) Source #

Equivalent to zipWith3 fusedMultiplyAdd

zipWith_div :: forall r a. (Rounding r, Storable a, RoundedFractional_Vector Vector a) => Vector (Rounded r a) -> Vector (Rounded r a) -> Vector (Rounded r a) Source #

Equivalent to zipWith (/)

map_sqrt :: forall r a. (Rounding r, Storable a, RoundedSqrt_Vector Vector a) => Vector (Rounded r a) -> Vector (Rounded r a) Source #

Equivalent to map sqrt