-
-
Notifications
You must be signed in to change notification settings - Fork 456
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
refactor: add support for ratios evaluating as infinity in math/base/tools/evalrational-compile-c
#1970
Conversation
I have used Also, I have added 2 tests, which use This PR is a pre-requisite for #1834. |
Signed-off-by: Athan <kgryte@gmail.com>
lib/node_modules/@stdlib/math/base/tools/evalrational-compile-c/lib/main.js
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/tools/evalrational-compile-c/lib/main.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <kgryte@gmail.com>
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.
LGTM. Thanks, @gunjjoshi. You'll want to make a note of how I updated the tests. As done elsewhere in the tests, we need to test across all the different function types. In general, unit tests should be agnostic as possible regarding implementation details (i.e., they should test to API and expected behavior, not our knowledge of how things are implemented).
math/base/tools/evalrational-compile-c
math/base/tools/evalrational-compile-c
I will certainly make a note of that, thanks for sharing this ! |
Description
This pull request:
value2string
function inmath/base/tools/evalrational-compile-c/lib/main.js
to handle the edge case where the ratio is positive or negative infinity. This modification has been done base on feat: add C implementation formath/base/special/gamma-lanczos-sum
#1834 (comment).Related Issues
@stdlib/math/base/special/gamma-lanczos-sum
#1822.Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers