Add special::Bessel trait with xsf implementation#73
Merged
Conversation
Introduces the xsf namespace without tainting the special:: namespace. Introduces the chbevl function, which will be needed for functions such as i0, i1, k0, k1, rgamma and shichi.
Implement bessel as a trait for f64 with the modified i0 bessel function first. Can easily be extended for Vec and Array as necessary later.
We keep the extra precision to keep it easy to maintain the implementations (currently just mirrored) between the f32 and f64 versions.
d79ae33 to
c017378
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add xsf namespace (without polluting special namespace) as being a strictly internal set of functions.
Add Bessel trait.
Add modified bessel i0 function. Here are the plots.


Add scaled modified bessel i0e function.
Similar issue to #71 where clippy complains that there is an excess of precision. This is probably however necessary to ease maintainence burden.
Supercedes #71.