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/wrapf #3055

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

Conversation

gururaj1512
Copy link
Contributor

@gururaj1512 gururaj1512 commented Nov 2, 2024

resolves #649

Description

What is the purpose of this pull request?

float stdlib_base_wrapf( const float v, const float min, const float max );

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

@stdlib-bot stdlib-bot added the Math Issue or pull request specific to math functionality. label Nov 2, 2024
@gururaj1512
Copy link
Contributor Author

Hi @gunjjoshi, could you review this PR? Some checks are failing, need guidance for it.

if ( vc < minc ) {
vc += delta * ( stdlib_base_truncf( ( minc - vc ) / delta ) + 1.0 );
}
return minc + ( fmodf( vc - minc, delta ) );
Copy link
Member

Choose a reason for hiding this comment

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

@gururaj1512 The fmodf which is being used here, is not being included at the top. We are currently missing the implementation of fmodf. You'll need to include it once we have added fmodf.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gunjjoshi, Thanks for clarifying

Copy link
Member

Choose a reason for hiding this comment

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

@gururaj1512 fmodf (added by @gunjjoshi in #3059) has now landed, so this branch can be rebased on the latest code on develop and updated to make use of it.

@gunjjoshi gunjjoshi mentioned this pull request Nov 3, 2024
1 task
Planeshifter added a commit that referenced this pull request Nov 10, 2024
PR-URL: #3059
Ref: #2997
Ref: #3055
Ref: #649

Co-authored-by: Philipp Burckhardt <[email protected]>
Reviewed-by: Philipp Burckhardt <[email protected]>
Signed-off-by: Gunj Joshi <[email protected]>
Signed-off-by: Philipp Burckhardt <[email protected]>
aayush0325 pushed a commit to aayush0325/stdlib that referenced this pull request Nov 11, 2024
PR-URL: stdlib-js#3059
Ref: stdlib-js#2997
Ref: stdlib-js#3055
Ref: stdlib-js#649

Co-authored-by: Philipp Burckhardt <[email protected]>
Reviewed-by: Philipp Burckhardt <[email protected]>
Signed-off-by: Gunj Joshi <[email protected]>
Signed-off-by: Philipp Burckhardt <[email protected]>
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC]: Add C implementations to base special math functions (tracking issue)
4 participants