Skip to content
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

feat: add C implementation for math/base/special/gamma-lanczos-sum #1834

Merged
merged 133 commits into from
Mar 21, 2024
Merged

feat: add C implementation for math/base/special/gamma-lanczos-sum #1834

merged 133 commits into from
Mar 21, 2024

Conversation

gunjjoshi
Copy link
Member

@gunjjoshi gunjjoshi commented Mar 11, 2024

Resolves #1822

Description

What is the purpose of this pull request?

This pull request:

Related Issues

Does this pull request have any related issues?

This pull request:

Questions

Any questions for reviewers of this pull request?

No.

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 added Needs Review A pull request which needs code review. Native Addons Issue involves or relates to Node.js native add-ons. C Issue involves or relates to C. labels Mar 11, 2024
@kgryte kgryte added Feature Issue or pull request for adding a new feature. Math Issue or pull request specific to math functionality. labels Mar 11, 2024
Signed-off-by: Athan <kgryte@gmail.com>
Copy link
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gunjjoshi Thanks for working on this. Left a comment regarding the implementation. Once the implementation is updated using code generation, this should be on the path to merging.

Signed-off-by: Athan <kgryte@gmail.com>
@gunjjoshi
Copy link
Member Author

Thanks for pointing this out @kgryte. I have modified scripts/evalrational.js. Now, it injects the required functions in main.c. Am I correct in the implementation now ? Any other suggestions ?

@Pranavchiku Pranavchiku added Needs Changes Pull request which needs changes before being merged. and removed Needs Review A pull request which needs code review. labels Mar 12, 2024
Signed-off-by: GUNJ JOSHI <gunjjoshi8372@gmail.com>
stdlib-bot and others added 27 commits March 21, 2024 01:48
PR-URL: #1930

---------

Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
…odd`

PR-URL: #1935

Reviewed-by: Pranav Goswami <goswami.4@iitj.ac.in>
PR-URL: #1851
Closes: #819

---------

Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
Co-authored-by: Philipp Burckhardt <pburckhardt@outlook.com>
Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
PR-URL: #1937

Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>
Reviewed-by: Planeshifter <1913638+Planeshifter@users.noreply.github.com>
PR-URL:  #1934
Closes: #1916

---------

Signed-off-by: GUNJ JOSHI <gunjjoshi8372@gmail.com>
Signed-off-by: Pranav Goswami <goswami.4@iitj.ac.in>
Co-authored-by: Pranav Goswami <goswami.4@iitj.ac.in>
Reviewed-by: Pranav Goswami <goswami.4@iitj.ac.in>
PR-URL: #1919
Closes: #1917

---------

Signed-off-by: GUNJ JOSHI <gunjjoshi8372@gmail.com>
Signed-off-by: Pranav Goswami <goswami.4@iitj.ac.in>
Co-authored-by: Pranav Goswami <goswami.4@iitj.ac.in>
Reviewed-by: Pranav Goswami <goswami.4@iitj.ac.in>
Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
PR-URL: #1777
Closes: #33

---------

Signed-off-by: Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
Co-authored-by: Philipp Burckhardt <pburckhardt@outlook.com>
Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
PR-URL: #1909

---------

Signed-off-by: Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
Signed-off-by: Pranav Goswami <goswami.4@iitj.ac.in>
Co-authored-by:Pranav Goswami <goswami.4@iitj.ac.in>
Reviewed-by: Pranav Goswami <goswami.4@iitj.ac.in>
Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
PR-URL: #1918
Closes: #1901

---------

Signed-off-by: Rutam <138517416+performant23@users.noreply.github.com>
Signed-off-by: Pranav <85227306+Pranavchiku@users.noreply.github.com>
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
Co-authored-by: Pranav <85227306+Pranavchiku@users.noreply.github.com>
Co-authored-by: Philipp Burckhardt <pburckhardt@outlook.com>
Reviewed-by: Pranav Goswami <goswami.4@iitj.ac.in>
Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
R linting seems to be broken on CI, see `lint_random_files.yml` workflow
run such as the following:

https://github.com/stdlib-js/stdlib/actions/runs/8319437589/job/22762740425#step:15:988

This PR updates the installed R version to see if that resolves the
issue as all dependencies are correctly installed from CRAN locally
when ussing that version.
PR-URL: #1940

Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>
Reviewed-by: Planeshifter <1913638+Planeshifter@users.noreply.github.com>
PR-URL: #1941

Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
…ventions

PR-URL: 	#1867
Closes: #1471
Ref: #1152
Co-authored-by: Athan Reines <kgryte@gmail.com>
Reviewed-by: Athan Reines <kgryte@gmail.com> 
Signed-off-by: Athan Reines <kgryte@gmail.com>
PR-URL: #1956

Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>
Co-authored-by: kgryte <2643044+kgryte@users.noreply.github.com>
Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
PR-URL: 	#1958
Reviewed-by: Athan Reines <kgryte@gmail.com>
Reviewed-by: Pranav Goswami <goswami.4@iitj.ac.in>
PR-URL: 	#1953
Ref: #1944
Co-authored-by: Athan Reines <kgryte@gmail.com>
Reviewed-by: Athan Reines <kgryte@gmail.com> 
Signed-off-by: GUNJ JOSHI <gunjjoshi8372@gmail.com>
Signed-off-by: Athan Reines <kgryte@gmail.com>
The seed for MT19937 must be a nonzero positive integer, as discussed
in the original paper describing the Mersenne Twister PRNG.

Closes: #1963
Copy link
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, @gunjjoshi!

@kgryte kgryte merged commit 5c8ab25 into stdlib-js:develop Mar 21, 2024
8 checks passed
@gunjjoshi gunjjoshi deleted the gamma-lanczos-sum branch March 21, 2024 00:05
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. Feature Issue or pull request for adding a new feature. Math Issue or pull request specific to math functionality. Native Addons Issue involves or relates to Node.js native add-ons.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC]: add C implementation for @stdlib/math/base/special/gamma-lanczos-sum