Repository navigation
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_pkg_readmes
status: passed
- task: lint_markdown_docs
status: na
- 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: na
- 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. |
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 #16784.
Description
This pull request:
rfftiexample infft/base/fftpack/ndarray/float32/rffti(lib/main.js,lib/index.js,README.md,docs/repl.txt,docs/types/index.d.ts) to read the radix factors through aUint32Arrayview and annotate them as<Uint32Array>[ 8, 2, 2, 4 ], matchingfft/base/fftpack/float32/rfftiand resolving thestdlib/jsdoc-doctestlint error.string/uppercase/lib/main.jsto delegate to@stdlib/string/base/uppercaseinstead of callingString.prototype.toUpperCasedirectly, followingstring/lowercaseand resolving theno-restricted-syntaxlint error.Related Issues
This pull request has the following related issues:
Reference Packages
This pull request followed these packages:
fft/base/fftpack/float32/rffti(its README example reads the integer factors through aUint32Arrayview)string/lowercase(itslib/main.jsdelegates tostring/base/lowercase)new Uint32Array( ... )view over the float32 workspace and the<Uint32Array>[ 8, 2, 2, 4 ]annotationvar base = require( '@stdlib/string/base/...' );+return base( str );delegation patternFloat32Array, whereas the ndarray package receives a workspace ndarray, so the view is built from the underlying data buffer (w.data.buffer,w.data.byteOffset,w.data.length).Questions
fft/base/fftpack/ndarray/float32/rffti, do you prefer this explicitUint32Arrayview example (as in the base float32 package), or would you rather keep a float32factorsslice annotated with~0values? We chose the explicit view because the float32 workspace stores the integer factors as uint32 bit patterns, so reading them through a float32 slice yields denormals.Other
rffti) and 35/35 (string/uppercase); package examples exit 0;make lint-javascript-filesclean on both changed library files;lint-typescript-declarations-filesclean on the changedindex.d.ts; the REPL help linter is clean ondocs/repl.txt.rfftiexample was executed standalone: the twiddle factors are[ 0.7071067690849304, 0.7071067690849304, 0, 0, 0, 0, 0, 0 ]and the factors areUint32Array(4) [ 8, 2, 2, 4 ]. The float32 workspace stores the radix factors as uint32 bit patterns, exactly as infft/base/fftpack/float32/rffti, so the docs now read them through aUint32Arrayview instead of a float32 slice.string/uppercasewas checked against@stdlib/string/base/uppercaseand the nativeString.prototype.toUpperCaseon empty, multi-word, and non-ASCII inputs (ß,İ,fi, combining accent), with identical results; invalid, missing, andnullarguments throw the sameTypeError. It now delegates to the base package exactly likestring/lowercase.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
@stdlib-js/reviewers