From e3838038aa7ae74d7f7627c8c7e3ddbb445ed05f Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 24 Jun 2026 12:22:42 +0000 Subject: [PATCH 1/3] fix: report shape argument value in `ndarray/matrix/ctor` shape error The `matrix( ArrayBuffer, byteOffset, shape, dtype, options )` overload checks `arg2` (the shape) but the resulting TypeError formats `arg3` (the dtype) into the `Value: %s` slot, so the printed value never matches the offending argument. --- lib/node_modules/@stdlib/ndarray/matrix/ctor/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/matrix/ctor/lib/main.js b/lib/node_modules/@stdlib/ndarray/matrix/ctor/lib/main.js index 812f4a11f409..88d22d81f934 100644 --- a/lib/node_modules/@stdlib/ndarray/matrix/ctor/lib/main.js +++ b/lib/node_modules/@stdlib/ndarray/matrix/ctor/lib/main.js @@ -566,7 +566,7 @@ function matrix() { // eslint-disable-line max-statements } // Case: matrix( ArrayBuffer, byteOffset, shape, dtype, options ) if ( !isNonNegativeIntegerArray( arg2 ) || arg2.length !== 2 ) { - throw new TypeError( format( 'invalid argument. Third argument must be a valid shape. Value: `%s`.', arg3 ) ); + throw new TypeError( format( 'invalid argument. Third argument must be a valid shape. Value: `%s`.', arg2 ) ); } if ( !isDataType( arg3 ) ) { throw new TypeError( format( 'invalid argument. Fourth argument must be a recognized/supported data type. Value: `%s`.', arg3 ) ); From e66fd53deb39caa22b656a7eba43e84393e137dc Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 24 Jun 2026 12:22:47 +0000 Subject: [PATCH 2/3] docs: align `blas/ext/base/slogspace` ndarray.native JSDoc with sibling The native ndarray-wrapper description picked up a trailing `using alternative indexing semantics` phrase absent from the parallel `dlogspace` wrapper and from `slogspace`'s own non-native variant. Drop it so the four parallel descriptions agree. --- .../@stdlib/blas/ext/base/slogspace/lib/ndarray.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/slogspace/lib/ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/slogspace/lib/ndarray.native.js index fe8e3f8663c7..52e7b55fdee0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/slogspace/lib/ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/slogspace/lib/ndarray.native.js @@ -26,7 +26,7 @@ var addon = require( './../src/addon.node' ); // MAIN // /** -* Fills a single-precision floating-point strided array with logarithmically spaced values over a specified interval using alternative indexing semantics. +* Fills a single-precision floating-point strided array with logarithmically spaced values over a specified interval. * * @param {PositiveInteger} N - number of indexed elements * @param {number} base - base of the logarithmic scale From 90854dd8e5e6ff21abb2ad8d1edc2d6222f35428 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 24 Jun 2026 12:22:53 +0000 Subject: [PATCH 3/3] docs: fix `zxsy` description in `blas/ext/base/ndarray` namespace TOC The newly-added `zxsy` table-of-contents entry read `subtract elements` while the four sibling `xsy` entries added in the same commit (`cxsy`, `dxsy`, `gxsy`, `sxsy`) all read `subtract the elements`. --- lib/node_modules/@stdlib/blas/ext/base/ndarray/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/README.md b/lib/node_modules/@stdlib/blas/ext/base/ndarray/README.md index cb153e51063c..bf14e6d39a2b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/README.md @@ -162,7 +162,7 @@ The namespace exposes the following APIs: - [`zunitspace( arrays )`][@stdlib/blas/ext/base/ndarray/zunitspace]: fill a one-dimensional double-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from a specified value. - [`zxpy( arrays )`][@stdlib/blas/ext/base/ndarray/zxpy]: add elements of a one-dimensional double-precision complex floating-point ndarray to the corresponding elements of a second one-dimensional double-precision complex floating-point ndarray and assign the results to the second ndarray. - [`zxsa( arrays )`][@stdlib/blas/ext/base/ndarray/zxsa]: subtract a scalar constant from each element in a one-dimensional double-precision complex floating-point ndarray. -- [`zxsy( arrays )`][@stdlib/blas/ext/base/ndarray/zxsy]: subtract elements of an output one-dimensional double-precision complex floating-point ndarray from the corresponding elements in an input one-dimensional double-precision complex floating-point ndarray and assign the results to the output ndarray. +- [`zxsy( arrays )`][@stdlib/blas/ext/base/ndarray/zxsy]: subtract the elements of an output one-dimensional double-precision complex floating-point ndarray from the corresponding elements in an input one-dimensional double-precision complex floating-point ndarray and assign the results to the output ndarray. - [`zzeroTo( arrays )`][@stdlib/blas/ext/base/ndarray/zzero-to]: fill a one-dimensional double-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from zero.