Repository navigation
refactor: use constants/float32/nan in math/base/special/heavisidef - #17021
Open
debojitdey037 wants to merge 1 commit into
Open
debojitdey037 wants to merge 1 commit into
debojitdey037 wants to merge 1 commit into
Conversation
Replace inline NaN generation in the single-precision Heaviside function implementation with the shared float32 NaN constant. Add the constant package to the build, benchmark, and examples manifest configurations which compile the C source. Ref: stdlib-js#11743
debojitdey037
force-pushed
the
refactor/heavisidef-float32-nan
branch
from
November 30, 2026 20:52
0666281 to
ee5cc2c
Compare
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves a part of #11743.
Description
This pull request:
math/base/special/heavisidefwithSTDLIB_CONSTANT_FLOAT32_NANinsrc/main.c.@stdlib/constants/float32/nanto each manifest configuration which compilessrc/main.c: build, benchmark, and examples.The package contains no C examples, C benchmarks, or README C snippets with inline NaN generation, so no other files required changes.
Related Issues
This pull request has the following related issues:
Reference Packages
This pull request followed these packages:
stats/strided/snanmeanpnstats/strided/snanmeanpnpattern of adding the NaN constant header, replacing inline NaN generation with the shared macro, and adding the constant package dependency to each manifest task that compiles the C source.src/main.ccontained inline NaN generation and that the package has no C examples or benchmarks requiring updates.Questions
No.
Other
No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored with AI assistance. The changes were reviewed, compiled, and smoke-tested before opening the PR.
@stdlib-js/reviewers