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 math/base/special/expf #3318

Open
wants to merge 52 commits into
base: develop
Choose a base branch
from

Conversation

vivekmaurya001
Copy link
Contributor

@vivekmaurya001 vivekmaurya001 commented Dec 3, 2024

Progresses #649

Description

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

@stdlib-bot stdlib-bot added the Math Issue or pull request specific to math functionality. label Dec 3, 2024
@stdlib-bot
Copy link
Contributor

Hello! Thank you for your contribution to stdlib.

We noticed that the contributing guidelines acknowledgment is missing from your pull request. Here's what you need to do:

  1. Please read our contributing guidelines.

  2. Update your pull request description to include this checked box:

    - [x] Read, understood, and followed the [contributing guidelines](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md)

This acknowledgment confirms that you've read the guidelines, which include:

  • The developer's certificate of origin
  • Your agreement to license your contributions under the project's terms

We can't review or accept contributions without this acknowledgment.

Thank you for your understanding and cooperation. We look forward to reviewing your contribution!

Copy link
Contributor

@stdlib-bot stdlib-bot left a comment

Choose a reason for hiding this comment

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

👋 Hi there! 👋

And thank you for opening your first pull request! We will review it shortly. 🏃 💨

@gunjjoshi gunjjoshi changed the title feat: add math/base/special/expf feat: add math/base/special/expf Dec 3, 2024
@gunjjoshi
Copy link
Member

@vivekmaurya001 Thanks for working on this, CI tests must pass in order to move ahead with this PR.

@kgryte kgryte added the Needs Changes Pull request which needs changes before being merged. label Dec 3, 2024
@stdlib-bot
Copy link
Contributor

stdlib-bot commented Dec 4, 2024

Coverage Report

Package Statements Branches Functions Lines
math/base/special/expf 421 / 429
+ 98.14 %
21 / 25
+ 84.00 %
4 / 4
+ 100.00 %
421 / 429
+ 98.14 %

The above coverage report was generated for the changes in this PR.

@vivekmaurya001
Copy link
Contributor Author

done changes , waiting for your inputs in this @gunjjoshi !

@stdlib-bot stdlib-bot added the bot: In Progress Pull request is currently awaiting automation. label Jan 3, 2025
@stdlib-bot stdlib-bot removed the bot: In Progress Pull request is currently awaiting automation. label Jan 3, 2025
Signed-off-by: Gunj Joshi <gunjjoshi8372@gmail.com>
@gunjjoshi gunjjoshi added Needs Changes Pull request which needs changes before being merged. and removed Needs Review A pull request which needs code review. labels Jan 3, 2025
@gunjjoshi
Copy link
Member

Left an initial review, some changes must be made before landing this PR.

Signed-off-by: Gunj Joshi <gunjjoshi8372@gmail.com>
Signed-off-by: Gunj Joshi <gunjjoshi8372@gmail.com>
Comment on lines 23 to 26
static float random_uniform( const float min, const float max ) {
float v = (float)rand() / ( (float)RAND_MAX + 1.0 );
return min + ( v*(max-min) );
}
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Agree with @gunjjoshi. I will say that we have been creating custom functions in the stats/base/dists/* work, in order to avoid repeated RV generation logic. I am personally fine with either approach. In stats, it is more necessary due to more complex parameterization needs. Here, it is less so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i removed the custom function !

@vivekmaurya001 vivekmaurya001 deleted the Add-C-implementations-to-base-special-math-functions branch January 3, 2025 06:55
@vivekmaurya001 vivekmaurya001 restored the Add-C-implementations-to-base-special-math-functions branch January 3, 2025 06:56
@vivekmaurya001
Copy link
Contributor Author

vivekmaurya001 commented Jan 3, 2025

ohh , sorry i renamed this branch and it got closed i will do with required changes

@vivekmaurya001 vivekmaurya001 reopened this Jan 3, 2025
vivekmaurya001 and others added 3 commits March 7, 2025 10:16
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown
    status: na
  - task: lint_package_json
    status: na
  - task: lint_repl_help
    status: passed
  - task: lint_javascript_src
    status: na
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: passed
  - task: lint_javascript_tests
    status: passed
  - task: lint_javascript_benchmarks
    status: passed
  - task: lint_python
    status: na
  - task: lint_r
    status: na
  - task: lint_c_src
    status: passed
  - task: lint_c_examples
    status: na
  - task: lint_c_benchmarks
    status: passed
  - task: lint_c_tests_fixtures
    status: na
  - task: lint_shell
    status: na
  - task: lint_typescript_declarations
    status: na
  - task: lint_typescript_tests
    status: na
  - task: lint_license_headers
    status: passed
---
Signed-off-by: Vivek maurya <155618190+vivekmaurya001@users.noreply.github.com>
@vivekmaurya001
Copy link
Contributor Author

/stdlib update-copyright-years

@stdlib-bot stdlib-bot added the bot: In Progress Pull request is currently awaiting automation. label Mar 7, 2025
@stdlib-bot stdlib-bot removed the bot: In Progress Pull request is currently awaiting automation. label Mar 7, 2025
@vivekmaurya001
Copy link
Contributor Author

vivekmaurya001 commented Mar 7, 2025

@gunjjoshi , done all the final changes

@gunjjoshi gunjjoshi self-requested a review March 7, 2025 14:44
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Mar 7, 2025
vivekmaurya001 and others added 3 commits March 8, 2025 21:10
Signed-off-by: Vivek maurya <155618190+vivekmaurya001@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Math Issue or pull request specific to math functionality. Needs Changes Pull request which needs changes before being merged. Needs Review A pull request which needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants