-
Notifications
You must be signed in to change notification settings - Fork 2
translate the Cephes log_exp functions into pure Rust
#177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR translates the Cephes log_exp functions from C++ FFI bindings to pure Rust implementations. The functions are now implemented directly in Rust, removing the need for C++ wrapper code generation.
- All five
log_expfunctions (expit,exprel,logit,log_expit,log1mexp) are now pure Rust implementations - Comprehensive documentation added with LaTeX/KaTeX math expressions and links to scipy.special
- Build configuration updated to remove C++ binding generation for these functions
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/xsf/log_exp.rs | Replaces C++ FFI calls with pure Rust implementations and adds comprehensive documentation for all five log/exp functions |
| src/lib.rs | Updates documentation tables with proper formatting and adds log1mexp to the "Other special functions" section |
| build.rs | Removes log_exp.h from wrapper includes and removes function binding specifications for the five translated functions |
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
No description provided.