From 74124667953498e8cff910646cfeb8c7de9e4bc0 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Apr 2026 12:26:53 +0000 Subject: [PATCH 1/3] style: modernize `dswap` example in `blas/base/ndarray` namespace declarations Align the newly-added `dswap` JSDoc example with the sibling entries modernized in the same commit (use `Float64Vector` instead of the legacy `Float64Array` + `ndarray/base/ctor` pattern). --- .../@stdlib/blas/base/ndarray/docs/types/index.d.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts index 40630a2f9ee8..d3374d58a5ff 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts @@ -173,14 +173,10 @@ interface Namespace { * @returns second input ndarray * * @example - * var Float64Array = require( '@stdlib/array/float64' ); - * var ndarray = require( '@stdlib/ndarray/base/ctor' ); - * - * var xbuf = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); - * var x = new ndarray( 'float64', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); + * var Float64Vector = require( '@stdlib/ndarray/vector/float64' ); * - * var ybuf = new Float64Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] ); - * var y = new ndarray( 'float64', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); + * var x = new Float64Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); + * var y = new Float64Vector( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] ); * * var z = ns.dswap( [ x, y ] ); * // x => [ 6.0, 7.0, 8.0, 9.0, 10.0 ] From d94d2769b5ffdf6e6d15e7a3564065c2938178ad Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Apr 2026 12:27:11 +0000 Subject: [PATCH 2/3] docs: correct type annotation in `types` Complex32Array example Fix a copy-paste artifact in the `Complex32Array` JSDoc example which annotated the example object with `Complex64Array` instead of `Complex32Array`. --- lib/node_modules/@stdlib/types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/types/index.d.ts b/lib/node_modules/@stdlib/types/index.d.ts index 229689153653..65c1d58576d0 100644 --- a/lib/node_modules/@stdlib/types/index.d.ts +++ b/lib/node_modules/@stdlib/types/index.d.ts @@ -670,7 +670,7 @@ declare module '@stdlib/types/array' { * @example * const buf = new Float16Array( 8 ); * - * const z: Complex64Array = { + * const z: Complex32Array = { * 'byteLength': 16, * 'byteOffset': 0, * 'BYTES_PER_ELEMENT': 2, From dd11168457083bfc90980d19073bf61ae7da1809 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Apr 2026 12:27:28 +0000 Subject: [PATCH 3/3] docs: remove stray bracket in `numpy` migration guide Drop a residual `]` left in the NumPy column of the reshape/flatten row after the leading `[` was removed in an earlier typo fix. --- docs/migration-guides/numpy/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migration-guides/numpy/README.md b/docs/migration-guides/numpy/README.md index eb9b9bcf2c85..e98b052d32bb 100644 --- a/docs/migration-guides/numpy/README.md +++ b/docs/migration-guides/numpy/README.md @@ -46,7 +46,7 @@ limitations under the License. | Create an array containing evenly spaced numbers over a specified interval and having a desired shape | `np.reshape(np.linspace(start, stop), shape)` | [`linspace(shape, start, stop)`][@stdlib/blas/ext/linspace] | | Create an array of uniformly distributed pseudorandom numbers | `np.random.default_rng().uniform(low,high,shape)` | [`uniform(shape,low,high)`][@stdlib/random/uniform] | | Filter an array according to a predicate function | `x[np.vectorize(predicate)(x)]` | [`filter(x, predicate)`][@stdlib/ndarray/filter] | -| Flatten an array to a desired depth | `np.reshape(x, newshape)`] | [`flatten(x, {depth: depth})`][@stdlib/ndarray/flatten] | +| Flatten an array to a desired depth | `np.reshape(x, newshape)` | [`flatten(x, {depth: depth})`][@stdlib/ndarray/flatten] | | Flatten an array starting from a specific dimension | `np.reshape(x, x.shape[:dim] + (-1,))` | [`flattenFrom(x, dim)`][@stdlib/ndarray/flatten-from] | | Prepend a specified number of singleton dimensions | `np.reshape(x, (1,)*n + x.shape)` | [`prependSingletonDimensions(x, n)`][@stdlib/ndarray/prepend-singleton-dimensions] | | Prepend a zero-filled array of the same shape along a specified dimension | `np.concat((np.zeros_like(x), x), axis=dim)` | [`concat([zerosLike(x), x], {dim: dim})`][@stdlib/ndarray/concat] |