feat: add fft/base/fftpack/decompose#10354
Open
gunjjoshi wants to merge 4 commits intostdlib-js:developfrom
Open
feat: add fft/base/fftpack/decompose#10354gunjjoshi wants to merge 4 commits intostdlib-js:developfrom
fft/base/fftpack/decompose#10354gunjjoshi wants to merge 4 commits intostdlib-js:developfrom
Conversation
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: passed
- task: lint_package_json
status: passed
- task: lint_repl_help
status: passed
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: passed
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: passed
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: passed
- task: lint_license_headers
status: passed
---
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: passed
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: passed
- task: lint_license_headers
status: passed
---
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: na
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
kgryte
reviewed
Feb 18, 2026
| * var f = factors.slice(); | ||
| * // returns [ 630, 5, 2, 3, 3, 5, 7 ] | ||
| */ | ||
| declare function decompose( N: number, initial: Array<number>, out: Array<number>, stride: number, offset: number ): number; |
Member
There was a problem hiding this comment.
Suggested change
| declare function decompose( N: number, initial: Array<number>, out: Array<number>, stride: number, offset: number ): number; | |
| declare function decompose( N: number, initial: Collection<number>, out: Collection<number>, stride: number, offset: number ): number; |
kgryte
reviewed
Feb 18, 2026
| var i; | ||
| var j; | ||
|
|
||
| if ( !isNonNegativeInteger( N ) || !isNonNegativeIntegerArray( initial ) || |
kgryte
reviewed
Feb 18, 2026
Comment on lines
+84
to
+85
|
|
||
| - The function mutates the input array. |
Member
There was a problem hiding this comment.
Suggested change
| - The function mutates the input array. |
kgryte
reviewed
Feb 18, 2026
| * var f = factors.slice(); | ||
| * // returns [ 8, 2, 2, 4 ] | ||
| */ | ||
| function decompose( N, initial, out, stride, offset ) { |
Member
There was a problem hiding this comment.
Suggested change
| function decompose( N, initial, out, stride, offset ) { | |
| function decompose( N, M, initial, strideInitial, offsetInitial, out, strideOut, offsetOut ) { |
where M is the number of trial divisors and initial is a strided array.
kgryte
reviewed
Feb 18, 2026
Comment on lines
+82
to
+83
| * | ||
| * - The function mutates the input array. |
Member
There was a problem hiding this comment.
Suggested change
| * | |
| * - The function mutates the input array. |
kgryte
reviewed
Feb 18, 2026
| * | ||
| * ## Notes | ||
| * | ||
| * - Factorization results are stored in the input array as follows: |
Member
There was a problem hiding this comment.
Suggested change
| * - Factorization results are stored in the input array as follows: | |
| * - Factorization results are stored in the output array as follows: |
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 None.
Description
This pull request:
fft/base/fftpack/decompose, which is a part of fftpack.fft/base/fftpack#4121.This package decomposes a number (sequence length in the context of FFT) into its factors, so that we can process the smaller sequences independently, rather than processing the whole sequence length at once, during the fast Fourier transform.
Related Issues
None.
Questions
No.
Other
Test coverage report:
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
Used AI to suggest test cases that can be implemented.
@stdlib-js/reviewers