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` 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 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 } 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 }