Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down Expand Up @@ -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.
*
Expand Down