Repository navigation
test: read integer factors via Uint32Array view - #16523
Open
Planeshifter wants to merge 1 commit into
Open
Planeshifter wants to merge 1 commit into
Planeshifter wants to merge 1 commit into
Conversation
…ctors via `Uint32Array` view The scheduled `linux_test` workflow on develop failed on Node.js v12, v14, and v16 with 16 assertion failures in the tests for `fft/base/fftpack/ndarray/float32/rffti` (e.g., expected `8`, actual `1.1210387714598537e-44`). Root cause: `rffti1` stores the integer factorization results through a `Uint32Array` view over the `Float32Array` workspace, but the tests read those entries as single-precision floats and thus compared a float reinterpretation of the integer bit pattern against the expected integers. This commit reads the factors through a `Uint32Array` view so that the stored integers are compared directly. Ref: https://github.com/stdlib-js/stdlib/actions/runs/42192965802 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017wWD78CMnshS838f6RDHji
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
Uint32Array viewUint32Array view
kgryte
marked this pull request as ready for review
November 6, 2026 21:58
Member
|
@gunjjoshi Mind taking a first at this and determining whether there is anything else we need to update in the package? |
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.
Description
This pull request:
fft/base/fftpack/ndarray/float32/rffti, which fail in the scheduledlinux_testworkflow on Node.js v12, v14, and v16 (run: https://github.com/stdlib-js/stdlib/actions/runs/42192965802).Symptom: assertions such as
within 1 ULPs. N: 8. y: 1.1210387714598537e-44. E: 8.Root cause:
rffti1stores the integer factorization results through aUint32Arrayview over theFloat32Arrayworkspace. The tests read those entries as floats and thus compared a float reinterpretation of the integer bit pattern against the expected integers. The tests now read the factors through aUint32Arrayview. Locally, the test file goes from 81 passing / 16 failing to 97 passing.Related Issues
This pull request has the following related issues:
Reference Packages
This pull request followed these packages:
fft/base/fftpack/float32/rfftiUint32Arrayview used by the strided tests to read the factors.Questions
No.
Other
Reviewer notes: the
ndarray/float32/rfftiREADME, JSDoc, REPL, and TypeScript examples showslice(w, ...)returning[ 8, 2, 2, 4 ], which is not what a float32 slice yields. That is a separate docs change and is not addressed here.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was written by Claude Code as part of an automated CI failure triage routine. The change was reviewed by three independent AI reviewers (correctness, regression scope, style); a human has not yet reviewed it.
@stdlib-js/reviewers
Generated by Claude Code