From 72f24a842a58455c4adac2d18e48a1ad1236640b Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 14 May 2026 12:26:34 +0000 Subject: [PATCH 1/4] docs: correct return-condition wording in `blas/ext/base/cindex-of-column` Replace `unable to find a search vector` with `unable to find a matching column` in the JSDoc and TypeScript declarations to match the README and the wording used by the analogous `dindex-of-column` package. --- .../blas/ext/base/cindex-of-column/docs/types/index.d.ts | 6 +++--- .../blas/ext/base/cindex-of-column/lib/cindex_of_column.js | 2 +- .../@stdlib/blas/ext/base/cindex-of-column/lib/ndarray.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/docs/types/index.d.ts index 34d53bc7903a..4980a1c57725 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/docs/types/index.d.ts @@ -32,7 +32,7 @@ interface Routine { * * ## Notes * - * - If the function is provided an empty matrix or if the function is unable to find a search vector, the function returns `-1` (i.e., an invalid index). + * - If the function is provided an empty matrix or if the function is unable to find a matching column, the function returns `-1` (i.e., an invalid index). * - The `workspace` array is only applicable when an input matrix is stored in row-major order. When the matrix is stored in column-major order, the workspace array is ignored. * * @param order - storage layout @@ -64,7 +64,7 @@ interface Routine { * * ## Notes * - * - If the function is provided an empty matrix or if the function is unable to find a search vector, the function returns `-1` (i.e., an invalid index). + * - If the function is provided an empty matrix or if the function is unable to find a matching column, the function returns `-1` (i.e., an invalid index). * - The `workspace` array is only applicable when an input matrix is stored in row-major order. When the matrix is stored in column-major order, the workspace array is ignored. * * @param M - number of rows in `A` @@ -100,7 +100,7 @@ interface Routine { * * ## Notes * -* - If the function is provided an empty matrix or if the function is unable to find a search vector, the function returns `-1` (i.e., an invalid index). +* - If the function is provided an empty matrix or if the function is unable to find a matching column, the function returns `-1` (i.e., an invalid index). * - The `workspace` array is only applicable when an input matrix is stored in row-major order. When the matrix is stored in column-major order, the workspace array is ignored. * * @param order - storage layout diff --git a/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/lib/cindex_of_column.js b/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/lib/cindex_of_column.js index c5cc65928433..1dcdba459234 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/lib/cindex_of_column.js +++ b/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/lib/cindex_of_column.js @@ -36,7 +36,7 @@ var ndarray = require( './ndarray.js' ); * * ## Notes * -* - If the function is provided an empty matrix or if the function is unable to find a search vector, the function returns `-1` (i.e., an invalid index). +* - If the function is provided an empty matrix or if the function is unable to find a matching column, the function returns `-1` (i.e., an invalid index). * - The `workspace` array is only applicable when an input matrix is stored in row-major order. When the matrix is stored in column-major order, the workspace array is ignored. * * @param {string} order - storage layout diff --git a/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/lib/ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/lib/ndarray.js index b55728291d6c..b8e51056bf21 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/lib/ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/cindex-of-column/lib/ndarray.js @@ -33,7 +33,7 @@ var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' ); * * ## Notes * -* - If the function is provided an empty matrix or if the function is unable to find a search vector, the function returns `-1` (i.e., an invalid index). +* - If the function is provided an empty matrix or if the function is unable to find a matching column, the function returns `-1` (i.e., an invalid index). * - The `workspace` array is only applicable when an input matrix is stored in row-major order. When the matrix is stored in column-major order, the workspace array is ignored. * * @param {PositiveInteger} M - number of rows in `A` From acae714b0abb39e8c4589c66c8233b18edceaa44 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 14 May 2026 12:27:15 +0000 Subject: [PATCH 2/4] docs: correct return-condition wording in `blas/ext/base/zindex-of-column` Replace `unable to find a search vector` with `unable to find a matching column` in the JSDoc and TypeScript declarations to match the README and the wording used by the analogous `dindex-of-column` package. --- .../blas/ext/base/zindex-of-column/docs/types/index.d.ts | 6 +++--- .../@stdlib/blas/ext/base/zindex-of-column/lib/ndarray.js | 2 +- .../blas/ext/base/zindex-of-column/lib/zindex_of_column.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/docs/types/index.d.ts index cf61ff4f66c6..81504bf6fb8d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/docs/types/index.d.ts @@ -32,7 +32,7 @@ interface Routine { * * ## Notes * - * - If the function is provided an empty matrix or if the function is unable to find a search vector, the function returns `-1` (i.e., an invalid index). + * - If the function is provided an empty matrix or if the function is unable to find a matching column, the function returns `-1` (i.e., an invalid index). * - The `workspace` array is only applicable when an input matrix is stored in row-major order. When the matrix is stored in column-major order, the workspace array is ignored. * * @param order - storage layout @@ -64,7 +64,7 @@ interface Routine { * * ## Notes * - * - If the function is provided an empty matrix or if the function is unable to find a search vector, the function returns `-1` (i.e., an invalid index). + * - If the function is provided an empty matrix or if the function is unable to find a matching column, the function returns `-1` (i.e., an invalid index). * - The `workspace` array is only applicable when an input matrix is stored in row-major order. When the matrix is stored in column-major order, the workspace array is ignored. * * @param M - number of rows in `A` @@ -100,7 +100,7 @@ interface Routine { * * ## Notes * -* - If the function is provided an empty matrix or if the function is unable to find a search vector, the function returns `-1` (i.e., an invalid index). +* - If the function is provided an empty matrix or if the function is unable to find a matching column, the function returns `-1` (i.e., an invalid index). * - The `workspace` array is only applicable when an input matrix is stored in row-major order. When the matrix is stored in column-major order, the workspace array is ignored. * * @param order - storage layout diff --git a/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/lib/ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/lib/ndarray.js index 08de8c08d397..a45da8bcb634 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/lib/ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/lib/ndarray.js @@ -33,7 +33,7 @@ var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' ); * * ## Notes * -* - If the function is provided an empty matrix or if the function is unable to find a search vector, the function returns `-1` (i.e., an invalid index). +* - If the function is provided an empty matrix or if the function is unable to find a matching column, the function returns `-1` (i.e., an invalid index). * - The `workspace` array is only applicable when an input matrix is stored in row-major order. When the matrix is stored in column-major order, the workspace array is ignored. * * @param {PositiveInteger} M - number of rows in `A` diff --git a/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/lib/zindex_of_column.js b/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/lib/zindex_of_column.js index a4bfaf022dc0..201caa5c3551 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/lib/zindex_of_column.js +++ b/lib/node_modules/@stdlib/blas/ext/base/zindex-of-column/lib/zindex_of_column.js @@ -36,7 +36,7 @@ var ndarray = require( './ndarray.js' ); * * ## Notes * -* - If the function is provided an empty matrix or if the function is unable to find a search vector, the function returns `-1` (i.e., an invalid index). +* - If the function is provided an empty matrix or if the function is unable to find a matching column, the function returns `-1` (i.e., an invalid index). * - The `workspace` array is only applicable when an input matrix is stored in row-major order. When the matrix is stored in column-major order, the workspace array is ignored. * * @param {string} order - storage layout From e859fb4617d39f3c31fce174e1fbcbaacda59e35 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 14 May 2026 12:28:16 +0000 Subject: [PATCH 3/4] style: replace `isNumber` with inline `typeof` check in `ml/base/kmeans/algorithm-str2enum` Match the established str2enum pattern used by `blas/base/transpose-operation-str2enum` and the other BLAS str2enum packages: drop the `@stdlib/assert/is-number` import and use an inline `typeof v === 'number'` guard instead. --- .../@stdlib/ml/base/kmeans/algorithm-str2enum/lib/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/ml/base/kmeans/algorithm-str2enum/lib/main.js b/lib/node_modules/@stdlib/ml/base/kmeans/algorithm-str2enum/lib/main.js index 05d6f6cee854..0af4241081c4 100644 --- a/lib/node_modules/@stdlib/ml/base/kmeans/algorithm-str2enum/lib/main.js +++ b/lib/node_modules/@stdlib/ml/base/kmeans/algorithm-str2enum/lib/main.js @@ -20,7 +20,6 @@ // MODULES // -var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive; var enumeration = require( '@stdlib/ml/base/kmeans/algorithms' ).enum; @@ -47,7 +46,7 @@ var ENUM = enumeration(); */ function str2enum( algorithm ) { var v = ENUM[ algorithm ]; - return ( isNumber( v ) ) ? v : null; // note: we include this guard to prevent walking the prototype chain + return ( typeof v === 'number' ) ? v : null; // note: we include this guard to prevent walking the prototype chain } From b4606f85bf2267bdb43b8465db6d0c01c261b2a2 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 14 May 2026 12:28:52 +0000 Subject: [PATCH 4/4] style: replace `isString` with inline `typeof` check in `ml/base/kmeans/algorithm-enum2str` Match the established enum2str pattern used by `blas/base/transpose-operation-enum2str` and the other BLAS enum2str packages: drop the `@stdlib/assert/is-string` import and use an inline `typeof v === 'string'` guard instead. --- .../@stdlib/ml/base/kmeans/algorithm-enum2str/lib/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/ml/base/kmeans/algorithm-enum2str/lib/main.js b/lib/node_modules/@stdlib/ml/base/kmeans/algorithm-enum2str/lib/main.js index b5e8e15ab3c7..d971ca99b825 100644 --- a/lib/node_modules/@stdlib/ml/base/kmeans/algorithm-enum2str/lib/main.js +++ b/lib/node_modules/@stdlib/ml/base/kmeans/algorithm-enum2str/lib/main.js @@ -20,7 +20,6 @@ // MODULES // -var isString = require( '@stdlib/assert/is-string' ).isPrimitive; var objectInverse = require( '@stdlib/object/inverse' ); var enumeration = require( '@stdlib/ml/base/kmeans/algorithms' ).enum; @@ -51,7 +50,7 @@ var hash = objectInverse( enumeration(), { */ function enum2str( value ) { var v = hash[ value ]; - return ( isString( v ) ) ? v : null; // note: we include this guard to prevent walking the prototype chain + return ( typeof v === 'string' ) ? v : null; // note: we include this guard to prevent walking the prototype chain }