Skip to content

refactor: use constants/float64/nan in stats/base/dists/anglit/cdf - #17109

Open
utkarshpatwa393-sys wants to merge 1 commit into
stdlib-js:developfrom
utkarshpatwa393-sys:refactor/anglit-cdf-nan
Open

utkarshpatwa393-sys wants to merge 1 commit into
stdlib-js:developfrom
utkarshpatwa393-sys:refactor/anglit-cdf-nan

Conversation

@utkarshpatwa393-sys

Copy link
Copy Markdown

Resolves a part of #11743.

Description

This pull request:

  • updates stats/base/dists/anglit/cdf to use STDLIB_CONSTANT_FLOAT64_NAN from @stdlib/constants/float64/nan instead of an inline 0.0 / 0.0 in src/main.c
  • adds @stdlib/constants/float64/nan to the build, benchmark, and examples dependency lists in manifest.json

Related Issues

Reference Packages

What carried over:

  • include placement (#include "stdlib/constants/float64/nan.h"), STDLIB_CONSTANT_FLOAT64_NAN macro usage, and manifest dependency additions across all three configurations.

Questions

No.

Other

Local verification: cc -std=c99 -Wall -Wextra compiled src/main.c with 0 warnings/errors, manifest.json parsed cleanly, and git diff --check passed cleanly.

Checklist

AI Assistance

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

Assisted by an AI coding assistant to locate an unmigrated package referencing 0.0 / 0.0, apply the STDLIB_CONSTANT_FLOAT64_NAN migration pattern, and verify compilation and formatting.


@stdlib-js/reviewers

@utkarshpatwa393-sys
utkarshpatwa393-sys requested a review from a team December 3, 2026 09:16
@stdlib-bot stdlib-bot added Statistics Issue or pull request related to statistical functionality. Needs Review A pull request which needs code review. Good First PR A pull request resolving a Good First Issue. First-time Contributor A pull request from a contributor who has never previously committed to the project repository. and removed Needs Review A pull request which needs code review. labels Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review. Statistics Issue or pull request related to statistical functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants