diff --git a/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts index bfacf632602b..ba24ca76722f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts @@ -338,6 +338,7 @@ import zfill = require( '@stdlib/blas/ext/base/zfill' ); import zindexOf = require( '@stdlib/blas/ext/base/zindex-of' ); import zindexOfColumn = require( '@stdlib/blas/ext/base/zindex-of-column' ); import zindexOfRow = require( '@stdlib/blas/ext/base/zindex-of-row' ); +import zindexOfTruthy = require( '@stdlib/blas/ext/base/zindex-of-truthy' ); import zlastIndexOfRow = require( '@stdlib/blas/ext/base/zlast-index-of-row' ); import znancount = require( '@stdlib/blas/ext/base/znancount' ); import zoneTo = require( '@stdlib/blas/ext/base/zone-to' ); @@ -9813,6 +9814,38 @@ interface Namespace { */ zindexOfRow: typeof zindexOfRow; + /** + * Returns the index of the first truthy element in a double-precision complex floating-point strided array. + * + * ## Notes + * + * - A complex number is truthy when at least one of its real or imaginary components is truthy. + * - If unable to find a truthy element, the function returns `-1`. + * - The function explicitly treats `NaN` values as falsy. + * + * @param N - number of indexed elements + * @param x - input array + * @param strideX - stride length + * @returns index + * + * @example + * var Complex128Array = require( '@stdlib/array/complex128' ); + * + * var x = new Complex128Array( [ 0.0, 0.0, 1.0, 2.0 ] ); + * + * var idx = ns.zindexOfTruthy( x.length, x, 1 ); + * // returns 1 + * + * @example + * var Complex128Array = require( '@stdlib/array/complex128' ); + * + * var x = new Complex128Array( [ 0.0, 0.0, 1.0, 2.0 ] ); + * + * var idx = ns.zindexOfTruthy.ndarray( x.length, x, 1, 0 ); + * // returns 1 + */ + zindexOfTruthy: typeof zindexOfTruthy; + /** * Returns the index of the last row in a double-precision complex floating-point input matrix which has the same elements as a provided search vector. *