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
Original file line number Diff line number Diff line change
Expand Up @@ -3134,6 +3134,7 @@ interface Namespace {
* - The function expects the following ndarrays:
*
* - a one-dimensional input ndarray.
* - a zero-dimensional ndarray containing the index from which to begin searching.
*
* - If no element passes a test implemented by a predicate function, the function returns `-1`.
*
Expand All @@ -3143,6 +3144,7 @@ interface Namespace {
* @returns index
*
* @example
* var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
* var vector = require( '@stdlib/ndarray/vector/ctor' );
*
* function clbk( v ) {
Expand All @@ -3151,7 +3153,11 @@ interface Namespace {
*
* var x = vector( [ 1.0, 3.0, 4.0, 2.0 ], 'generic' );
*
* var v = ns.gfindLastIndex( [ x ], clbk );
* var fromIndex = scalar2ndarray( 3, {
* 'dtype': 'generic'
* });
*
* var v = ns.gfindLastIndex( [ x, fromIndex ], clbk );
* // returns 3
*/
gfindLastIndex: typeof gfindLastIndex;
Expand Down Expand Up @@ -3447,19 +3453,25 @@ interface Namespace {
*
* - first one-dimensional input ndarray.
* - second one-dimensional input ndarray.
* - a zero-dimensional ndarray containing the index from which to begin searching.
*
* - When comparing elements, the function checks for equality using the strict equality operator `===`. As a consequence, `NaN` values are considered distinct, and `-0` and `+0` are considered the same.
*
* @param arrays - array-like object containing ndarrays
* @returns index
*
* @example
* var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
* var vector = require( '@stdlib/ndarray/vector/ctor' );
*
* var x = vector( [ 1.0, 2.0, 3.0, 4.0 ], 'generic' );
* var y = vector( [ 0.0, 0.0, 3.0, 0.0 ], 'generic' );
*
* var idx = ns.glastIndexEqual( [ x, y ] );
* var fromIndex = scalar2ndarray( 3, {
* 'dtype': 'generic'
* });
*
* var idx = ns.glastIndexEqual( [ x, y, fromIndex ] );
* // returns 2
*/
glastIndexEqual: typeof glastIndexEqual;
Expand Down