From 56ac60def3d0c29229bd29445c6f34a093f2d990 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 12 Oct 2026 20:41:19 +0000 Subject: [PATCH 1/4] fix: add missing `lib/native.js` to `blas/base/caxpy` `lib/index.js` attempts to load `./native.js`, but the file did not exist, so the native add-on was never used. Added `lib/native.js`, attaching the `ndarray` method to the native implementation, as do 48 of 50 (96%) `blas/base` packages that ship a native add-on. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016ww45AU5sngmnZj3CGPQP4 --- .../@stdlib/blas/base/caxpy/lib/native.js | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lib/node_modules/@stdlib/blas/base/caxpy/lib/native.js diff --git a/lib/node_modules/@stdlib/blas/base/caxpy/lib/native.js b/lib/node_modules/@stdlib/blas/base/caxpy/lib/native.js new file mode 100644 index 000000000000..660a7c41bf62 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/caxpy/lib/native.js @@ -0,0 +1,35 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); +var caxpy = require( './caxpy.native.js' ); +var ndarray = require( './ndarray.native.js' ); + + +// MAIN // + +setReadOnly( caxpy, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = caxpy; From 12f6e6a2d90c083d3211368b9001d888f6d16636 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 12 Oct 2026 20:41:20 +0000 Subject: [PATCH 2/4] fix: add missing `lib/native.js` to `blas/base/ssyr2` `lib/index.js` attempts to load `./native.js`, but the file did not exist, so the native add-on was never used. Added `lib/native.js`, attaching the `ndarray` method to the native implementation, as do 48 of 50 (96%) `blas/base` packages that ship a native add-on. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016ww45AU5sngmnZj3CGPQP4 --- .../@stdlib/blas/base/ssyr2/lib/native.js | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lib/node_modules/@stdlib/blas/base/ssyr2/lib/native.js diff --git a/lib/node_modules/@stdlib/blas/base/ssyr2/lib/native.js b/lib/node_modules/@stdlib/blas/base/ssyr2/lib/native.js new file mode 100644 index 000000000000..ce4f07f13651 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyr2/lib/native.js @@ -0,0 +1,35 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); +var ssyr2 = require( './ssyr2.native.js' ); +var ndarray = require( './ndarray.native.js' ); + + +// MAIN // + +setReadOnly( ssyr2, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = ssyr2; From b7739bde55abecfc2afccd28cf75b97f21df6772 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 12 Oct 2026 20:41:21 +0000 Subject: [PATCH 3/4] bench: rename native ndarray benchmark in `blas/base/zaxpy` Renamed `benchmark/benchmark.native.ndarray.js` to `benchmark/benchmark.ndarray.native.js`, matching the file name used by all 46 other `blas/base` packages that have a native ndarray benchmark (100%). No content changes. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016ww45AU5sngmnZj3CGPQP4 --- .../{benchmark.native.ndarray.js => benchmark.ndarray.native.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/{benchmark.native.ndarray.js => benchmark.ndarray.native.js} (100%) diff --git a/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.native.ndarray.js b/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.ndarray.native.js similarity index 100% rename from lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.native.ndarray.js rename to lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.ndarray.native.js From b13eec8c708b07854d6065c9df546e8375d7f48e Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 12 Oct 2026 20:41:22 +0000 Subject: [PATCH 4/4] docs: fix `@returns` JSDoc tag in `blas/base/igamax` The main export returns an index, not an output array. Changed the tag to `@returns {integer} index value`, matching `lib/ndarray.js` and `lib/accessors.js` in this package (main/ndarray `@returns` agreement: 70 of 71 packages, 99%). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016ww45AU5sngmnZj3CGPQP4 --- lib/node_modules/@stdlib/blas/base/igamax/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/igamax/lib/main.js b/lib/node_modules/@stdlib/blas/base/igamax/lib/main.js index 3641bef1e4ad..7cbb07295a3b 100644 --- a/lib/node_modules/@stdlib/blas/base/igamax/lib/main.js +++ b/lib/node_modules/@stdlib/blas/base/igamax/lib/main.js @@ -32,7 +32,7 @@ var ndarray = require( './ndarray.js' ); * @param {PositiveInteger} N - number of indexed elements * @param {NumericArray} x - input array * @param {integer} strideX - `x` stride length -* @returns {NumericArray} output array +* @returns {integer} index value * * @example * var x = [ 1.0, 2.0, 3.0, 4.0, 5.0 ];