From 41571042e8d7731b306e1a9c460df540e0cfc9ab Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 13 Jul 2026 12:24:13 +0000 Subject: [PATCH 1/7] fix: correct workspace factor slice and test message in `fft/base/fftpack/costi` Fixes the off-by-two `workspace.slice( (3*N)+2, ... )` in the runnable README example and `examples/index.js` (integer factors live at index `3*N`, per the layout table and the test at `test.js:304-305`), and tidies the stray `'returns expected value2'` assertion message. --- lib/node_modules/@stdlib/fft/base/fftpack/costi/README.md | 2 +- .../@stdlib/fft/base/fftpack/costi/examples/index.js | 2 +- lib/node_modules/@stdlib/fft/base/fftpack/costi/test/test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/fft/base/fftpack/costi/README.md b/lib/node_modules/@stdlib/fft/base/fftpack/costi/README.md index 9b11b9c1c922..66a10f8c654e 100644 --- a/lib/node_modules/@stdlib/fft/base/fftpack/costi/README.md +++ b/lib/node_modules/@stdlib/fft/base/fftpack/costi/README.md @@ -141,7 +141,7 @@ var nf = workspace[ (3*N)-1 ]; console.log( ' number of factors: %d', nf ); idx = zeroTo( nf, 'generic' ); -logEach( ' factor[ %d ]: %d', idx, workspace.slice( (3*N)+2, (3*N)+2+nf ) ); +logEach( ' factor[ %d ]: %d', idx, workspace.slice( 3*N, (3*N)+nf ) ); ``` diff --git a/lib/node_modules/@stdlib/fft/base/fftpack/costi/examples/index.js b/lib/node_modules/@stdlib/fft/base/fftpack/costi/examples/index.js index 84874ef03bfb..355a9b5e8e24 100644 --- a/lib/node_modules/@stdlib/fft/base/fftpack/costi/examples/index.js +++ b/lib/node_modules/@stdlib/fft/base/fftpack/costi/examples/index.js @@ -42,4 +42,4 @@ var nf = workspace[ (3*N)-1 ]; console.log( ' number of factors: %d', nf ); idx = zeroTo( nf, 'generic' ); -logEach( ' factor[ %d ]: %d', idx, workspace.slice( (3*N)+2, (3*N)+2+nf ) ); +logEach( ' factor[ %d ]: %d', idx, workspace.slice( 3*N, (3*N)+nf ) ); diff --git a/lib/node_modules/@stdlib/fft/base/fftpack/costi/test/test.js b/lib/node_modules/@stdlib/fft/base/fftpack/costi/test/test.js index 7e33a4be002b..0602234a1a93 100644 --- a/lib/node_modules/@stdlib/fft/base/fftpack/costi/test/test.js +++ b/lib/node_modules/@stdlib/fft/base/fftpack/costi/test/test.js @@ -300,7 +300,7 @@ tape( 'the function correctly handles stride and offset parameters', function te t.strictEqual( workspace[ offset + ( ( (3*N)-2 ) * stride ) ], N-1, 'returns expected value' ); nf = workspace[ offset + ( ( (3*N)-1 ) * stride ) ]; - t.strictEqual( nf, 2, 'returns expected value2' ); + t.strictEqual( nf, 2, 'returns expected value' ); t.strictEqual( workspace[ offset + ( ( 3*N ) * stride ) ], 2, 'returns expected value' ); t.strictEqual( workspace[ offset + ( ( (3*N)+1 ) * stride ) ], 4, 'returns expected value' ); From e778e2e28ea63855b9b0d90bf1df6db5d71c5906 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 13 Jul 2026 12:24:18 +0000 Subject: [PATCH 2/7] docs: propagate "beta prime" rename to REPL text and TypeScript declarations in `random/betaprime` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `docs/repl.txt` and `docs/types/index.d.ts` files were missed by the "betaprime" → "beta prime" pass, leaving the REPL help and the TypeScript JSDoc inconsistent with the README, JSDoc in `lib/`, and scaffold JSON. --- .../@stdlib/random/betaprime/docs/repl.txt | 6 +++--- .../random/betaprime/docs/types/index.d.ts | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/node_modules/@stdlib/random/betaprime/docs/repl.txt b/lib/node_modules/@stdlib/random/betaprime/docs/repl.txt index a7ba74520173..96e8c41dd8d5 100644 --- a/lib/node_modules/@stdlib/random/betaprime/docs/repl.txt +++ b/lib/node_modules/@stdlib/random/betaprime/docs/repl.txt @@ -1,6 +1,6 @@ {{alias}}( shape, alpha, beta[, options] ) - Returns an ndarray containing pseudorandom numbers drawn from a betaprime + Returns an ndarray containing pseudorandom numbers drawn from a beta prime distribution. Parameters @@ -61,7 +61,7 @@ {{alias}}.assign( alpha, beta, out ) - Fills an ndarray with pseudorandom numbers drawn from a betaprime + Fills an ndarray with pseudorandom numbers drawn from a beta prime distribution. Parameters @@ -93,7 +93,7 @@ {{alias}}.factory( [options] ) Returns a function for generating pseudorandom numbers drawn from a - betaprime distribution. + beta prime distribution. The returned function has the same signature and accepts the same options as `{{alias}}` above. diff --git a/lib/node_modules/@stdlib/random/betaprime/docs/types/index.d.ts b/lib/node_modules/@stdlib/random/betaprime/docs/types/index.d.ts index 4d9aad424886..c5ccfe21c5c9 100644 --- a/lib/node_modules/@stdlib/random/betaprime/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/random/betaprime/docs/types/index.d.ts @@ -119,11 +119,11 @@ interface PRNG { } /** -* Interface for generating pseudorandom numbers drawn from a betaprime distribution. +* Interface for generating pseudorandom numbers drawn from a beta prime distribution. */ interface RandomFunction extends PRNG { /** - * Returns an ndarray containing pseudorandom numbers drawn from a betaprime distribution. + * Returns an ndarray containing pseudorandom numbers drawn from a beta prime distribution. * * @param shape - output shape * @param alpha - first shape parameter @@ -135,7 +135,7 @@ interface RandomFunction extends PRNG { , U extends typedndarray>( shape: Shape, alpha: number | T, beta: number | U, options?: Options ): RandomArray; /** - * Fills an ndarray with pseudorandom numbers drawn from a betaprime distribution. + * Fills an ndarray with pseudorandom numbers drawn from a beta prime distribution. * * @param alpha - first shape parameter * @param beta - second shape parameter @@ -147,11 +147,11 @@ interface RandomFunction extends PRNG { } /** -* Interface for generating pseudorandom numbers drawn from a betaprime distribution. +* Interface for generating pseudorandom numbers drawn from a beta prime distribution. */ interface Random extends PRNG { /** - * Returns an ndarray containing pseudorandom numbers drawn from a betaprime distribution. + * Returns an ndarray containing pseudorandom numbers drawn from a beta prime distribution. * * @param shape - output shape * @param alpha - first shape parameter @@ -167,7 +167,7 @@ interface Random extends PRNG { , U extends typedndarray>( shape: Shape, alpha: number | T, beta: number | U, options?: Options ): RandomArray; /** - * Fills an ndarray with pseudorandom numbers drawn from a betaprime distribution. + * Fills an ndarray with pseudorandom numbers drawn from a beta prime distribution. * * @param alpha - first shape parameter * @param beta - second shape parameter @@ -190,7 +190,7 @@ interface Random extends PRNG { assign, U extends typedndarray, V extends typedndarray>( alpha: number | T, beta: number | U, out: V ): V; /** - * Returns a function for creating ndarrays containing pseudorandom numbers drawn from a betaprime distribution. + * Returns a function for creating ndarrays containing pseudorandom numbers drawn from a beta prime distribution. * * @param options - function options * @throws must provide a valid state @@ -213,7 +213,7 @@ interface Random extends PRNG { } /** -* Generates pseudorandom numbers drawn from a betaprime distribution. +* Generates pseudorandom numbers drawn from a beta prime distribution. * * @param shape - output shape * @param alpha - first shape parameter From a75e6f04125cc27face1954bb91099fd30d79a28 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 13 Jul 2026 12:24:25 +0000 Subject: [PATCH 3/7] docs: fix parameter name and drop stray `new` on `Uint64.of` in `number/uint64/base/get-high-word` The README Usage signature and REPL parameter table used `x` while `lib/main.js`, the TypeScript declaration, and every code example use `a`; the README and `examples/index.js` also called `new Uint64.of( ... )` as if `of` were a constructor. Both are copy-paste artifacts from the `float64` sibling. --- .../@stdlib/number/uint64/base/get-high-word/README.md | 4 ++-- .../@stdlib/number/uint64/base/get-high-word/docs/repl.txt | 4 ++-- .../number/uint64/base/get-high-word/examples/index.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md index 61ae4bcfdd84..81e1adfb746b 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md +++ b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md @@ -30,7 +30,7 @@ limitations under the License. var getHighWord = require( '@stdlib/number/uint64/base/get-high-word' ); ``` -#### getHighWord( x ) +#### getHighWord( a ) Returns an unsigned 32-bit `integer` corresponding to the high 32-bit word of a [64-bit unsigned integer][@stdlib/number/uint64/ctor]. @@ -68,7 +68,7 @@ a = new Uint64( 0x123400005678 ); console.log( getHighWord( a ) ); // => 4660 -a = new Uint64.of( 1234, 5678 ); +a = Uint64.of( 1234, 5678 ); console.log( getHighWord( a ) ); // => 1234 ``` diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/docs/repl.txt b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/docs/repl.txt index 2701a145c081..d3367de18566 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/docs/repl.txt +++ b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/docs/repl.txt @@ -1,11 +1,11 @@ -{{alias}}( x ) +{{alias}}( a ) Returns an unsigned 32-bit integer corresponding to the high 32-bit word of a 64-bit unsigned integer. Parameters ---------- - x: Uint64 + a: Uint64 Input value. Returns diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/examples/index.js b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/examples/index.js index 9b91768807cf..ffd17e156d60 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/examples/index.js +++ b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/examples/index.js @@ -33,6 +33,6 @@ a = new Uint64( 0x123400005678 ); console.log( getHighWord( a ) ); // => 4660 -a = new Uint64.of( 1234, 5678 ); +a = Uint64.of( 1234, 5678 ); console.log( getHighWord( a ) ); // => 1234 From cf009154c02a1ce431395db5360ac37b4b208cf3 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 13 Jul 2026 12:24:31 +0000 Subject: [PATCH 4/7] style: drop stray `eslint-disable-line` and re-declared `var` in `blas/ext/base/gfill-less-than` The trailing `// eslint-disable-line max-len` in `lib/main.js` is absent from the sibling `gfill-equal` for an identical line, and the two `> var x = ...` re-declarations inside the REPL example blocks should be plain re-assignments to match the convention used across the sibling `gfill-*` packages. --- .../@stdlib/blas/ext/base/gfill-less-than/docs/repl.txt | 4 ++-- .../@stdlib/blas/ext/base/gfill-less-than/lib/main.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/docs/repl.txt b/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/docs/repl.txt index b385c8e7cb2d..ad07cdc1a8ab 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/docs/repl.txt +++ b/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/docs/repl.txt @@ -41,7 +41,7 @@ [ 5.0, 5.0, 1.0, 5.0 ] // Using `N` and stride parameters: - > var x = [ 0.0, 0.0, 1.0, 0.0 ]; + > x = [ 0.0, 0.0, 1.0, 0.0 ]; > {{alias}}( 2, 0.5, 5.0, x, 2 ) [ 5.0, 0.0, 1.0, 0.0 ] @@ -95,7 +95,7 @@ [ 5.0, 5.0, 1.0, 5.0 ] // Using an index offset: - > var x = [ 0.0, 0.0, 1.0, 0.0 ]; + > x = [ 0.0, 0.0, 1.0, 0.0 ]; > {{alias}}.ndarray( 2, 0.5, 5.0, x, 2, 1 ) [ 0.0, 5.0, 1.0, 5.0 ] diff --git a/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/lib/main.js b/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/lib/main.js index 9e06ee3d63a1..2cd4842839c0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/lib/main.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/lib/main.js @@ -43,7 +43,7 @@ var ndarray = require( './ndarray.js' ); * // x => [ 5.0, 5.0, 1.0, 5.0 ] */ function gfillLessThan( N, searchElement, alpha, x, strideX ) { - return ndarray( N, searchElement, alpha, x, strideX, stride2offset( N, strideX ) ); // eslint-disable-line max-len + return ndarray( N, searchElement, alpha, x, strideX, stride2offset( N, strideX ) ); } From bfa835a34d5bed0a3ca0db8488ebe29630976bae Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 13 Jul 2026 15:23:09 -0700 Subject: [PATCH 5/7] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/blas/ext/base/gfill-less-than/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/lib/main.js b/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/lib/main.js index 2cd4842839c0..9e06ee3d63a1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/lib/main.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gfill-less-than/lib/main.js @@ -43,7 +43,7 @@ var ndarray = require( './ndarray.js' ); * // x => [ 5.0, 5.0, 1.0, 5.0 ] */ function gfillLessThan( N, searchElement, alpha, x, strideX ) { - return ndarray( N, searchElement, alpha, x, strideX, stride2offset( N, strideX ) ); + return ndarray( N, searchElement, alpha, x, strideX, stride2offset( N, strideX ) ); // eslint-disable-line max-len } From 500dbc6f258cc251a04371f9ffdfed5cc61143ff Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 13 Jul 2026 22:28:45 +0000 Subject: [PATCH 6/7] docs: use `x` throughout `number/uint64/base/get-high-word` docs per review Per @kgryte's review: keep `x` as the documented parameter name in `README.md` and `docs/repl.txt` (matching the `float64` sibling convention), and use `x` in the Usage example variable. Also drop the backticks around "integer" in the README description. --- .../@stdlib/number/uint64/base/get-high-word/README.md | 8 ++++---- .../number/uint64/base/get-high-word/docs/repl.txt | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md index 81e1adfb746b..fdadb34cae25 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md +++ b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md @@ -30,15 +30,15 @@ limitations under the License. var getHighWord = require( '@stdlib/number/uint64/base/get-high-word' ); ``` -#### getHighWord( a ) +#### getHighWord( x ) -Returns an unsigned 32-bit `integer` corresponding to the high 32-bit word of a [64-bit unsigned integer][@stdlib/number/uint64/ctor]. +Returns an unsigned 32-bit integer corresponding to the high 32-bit word of a [64-bit unsigned integer][@stdlib/number/uint64/ctor]. ```javascript var Uint64 = require( '@stdlib/number/uint64/ctor' ); -var a = new Uint64( 4294967296 ); -var w = getHighWord( a ); +var x = new Uint64( 4294967296 ); +var w = getHighWord( x ); // returns 1 ``` diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/docs/repl.txt b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/docs/repl.txt index d3367de18566..501d43d255ac 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/docs/repl.txt +++ b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/docs/repl.txt @@ -1,11 +1,11 @@ -{{alias}}( a ) +{{alias}}( x ) Returns an unsigned 32-bit integer corresponding to the high 32-bit word of a 64-bit unsigned integer. Parameters ---------- - a: Uint64 + x: Uint64 Input value. Returns @@ -15,9 +15,9 @@ Examples -------- - > var a = new {{alias:@stdlib/number/uint64/ctor}}( 4294967296 ) + > var x = new {{alias:@stdlib/number/uint64/ctor}}( 4294967296 ) [ 4294967296n ] - > var w = {{alias}}( a ) + > var w = {{alias}}( x ) 1 See Also From 99f492daae569be59ba508e6a100305292e1a06e Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 13 Jul 2026 22:29:20 +0000 Subject: [PATCH 7/7] docs: rename example variable to `x` in `number/uint64/base/get-high-word` Per @kgryte's review: use `x` as the example variable name in the README Examples block (and the mirrored `examples/index.js`) to match the Usage-block and REPL rename. --- .../number/uint64/base/get-high-word/README.md | 16 ++++++++-------- .../uint64/base/get-high-word/examples/index.js | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md index fdadb34cae25..06dfd92a41c6 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md +++ b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md @@ -56,20 +56,20 @@ var w = getHighWord( x ); var Uint64 = require( '@stdlib/number/uint64/ctor' ); var getHighWord = require( '@stdlib/number/uint64/base/get-high-word' ); -var a = new Uint64( 4294967296 ); -console.log( getHighWord( a ) ); +var x = new Uint64( 4294967296 ); +console.log( getHighWord( x ) ); // => 1 -a = new Uint64( 0xffffffff ); -console.log( getHighWord( a ) ); +x = new Uint64( 0xffffffff ); +console.log( getHighWord( x ) ); // => 0 -a = new Uint64( 0x123400005678 ); -console.log( getHighWord( a ) ); +x = new Uint64( 0x123400005678 ); +console.log( getHighWord( x ) ); // => 4660 -a = Uint64.of( 1234, 5678 ); -console.log( getHighWord( a ) ); +x = Uint64.of( 1234, 5678 ); +console.log( getHighWord( x ) ); // => 1234 ``` diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/examples/index.js b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/examples/index.js index ffd17e156d60..109f27275286 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-high-word/examples/index.js +++ b/lib/node_modules/@stdlib/number/uint64/base/get-high-word/examples/index.js @@ -21,18 +21,18 @@ var Uint64 = require( '@stdlib/number/uint64/ctor' ); var getHighWord = require( './../lib' ); -var a = new Uint64( 4294967296 ); -console.log( getHighWord( a ) ); +var x = new Uint64( 4294967296 ); +console.log( getHighWord( x ) ); // => 1 -a = new Uint64( 0xffffffff ); -console.log( getHighWord( a ) ); +x = new Uint64( 0xffffffff ); +console.log( getHighWord( x ) ); // => 0 -a = new Uint64( 0x123400005678 ); -console.log( getHighWord( a ) ); +x = new Uint64( 0x123400005678 ); +console.log( getHighWord( x ) ); // => 4660 -a = Uint64.of( 1234, 5678 ); -console.log( getHighWord( a ) ); +x = Uint64.of( 1234, 5678 ); +console.log( getHighWord( x ) ); // => 1234