Skip to content

feat: add C implementation for math/base/special/spence #968

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

Jordan-Gallivan
Copy link
Contributor

Resolves #894

Description: C implementation of Spence's function

What is the purpose of this pull request?

This pull request:

  • C implementation of Spence's function

Related Issues

Does this pull request have any related issues? No.

This pull request:

Questions

Any questions for reviewers of this pull request?

o There was some inconsistency in the .js files in terms of referring to this as "Spence's Function" or the Dilogarithm". Would you like me to keep a standard naming convention through out?
o while reasearching the evalpoly scripts, I noticed that some of the other functions that utilize cephes scripts do not have a c/native sub folder. I added one because the Ln() function does. I can easily delete it if it's not necessary
o For the test.native.js, I again referenced Ln()/. Do that file goes from big numbers to small numbers, but the test.js in spence goes from small to big. Which would you prefer?
o what commands do I need to execute to run the evalpoly script (to build in the polyval_a and polyval_b methods in the main.c file?

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

@Planeshifter Planeshifter changed the title c implementation for stdlib/math/base/special/spence feat: add C implementation for math/base/special/spence Mar 3, 2024
@kgryte kgryte added Enhancement Issue or pull request for enhancing existing functionality. Needs Review A pull request which needs code review. Math Issue or pull request specific to math functionality. Stale Issue or pull request which has not been updated in an extended period of time. C Issue involves or relates to C. labels Mar 6, 2024
@gunjjoshi
Copy link
Member

Hey @Jordan-Gallivan, are you still working on this ?
If not, can I take this up ?

@kgryte kgryte closed this in e382574 Jun 7, 2024
aman-095 pushed a commit to aman-095/stdlib that referenced this pull request Jun 13, 2024
PR-URL: stdlib-js#2298
Closes: stdlib-js#894
Closes: stdlib-js#968
Ref: stdlib-js#649
Co-authored-by: Athan Reines <[email protected]>
Co-authored-by: Philipp Burckhardt <[email protected]>
Reviewed-by: Athan Reines <[email protected]>
Reviewed-by: Philipp Burckhardt <[email protected]>
Signed-off-by: Philipp Burckhardt <[email protected]>
Signed-off-by: Athan Reines <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Issue involves or relates to C. Enhancement Issue or pull request for enhancing existing functionality. Math Issue or pull request specific to math functionality. Needs Review A pull request which needs code review. Stale Issue or pull request which has not been updated in an extended period of time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC]: Add C implementation for @stdlib/math/base/special/spence
3 participants