NaNMath.jl
NaNMath.jl copied to clipboard
Julia math built-ins which return NaN and accumulator functions which ignore NaN
Bumps [julia-actions/setup-julia](https://github.com/julia-actions/setup-julia) from 1 to 2. Release notes Sourced from julia-actions/setup-julia's releases. v2.0.0 - Update to Node20 What's Changed update to node20 by @ranocha in julia-actions/setup-julia#209 Note the rationale for...
Given `a + bim`, we could just return `Base.sqrt(a + bim)` since it can handle those values without throwing domain errors. Currently, `NaNMath.sqrt(a + bim)` will just yield a missing...
``` julia> NaNMath.pow(1.0, 1.0+im) ERROR: StackOverflowError: Stacktrace: [1] pow(x::ComplexF64, y::ComplexF64) (repeats 2 times) @ NaNMath ~/.julia/packages/NaNMath/ceWIc/src/NaNMath.jl:26 ```
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4. Release notes Sourced from codecov/codecov-action's releases. v4.0.0 v4 of the Codecov Action uses the CLI as the underlying upload. The CLI has helped to...
This allows constant folding and dead code elimination on Julia 1.8 and up.
```julia julia> asin(1+1im) 0.6662394324925153 + 1.0612750619050357im julia> using NaNMath julia> NaNMath.asin(1+1im) ERROR: MethodError: no method matching asin(::Complex{Int64}) You may have intended to import Base.asin Closest candidates are: asin(::DualNumbers.Dual) @ DualNumbers...
Hi, I noticed that if I implement my own `log` function where I take care of the branch-cut by hand, it performs better than the `NaNMath.log`: ```julia julia> using NaNMath...
This is an attempt at building from #53 (and addressing issue #31) that aims to follow the existing style of code and docstrings of NaNMath. I'm going for clarity in...
This is based on https://github.com/julia-actions/julia-invalidations. Adding such checks came up in https://discourse.julialang.org/t/potential-performance-regressions-in-julia-1-8-for-special-un-precompiled-type-dispatches-and-how-to-fix-them/86359. I suggest to add this check here since this package is widely used as a dependency. See also...