From fd44542774ab5ab9b2e773eeb0b75d6531fea3e5 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 22 Apr 2026 12:34:42 +0000 Subject: [PATCH 1/4] fix: free heap allocations in `blas/ext/base/scusumkbn2` benchmark When the benchmark was converted from VLAs to heap allocation, the matching `free( x )` / `free( y )` calls were only added to `benchmark2`; `benchmark1` was left leaking both buffers on every invocation. Add the missing frees so both benchmarks release their allocations before returning. Ref: c5b700a0 --- .../blas/ext/base/scusumkbn2/benchmark/c/benchmark.length.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/node_modules/@stdlib/blas/ext/base/scusumkbn2/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/blas/ext/base/scusumkbn2/benchmark/c/benchmark.length.c index 8ec2f6d0ee92..b143d8c70dc2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/scusumkbn2/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/blas/ext/base/scusumkbn2/benchmark/c/benchmark.length.c @@ -120,6 +120,8 @@ static double benchmark1( int iterations, int len ) { if ( y[ len-1 ] != y[ len-1 ] ) { printf( "should not return NaN\n" ); } + free( x ); + free( y ); return elapsed; } From de0de26e0b97dbe72eb1bf34945b8eeef8f5e0cc Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 22 Apr 2026 12:35:02 +0000 Subject: [PATCH 2/4] docs: restore missing verb in `blas/ext/base/sdiff` README The strided example introduction dropped the verb "compute", producing "to differences of every other element". Match the peer `ddiff` README wording so the sentence is grammatical. Ref: 7c287ff7 --- lib/node_modules/@stdlib/blas/ext/base/sdiff/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/sdiff/README.md b/lib/node_modules/@stdlib/blas/ext/base/sdiff/README.md index 1e1eff53f5aa..9042a46704d5 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/sdiff/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/sdiff/README.md @@ -68,7 +68,7 @@ The function has the following parameters: - **workspace**: workspace [`Float32Array`][@stdlib/array/float32]. Must have `N + N1 + N2 - 1` elements. - **strideW**: stride length for `workspace`. -The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to differences of every other element: +The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to compute differences of every other element: ```javascript var Float32Array = require( '@stdlib/array/float32' ); From fabf202a1ddb4e24c538a163cfee863bb0cf40b6 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 22 Apr 2026 12:35:25 +0000 Subject: [PATCH 3/4] docs: fix typos in NumPy migration guide - Corrects `np.count_nonzeros` to `np.count_nonzero` (the actual NumPy API name; already spelled correctly elsewhere in the same table). - Removes a duplicated article in "Prepend a a specified number of singleton dimensions". Ref: 1be7bcc8 --- docs/migration-guides/numpy/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/migration-guides/numpy/README.md b/docs/migration-guides/numpy/README.md index 251c7170086b..67ff3696dff7 100644 --- a/docs/migration-guides/numpy/README.md +++ b/docs/migration-guides/numpy/README.md @@ -35,10 +35,10 @@ limitations under the License. | Broadcast a scalar to a specified shape | `np.broadcast_to(np.array(scalar), shape)` | [`broadcastScalar(scalar, shape)`][@stdlib/ndarray/broadcast-scalar] | | Copy an array | `np.copy(x)` | [`copy(x)`][@stdlib/ndarray/copy] | | Count the number of falsy values in an array | `x.size-np.count_nonzero(x)` | [`countFalsy(x)`][@stdlib/ndarray/count-falsy] | -| Count the number of truthy values in an array | `np.count_nonzeros(x)` | [`countTruthy(x)`][@stdlib/ndarray/count-truthy] | +| Count the number of truthy values in an array | `np.count_nonzero(x)` | [`countTruthy(x)`][@stdlib/ndarray/count-truthy] | | Test whether an array includes a specific value | `np.any(np.equal(x,v))` | [`includes(x,v)`][@stdlib/ndarray/includes] | | Reverse the elements along a dimension | `np.flip(x, axis=dim)` | [`reverseDimension(x, dim)`][@stdlib/ndarray/reverse-dimension] | -| Prepend a a specified number of singleton dimensions | `np.reshape(x, (1,)*n + x.shape)` | [`prependSingletonDimensions(x, n)`][@stdlib/ndarray/prepend-singleton-dimensions] | +| Prepend a specified number of singleton dimensions | `np.reshape(x, (1,)*n + x.shape)` | [`prependSingletonDimensions(x, n)`][@stdlib/ndarray/prepend-singleton-dimensions] | | Test whether an array contains at least `n` truthy values | `np.count_nonzero(x) >= n` | [`some(x, n)`][@stdlib/ndarray/some] | From 51d6266018fabf69724cdda084ff05f32e4b2b98 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 22 Apr 2026 12:35:46 +0000 Subject: [PATCH 4/4] style: drop unused eslint-disable in `ndarray/base/reinterpret-boolean` test The TypeScript declaration test carried a stray `/* eslint-disable space-in-parens */` directive absent from the sibling `reinterpret-complex64` and `reinterpret-complex128` tests; the file has no `space-in-parens` violations, so the directive is noise. Ref: be023a59 --- .../@stdlib/ndarray/base/reinterpret-boolean/docs/types/test.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/base/reinterpret-boolean/docs/types/test.ts b/lib/node_modules/@stdlib/ndarray/base/reinterpret-boolean/docs/types/test.ts index 0664bf30a729..78b727084f7b 100644 --- a/lib/node_modules/@stdlib/ndarray/base/reinterpret-boolean/docs/types/test.ts +++ b/lib/node_modules/@stdlib/ndarray/base/reinterpret-boolean/docs/types/test.ts @@ -16,8 +16,6 @@ * limitations under the License. */ -/* eslint-disable space-in-parens */ - import zeros = require( '@stdlib/ndarray/base/zeros' ); import reinterpretBoolean = require( './index' );