Skip to content

refactor: use constants/float64/nan in blas/base/dcabs1 - #17076

Merged
Planeshifter merged 2 commits into
stdlib-js:developfrom
arnavarya001:refactor/dcabs1-float64-nan
Dec 4, 2026
Merged

Planeshifter merged 2 commits into
stdlib-js:developfrom
arnavarya001:refactor/dcabs1-float64-nan

Conversation

@arnavarya001

Copy link
Copy Markdown
Contributor

Resolves a part of #11743.

Description

This pull request replaces inline 0.0/0.0 NaN generation in @stdlib/blas/base/dcabs1 with STDLIB_CONSTANT_FLOAT64_NAN.

This pull request:

  • Adds the float64 NaN constant include to the C example.
  • Updates the README C example.
  • Adds @stdlib/constants/float64/nan to the relevant manifest example configurations.

Related Issues

Reference Packages

  • blas/base/dcabs1

What carried over:

  • Existing float64 NaN constant usage and manifest dependency conventions.

What differed:

  • No implementation logic changed.

Questions

No.

Other

No additional implementation notes.

Checklist

AI Assistance

  • Code generation
  • Research and understanding
  • Test/benchmark generation
  • Documentation

Disclosure

I used GitHub Copilot to implement and verify this package-scoped refactor. The changes were reviewed against the issue instructions and repository conventions.


@stdlib-js/reviewers

@arnavarya001
arnavarya001 requested a review from a team December 2, 2026 10:29
@stdlib-bot stdlib-bot added BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review. First-time Contributor A pull request from a contributor who has never previously committed to the project repository. labels Dec 2, 2026
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
@Planeshifter Planeshifter changed the title refactor: use constants/float64/nan in blas/base/dcabs1 refactor: use constants/float64/nan in blas/base/dcabs1 Dec 3, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
blas/base/dcabs1 $\\color{green}138/138$
$\\color{green}+100.00\\%$
$\\color{green}5/5$
$\\color{green}+100.00\\%$
$\\color{green}2/2$
$\\color{green}+100.00\\%$
$\\color{green}138/138$
$\\color{green}+100.00\\%$

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

@Planeshifter
Planeshifter merged commit 4118ff5 into stdlib-js:develop Dec 4, 2026
16 checks passed
@stdlib-bot stdlib-bot removed the Needs Review A pull request which needs code review. label Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants