Skip to content

J-Sarnoff/RoundFast.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 

Repository files navigation

RoundFast.jl

Fast directed rounding for inline arithmetic.

using RoundFast

Choose the rounding mode to use. It must be one of these modes.
{RoundNearest, RoundUp, RoundDown, RoundToZero, RoundFromZero}.

Note that this offers RoundFromZero for Floats, while Julia v0.5 does not.

Apply the arithmetic operator, specifying args and then rounding mode.

  lo = (+)(a, b, RoundDown)     # interval addition, accurately rounded
  hi = (+)(a, b, RoundUp)       # processor settings do not change

  lo = (sqrt)(a, RoundDown)     # interval sqrt, accurately rounded
  hi = (sqrt)(a, RoundUp)       # processor settings do not change

These arithmetic operations are supported: +, -, *, /, sqr, sqrt.

see src/README.md for more information

About

fast directed rounding for inline arithmetic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages