From 4c10a06130140bba400ffec1d0f7c2566844efc0 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 5 May 2026 12:28:33 +0000 Subject: [PATCH 1/9] fix: align `stats/strided/distances/dcorrelation` docs and include guard with siblings https://claude.ai/code/session_01PYMuhnRSCirT5T3Bn4o4Lj --- .../stats/strided/distances/dcorrelation/README.md | 8 +++----- .../stats/strided/distances/dcorrelation/docs/repl.txt | 2 +- .../strided/distances/dcorrelation/docs/types/test.ts | 1 - .../include/stdlib/stats/strided/distances/dcorrelation.h | 6 +++--- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/README.md b/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/README.md index d65753863960..8cf085c55ffe 100644 --- a/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/README.md +++ b/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/README.md @@ -20,7 +20,7 @@ limitations under the License. # dcorrelation -> Calculate the [correlation distance][correlation-distance] between two double-precision floating-point strided arrays. +> Compute the [correlation distance][correlation-distance] between two double-precision floating-point strided arrays.
@@ -36,8 +36,6 @@ D(X, Y) = 1 - \frac{\displaystyle\sum_{i=0}^{N-1} (x_i - \bar{x})(y_i - \bar{y}) where `x_i` and `y_i` are the _ith_ components of vectors **X** and **Y**, respectively. - -
@@ -53,7 +51,7 @@ var dcorrelation = require( '@stdlib/stats/strided/distances/dcorrelation' ); #### dcorrelation( N, x, strideX, y, strideY ) -Computes the [correlation distance][correlation-distance] of two double-precision floating-point strided arrays. +Computes the [correlation distance][correlation-distance] between two double-precision floating-point strided arrays. ```javascript var Float64Array = require( '@stdlib/array/float64' ); @@ -104,7 +102,7 @@ var c = dcorrelation( 4, x1, 2, y1, 2 ); #### dcorrelation.ndarray( N, x, strideX, offsetX, y, strideY, offsetY ) -Computes the [correlation distance][correlation-distance] of two double-precision floating-point strided arrays using alternative indexing semantics. +Computes the [correlation distance][correlation-distance] between two double-precision floating-point strided arrays using alternative indexing semantics. ```javascript var Float64Array = require( '@stdlib/array/float64' ); diff --git a/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/repl.txt b/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/repl.txt index 2458e329301a..e9e4614f03fc 100644 --- a/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/repl.txt +++ b/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/repl.txt @@ -9,7 +9,7 @@ Indexing is relative to the first index. To introduce an offset, use a typed array view. - If `N <= 0`, the function returns `NaN`. + If `N <= 1`, the function returns `NaN`. Parameters ---------- diff --git a/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/types/test.ts b/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/types/test.ts index 61d9ab954b70..9a1eb28f87c6 100644 --- a/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/types/test.ts +++ b/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/types/test.ts @@ -242,7 +242,6 @@ import dcorrelation = require( './index' ); dcorrelation.ndarray( x.length, x ); // $ExpectError dcorrelation.ndarray( x.length, x, 1 ); // $ExpectError dcorrelation.ndarray( x.length, x, 1, 0 ); // $ExpectError - dcorrelation.ndarray( x.length, x, 1, 0 ); // $ExpectError dcorrelation.ndarray( x.length, x, 1, 0, y ); // $ExpectError dcorrelation.ndarray( x.length, x, 1, 0, y, 1 ); // $ExpectError dcorrelation.ndarray( x.length, x, 1, 0, y, 1, 0, 0 ); // $ExpectError diff --git a/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/include/stdlib/stats/strided/distances/dcorrelation.h b/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/include/stdlib/stats/strided/distances/dcorrelation.h index 5b7f12de8b77..e3ea2d87c2dc 100644 --- a/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/include/stdlib/stats/strided/distances/dcorrelation.h +++ b/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/include/stdlib/stats/strided/distances/dcorrelation.h @@ -16,8 +16,8 @@ * limitations under the License. */ -#ifndef STDLIB_STATS_STRIDED_DCORRELATION_H -#define STDLIB_STATS_STRIDED_DCORRELATION_H +#ifndef STDLIB_STATS_STRIDED_DISTANCES_DCORRELATION_H +#define STDLIB_STATS_STRIDED_DISTANCES_DCORRELATION_H #include "stdlib/blas/base/shared.h" @@ -42,4 +42,4 @@ double API_SUFFIX(stdlib_strided_dcorrelation_ndarray)( const CBLAS_INT N, const } #endif -#endif // !STDLIB_STATS_STRIDED_DCORRELATION_H +#endif // !STDLIB_STATS_STRIDED_DISTANCES_DCORRELATION_H From fa775c586fb9cf29c1ba5c9fc7533f063318748a Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 5 May 2026 12:28:39 +0000 Subject: [PATCH 2/9] fix: register `dcorrelation` in `stats/strided/distances` namespace types https://claude.ai/code/session_01PYMuhnRSCirT5T3Bn4o4Lj --- .../strided/distances/docs/types/index.d.ts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/lib/node_modules/@stdlib/stats/strided/distances/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/strided/distances/docs/types/index.d.ts index 4dce176d96ad..b7bddbab0feb 100644 --- a/lib/node_modules/@stdlib/stats/strided/distances/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/stats/strided/distances/docs/types/index.d.ts @@ -22,6 +22,7 @@ import dchebyshev = require( '@stdlib/stats/strided/distances/dchebyshev' ); import dcityblock = require( '@stdlib/stats/strided/distances/dcityblock' ); +import dcorrelation = require( '@stdlib/stats/strided/distances/dcorrelation' ); import dcosineDistance = require( '@stdlib/stats/strided/distances/dcosine-distance' ); import dcosineSimilarity = require( '@stdlib/stats/strided/distances/dcosine-similarity' ); import deuclidean = require( '@stdlib/stats/strided/distances/deuclidean' ); @@ -92,6 +93,36 @@ interface Namespace { */ dcityblock: typeof dcityblock; + /** + * Computes the correlation distance between two double-precision floating-point strided arrays. + * + * @param N - number of indexed elements + * @param x - first input array + * @param strideX - `x` stride length + * @param y - second input array + * @param strideY - `y` stride length + * @returns correlation distance + * + * @example + * var Float64Array = require( '@stdlib/array/float64' ); + * + * var x = new Float64Array( [ 1.0, -2.0, 2.0 ] ); + * var y = new Float64Array( [ 2.0, -2.0, 1.0 ] ); + * + * var z = ns.dcorrelation( x.length, x, 1, y, 1 ); + * // returns ~0.115 + * + * @example + * var Float64Array = require( '@stdlib/array/float64' ); + * + * var x = new Float64Array( [ 1.0, -2.0, 2.0 ] ); + * var y = new Float64Array( [ 2.0, -2.0, 1.0 ] ); + * + * var z = ns.dcorrelation.ndarray( x.length, x, 1, 0, y, 1, 0 ); + * // returns ~0.115 + */ + dcorrelation: typeof dcorrelation; + /** * Computes the cosine distance between two double-precision floating-point strided arrays. * From 1a5c0217a46b79d82d4465c7af1fed3e1d9534c8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 5 May 2026 12:28:44 +0000 Subject: [PATCH 3/9] docs: align `blas/ext/base/gcartesian-power` docstrings with siblings https://claude.ai/code/session_01PYMuhnRSCirT5T3Bn4o4Lj --- .../@stdlib/blas/ext/base/gcartesian-power/README.md | 4 ++-- .../blas/ext/base/gcartesian-power/benchmark/benchmark.js | 2 +- .../ext/base/gcartesian-power/benchmark/benchmark.ndarray.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/README.md b/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/README.md index 40b2b3d5f485..d89ace2acf77 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/README.md @@ -104,8 +104,8 @@ The function has the following parameters: - **strideX**: stride length for `x`. - **offsetX**: starting index for `x`. - **out**: output [`Array`][mdn-array] or [`typed array`][mdn-typed-array]. -- **strideOut1**: stride length for the first dimension of `out`. -- **strideOut2**: stride length for the second dimension of `out`. +- **strideOut1**: stride length of the first dimension of `out`. +- **strideOut2**: stride length of the second dimension of `out`. - **offsetOut**: starting index for `out`. While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example, to access only the last two elements: diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.js index 82b32818f878..3ced921091ff 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.js @@ -41,7 +41,7 @@ var K = 2; // FUNCTIONS // /** -* Creates a benchmark function. +* Create a benchmark function. * * @private * @param {PositiveInteger} len - array length diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.ndarray.js index cec4ff81dbfe..11ca3e6eabe2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.ndarray.js @@ -41,7 +41,7 @@ var K = 2; // FUNCTIONS // /** -* Creates a benchmark function. +* Create a benchmark function. * * @private * @param {PositiveInteger} len - array length From 8634b93c0e4fbb25b62228dc89aecccd7e30146c Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 5 May 2026 12:28:48 +0000 Subject: [PATCH 4/9] fix: register `cscal` and `gscal` in `blas/base/ndarray` namespace types https://claude.ai/code/session_01PYMuhnRSCirT5T3Bn4o4Lj --- .../blas/base/ndarray/docs/types/index.d.ts | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) 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 8fa388538c7b..eda0ae63aff9 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 @@ -22,6 +22,7 @@ import caxpy = require( '@stdlib/blas/base/ndarray/caxpy' ); import ccopy = require( '@stdlib/blas/base/ndarray/ccopy' ); +import cscal = require( '@stdlib/blas/base/ndarray/cscal' ); import cswap = require( '@stdlib/blas/base/ndarray/cswap' ); import dasum = require( '@stdlib/blas/base/ndarray/dasum' ); import daxpy = require( '@stdlib/blas/base/ndarray/daxpy' ); @@ -33,6 +34,7 @@ import gasum = require( '@stdlib/blas/base/ndarray/gasum' ); import gaxpy = require( '@stdlib/blas/base/ndarray/gaxpy' ); import gcopy = require( '@stdlib/blas/base/ndarray/gcopy' ); import gdot = require( '@stdlib/blas/base/ndarray/gdot' ); +import gscal = require( '@stdlib/blas/base/ndarray/gscal' ); import gswap = require( '@stdlib/blas/base/ndarray/gswap' ); import sasum = require( '@stdlib/blas/base/ndarray/sasum' ); import saxpy = require( '@stdlib/blas/base/ndarray/saxpy' ); @@ -109,6 +111,38 @@ interface Namespace { */ ccopy: typeof ccopy; + /** + * Multiplies a one-dimensional single-precision complex floating-point ndarray by a scalar constant. + * + * ## Notes + * + * - The function expects the following ndarrays: + * + * - a one-dimensional input ndarray. + * - a zero-dimensional ndarray containing a scalar constant. + * + * @param arrays - array-like object containing ndarrays + * @returns input ndarray + * + * @example + * var Complex64Vector = require( '@stdlib/ndarray/vector/complex64' ); + * var Complex64 = require( '@stdlib/complex/float32/ctor' ); + * var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); + * + * var x = new Complex64Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + * + * var alpha = scalar2ndarray( new Complex64( 2.0, 0.0 ), { + * 'dtype': 'complex64' + * }); + * + * var y = ns.cscal( [ x, alpha ] ); + * // returns [ [ 2.0, 4.0 ], [ 6.0, 8.0 ], [ 10.0, 12.0 ] ] + * + * var bool = ( y === x ); + * // returns true + */ + cscal: typeof cscal; + /** * Interchanges two one-dimensional single-precision complex floating-point ndarrays. * @@ -408,6 +442,37 @@ interface Namespace { */ gdot: typeof gdot; + /** + * Multiplies a one-dimensional ndarray by a scalar constant. + * + * ## Notes + * + * - The function expects the following ndarrays: + * + * - a one-dimensional input ndarray. + * - a zero-dimensional ndarray containing a scalar constant. + * + * @param arrays - array-like object containing ndarrays + * @returns input ndarray + * + * @example + * var vector = require( '@stdlib/ndarray/vector/ctor' ); + * var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); + * + * var x = vector( [ 1.0, 2.0, 3.0, 4.0, 5.0 ], 'generic' ); + * + * var alpha = scalar2ndarray( 5.0, { + * 'dtype': 'generic' + * }); + * + * var y = ns.gscal( [ x, alpha ] ); + * // returns [ 5.0, 10.0, 15.0, 20.0, 25.0 ] + * + * var bool = ( y === x ); + * // returns true + */ + gscal: typeof gscal; + /** * Interchanges two one-dimensional ndarrays. * From 0f14066da10062dc5b5aec8c667a4199111cc962 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 5 May 2026 12:28:53 +0000 Subject: [PATCH 5/9] style: restore spaces around `-` operator in `_tools/eslint/rules/line-closing-bracket-spacing` https://claude.ai/code/session_01PYMuhnRSCirT5T3Bn4o4Lj --- .../eslint/rules/line-closing-bracket-spacing/lib/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/line-closing-bracket-spacing/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/line-closing-bracket-spacing/lib/main.js index 1e208867a65c..35e1933f4a8e 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/line-closing-bracket-spacing/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/line-closing-bracket-spacing/lib/main.js @@ -86,7 +86,7 @@ function main( context ) { node.arguments.length > 0 ) { args = node.arguments; - lastElem = args[ args.length-1 ]; + lastElem = args[ args.length - 1 ]; if ( lastElem && lastElem.type === 'ObjectExpression' && @@ -105,7 +105,7 @@ function main( context ) { lastElem.type === 'ArrayExpression' && lastElem.elements.length > 0 ) { - elem = lastElem.elements[ lastElem.elements.length-1 ]; + elem = lastElem.elements[ lastElem.elements.length - 1 ]; if ( elem && elem.type === 'ObjectExpression' && @@ -138,7 +138,7 @@ function main( context ) { node.type === 'ArrayExpression' && node.elements.length > 0 ) { - elem = node.elements[ node.elements.length-1 ]; + elem = node.elements[ node.elements.length - 1 ]; if ( elem && elem.type === 'ObjectExpression' && From 3e95003fdc54bb5ca1523979da8e3decde7ec9dd Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 5 May 2026 14:39:01 +0000 Subject: [PATCH 6/9] revert: drop namespace TS edits and eslint-rule spacing change per review Reverts: - 0f14066da (operator spacing in `_tools/eslint/rules/line-closing-bracket-spacing`) - 8634b93c0 (`cscal`/`gscal` in `blas/base/ndarray` namespace types) - fa775c586 (`dcorrelation` in `stats/strided/distances` namespace types) Namespace TS declarations are auto-generated and should not be hand-edited. https://claude.ai/code/session_01PYMuhnRSCirT5T3Bn4o4Lj --- .../line-closing-bracket-spacing/lib/main.js | 6 +- .../blas/base/ndarray/docs/types/index.d.ts | 65 ------------------- .../strided/distances/docs/types/index.d.ts | 31 --------- 3 files changed, 3 insertions(+), 99 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/line-closing-bracket-spacing/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/line-closing-bracket-spacing/lib/main.js index 35e1933f4a8e..1e208867a65c 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/line-closing-bracket-spacing/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/line-closing-bracket-spacing/lib/main.js @@ -86,7 +86,7 @@ function main( context ) { node.arguments.length > 0 ) { args = node.arguments; - lastElem = args[ args.length - 1 ]; + lastElem = args[ args.length-1 ]; if ( lastElem && lastElem.type === 'ObjectExpression' && @@ -105,7 +105,7 @@ function main( context ) { lastElem.type === 'ArrayExpression' && lastElem.elements.length > 0 ) { - elem = lastElem.elements[ lastElem.elements.length - 1 ]; + elem = lastElem.elements[ lastElem.elements.length-1 ]; if ( elem && elem.type === 'ObjectExpression' && @@ -138,7 +138,7 @@ function main( context ) { node.type === 'ArrayExpression' && node.elements.length > 0 ) { - elem = node.elements[ node.elements.length - 1 ]; + elem = node.elements[ node.elements.length-1 ]; if ( elem && elem.type === 'ObjectExpression' && 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 eda0ae63aff9..8fa388538c7b 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 @@ -22,7 +22,6 @@ import caxpy = require( '@stdlib/blas/base/ndarray/caxpy' ); import ccopy = require( '@stdlib/blas/base/ndarray/ccopy' ); -import cscal = require( '@stdlib/blas/base/ndarray/cscal' ); import cswap = require( '@stdlib/blas/base/ndarray/cswap' ); import dasum = require( '@stdlib/blas/base/ndarray/dasum' ); import daxpy = require( '@stdlib/blas/base/ndarray/daxpy' ); @@ -34,7 +33,6 @@ import gasum = require( '@stdlib/blas/base/ndarray/gasum' ); import gaxpy = require( '@stdlib/blas/base/ndarray/gaxpy' ); import gcopy = require( '@stdlib/blas/base/ndarray/gcopy' ); import gdot = require( '@stdlib/blas/base/ndarray/gdot' ); -import gscal = require( '@stdlib/blas/base/ndarray/gscal' ); import gswap = require( '@stdlib/blas/base/ndarray/gswap' ); import sasum = require( '@stdlib/blas/base/ndarray/sasum' ); import saxpy = require( '@stdlib/blas/base/ndarray/saxpy' ); @@ -111,38 +109,6 @@ interface Namespace { */ ccopy: typeof ccopy; - /** - * Multiplies a one-dimensional single-precision complex floating-point ndarray by a scalar constant. - * - * ## Notes - * - * - The function expects the following ndarrays: - * - * - a one-dimensional input ndarray. - * - a zero-dimensional ndarray containing a scalar constant. - * - * @param arrays - array-like object containing ndarrays - * @returns input ndarray - * - * @example - * var Complex64Vector = require( '@stdlib/ndarray/vector/complex64' ); - * var Complex64 = require( '@stdlib/complex/float32/ctor' ); - * var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); - * - * var x = new Complex64Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); - * - * var alpha = scalar2ndarray( new Complex64( 2.0, 0.0 ), { - * 'dtype': 'complex64' - * }); - * - * var y = ns.cscal( [ x, alpha ] ); - * // returns [ [ 2.0, 4.0 ], [ 6.0, 8.0 ], [ 10.0, 12.0 ] ] - * - * var bool = ( y === x ); - * // returns true - */ - cscal: typeof cscal; - /** * Interchanges two one-dimensional single-precision complex floating-point ndarrays. * @@ -442,37 +408,6 @@ interface Namespace { */ gdot: typeof gdot; - /** - * Multiplies a one-dimensional ndarray by a scalar constant. - * - * ## Notes - * - * - The function expects the following ndarrays: - * - * - a one-dimensional input ndarray. - * - a zero-dimensional ndarray containing a scalar constant. - * - * @param arrays - array-like object containing ndarrays - * @returns input ndarray - * - * @example - * var vector = require( '@stdlib/ndarray/vector/ctor' ); - * var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); - * - * var x = vector( [ 1.0, 2.0, 3.0, 4.0, 5.0 ], 'generic' ); - * - * var alpha = scalar2ndarray( 5.0, { - * 'dtype': 'generic' - * }); - * - * var y = ns.gscal( [ x, alpha ] ); - * // returns [ 5.0, 10.0, 15.0, 20.0, 25.0 ] - * - * var bool = ( y === x ); - * // returns true - */ - gscal: typeof gscal; - /** * Interchanges two one-dimensional ndarrays. * diff --git a/lib/node_modules/@stdlib/stats/strided/distances/docs/types/index.d.ts b/lib/node_modules/@stdlib/stats/strided/distances/docs/types/index.d.ts index b7bddbab0feb..4dce176d96ad 100644 --- a/lib/node_modules/@stdlib/stats/strided/distances/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/stats/strided/distances/docs/types/index.d.ts @@ -22,7 +22,6 @@ import dchebyshev = require( '@stdlib/stats/strided/distances/dchebyshev' ); import dcityblock = require( '@stdlib/stats/strided/distances/dcityblock' ); -import dcorrelation = require( '@stdlib/stats/strided/distances/dcorrelation' ); import dcosineDistance = require( '@stdlib/stats/strided/distances/dcosine-distance' ); import dcosineSimilarity = require( '@stdlib/stats/strided/distances/dcosine-similarity' ); import deuclidean = require( '@stdlib/stats/strided/distances/deuclidean' ); @@ -93,36 +92,6 @@ interface Namespace { */ dcityblock: typeof dcityblock; - /** - * Computes the correlation distance between two double-precision floating-point strided arrays. - * - * @param N - number of indexed elements - * @param x - first input array - * @param strideX - `x` stride length - * @param y - second input array - * @param strideY - `y` stride length - * @returns correlation distance - * - * @example - * var Float64Array = require( '@stdlib/array/float64' ); - * - * var x = new Float64Array( [ 1.0, -2.0, 2.0 ] ); - * var y = new Float64Array( [ 2.0, -2.0, 1.0 ] ); - * - * var z = ns.dcorrelation( x.length, x, 1, y, 1 ); - * // returns ~0.115 - * - * @example - * var Float64Array = require( '@stdlib/array/float64' ); - * - * var x = new Float64Array( [ 1.0, -2.0, 2.0 ] ); - * var y = new Float64Array( [ 2.0, -2.0, 1.0 ] ); - * - * var z = ns.dcorrelation.ndarray( x.length, x, 1, 0, y, 1, 0 ); - * // returns ~0.115 - */ - dcorrelation: typeof dcorrelation; - /** * Computes the cosine distance between two double-precision floating-point strided arrays. * From 1eae3498fdc2114a4c4310fdb0d6beba49bce09d Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 5 May 2026 14:45:40 +0000 Subject: [PATCH 7/9] revert: restore `N <= 0` boundary condition in `stats/strided/distances/dcorrelation` REPL help Per maintainer review: the explicit guard in the implementation is `N <= 0`, so the REPL help should match. https://claude.ai/code/session_01PYMuhnRSCirT5T3Bn4o4Lj --- .../@stdlib/stats/strided/distances/dcorrelation/docs/repl.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/repl.txt b/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/repl.txt index e9e4614f03fc..2458e329301a 100644 --- a/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/repl.txt +++ b/lib/node_modules/@stdlib/stats/strided/distances/dcorrelation/docs/repl.txt @@ -9,7 +9,7 @@ Indexing is relative to the first index. To introduce an offset, use a typed array view. - If `N <= 1`, the function returns `NaN`. + If `N <= 0`, the function returns `NaN`. Parameters ---------- From 6f6a0274ed685d422bd8333a93473bfdb1f50bcb Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 5 May 2026 14:45:46 +0000 Subject: [PATCH 8/9] revert: restore "Creates a benchmark function." JSDoc in `blas/ext/base/gcartesian-power` Per maintainer review: "Creates" (third-person indicative) is the convention for these benchmark JSDoc summaries, not the imperative. https://claude.ai/code/session_01PYMuhnRSCirT5T3Bn4o4Lj --- .../blas/ext/base/gcartesian-power/benchmark/benchmark.js | 2 +- .../ext/base/gcartesian-power/benchmark/benchmark.ndarray.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.js index 3ced921091ff..82b32818f878 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.js @@ -41,7 +41,7 @@ var K = 2; // FUNCTIONS // /** -* Create a benchmark function. +* Creates a benchmark function. * * @private * @param {PositiveInteger} len - array length diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.ndarray.js index 11ca3e6eabe2..cec4ff81dbfe 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcartesian-power/benchmark/benchmark.ndarray.js @@ -41,7 +41,7 @@ var K = 2; // FUNCTIONS // /** -* Create a benchmark function. +* Creates a benchmark function. * * @private * @param {PositiveInteger} len - array length From 0eb7b7f764dbbc313252c25d2bc4ab07066be9c0 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 5 May 2026 14:46:01 +0000 Subject: [PATCH 9/9] docs: use "Creates a benchmark function." in `blas/ext/base/scartesian-power` benchmark JSDoc Aligns with the convention reaffirmed in maintainer review: third-person indicative, not imperative. https://claude.ai/code/session_01PYMuhnRSCirT5T3Bn4o4Lj --- .../blas/ext/base/scartesian-power/benchmark/benchmark.js | 2 +- .../ext/base/scartesian-power/benchmark/benchmark.native.js | 2 +- .../ext/base/scartesian-power/benchmark/benchmark.ndarray.js | 2 +- .../base/scartesian-power/benchmark/benchmark.ndarray.native.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.js index f99ad4655c24..bb74b3c746b6 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.js @@ -41,7 +41,7 @@ var K = 2; // FUNCTIONS // /** -* Create a benchmark function. +* Creates a benchmark function. * * @private * @param {PositiveInteger} len - array length diff --git a/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.native.js index df6716f019ef..dd28b863c565 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.native.js @@ -46,7 +46,7 @@ var K = 2; // FUNCTIONS // /** -* Create a benchmark function. +* Creates a benchmark function. * * @private * @param {PositiveInteger} len - array length diff --git a/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.ndarray.js index 92b4aa47ca4f..d6b981903e9f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.ndarray.js @@ -41,7 +41,7 @@ var K = 2; // FUNCTIONS // /** -* Create a benchmark function. +* Creates a benchmark function. * * @private * @param {PositiveInteger} len - array length diff --git a/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.ndarray.native.js index 2b0300ff9a5c..e57e89160995 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/scartesian-power/benchmark/benchmark.ndarray.native.js @@ -46,7 +46,7 @@ var K = 2; // FUNCTIONS // /** -* Create a benchmark function. +* Creates a benchmark function. * * @private * @param {PositiveInteger} len - array length