diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/README.md b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/README.md
new file mode 100644
index 000000000000..b2dd5242eb86
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/README.md
@@ -0,0 +1,192 @@
+
+
+# gindexOfAlmostEqual
+
+> Return the index of the first element in a strided array which is almost equal to a specified search element.
+
+
+
+
+
+
+
+
+
+
+
+## Usage
+
+```javascript
+var gindexOfAlmostEqual = require( '@stdlib/blas/ext/base/gindex-of-almost-equal' );
+```
+
+#### gindexOfAlmostEqual( N, searchElement, maxULP, x, strideX )
+
+Returns the index of the first element in a strided array which is almost equal to a specified search element.
+
+```javascript
+var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, 3.0 ];
+
+var idx = gindexOfAlmostEqual( x.length, 3.0, 1, x, 1 );
+// returns 2
+```
+
+The function has the following parameters:
+
+- **N**: number of indexed elements.
+- **searchElement**: search element.
+- **maxULP**: maximum allowed ULP difference.
+- **x**: input array.
+- **strideX**: stride length.
+
+If the function is unable to find a search element, the function returns `-1`.
+
+```javascript
+var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, 3.0 ];
+
+var idx = gindexOfAlmostEqual( x.length, 8.0, 1, x, 1 );
+// returns -1
+```
+
+The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to search every other element:
+
+```javascript
+var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, 3.0 ];
+
+var idx = gindexOfAlmostEqual( 4, -1.0, 1, x, 2 );
+// returns 3
+```
+
+Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
+
+```javascript
+var Float64Array = require( '@stdlib/array/float64' );
+
+// Initial array...
+var x0 = new Float64Array( [ 1.0, -2.0, 3.0, -4.0, 5.0, -6.0 ] );
+
+// Create an offset view...
+var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+
+// Find index...
+var idx = gindexOfAlmostEqual( 3, -6.0, 1, x1, 2 );
+// returns 2
+```
+
+
+
+#### gindexOfAlmostEqual.ndarray( N, searchElement, maxULP, x, strideX, offsetX )
+
+
+
+Returns the index of the first element in a strided array which is almost equal to a specified search element using alternative indexing semantics.
+
+```javascript
+var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, 3.0 ];
+
+var idx = gindexOfAlmostEqual.ndarray( x.length, 3.0, 1, x, 1, 0 );
+// returns 2
+```
+
+The function has the following additional parameters:
+
+- **offsetX**: starting index.
+
+While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to access only the last three elements of the strided array:
+
+```javascript
+var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, 3.0 ];
+
+var idx = gindexOfAlmostEqual.ndarray( 3, 3.0, 1, x, 1, x.length-3 );
+// returns 2
+```
+
+
+
+
+
+
+
+
+
+## Notes
+
+- When searching for a search element, the function tests whether elements are approximately equal within a maximum allowed ULP difference. As a consequence, `NaN` values are considered distinct, and `-0` and `+0` are considered the same.
+- Both functions support array-like objects having getter and setter accessors for array element access (e.g., [`@stdlib/array/base/accessor`][@stdlib/array/base/accessor]).
+
+
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
+var gindexOfAlmostEqual = require( '@stdlib/blas/ext/base/gindex-of-almost-equal' );
+
+var x = discreteUniform( 10, -100, 100, {
+ 'dtype': 'generic'
+});
+console.log( x );
+
+var idx = gindexOfAlmostEqual( x.length, 80.0, 1, x, 1 );
+console.log( idx );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
+
+[@stdlib/array/base/accessor]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/accessor
+
+
+
+
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/benchmark/benchmark.js
new file mode 100644
index 000000000000..324599b6801c
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/benchmark/benchmark.js
@@ -0,0 +1,97 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var bench = require( '@stdlib/bench' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;
+var oneTo = require( '@stdlib/array/one-to' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+var gindexOfAlmostEqual = require( './../lib' );
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var x = oneTo( len, 'float64' );
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var out;
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ out = gindexOfAlmostEqual( x.length, len+1, 1, x, 1 );
+ if ( out !== out ) {
+ b.fail( 'should return an integer' );
+ }
+ }
+ b.toc();
+ if ( !isInteger( out ) ) {
+ b.fail( 'should return an integer' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+
+ f = createBenchmark( len );
+ bench( format( '%s:len=%d', pkg, len ), f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/benchmark/benchmark.ndarray.js
new file mode 100644
index 000000000000..a1bf0eabaf8f
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/benchmark/benchmark.ndarray.js
@@ -0,0 +1,97 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var bench = require( '@stdlib/bench' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;
+var oneTo = require( '@stdlib/array/one-to' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+var gindexOfAlmostEqual = require( './../lib/ndarray.js' );
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var x = oneTo( len, 'float64' );
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var out;
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ out = gindexOfAlmostEqual( x.length, len+1, 1, x, 1, 0 );
+ if ( out !== out ) {
+ b.fail( 'should return an integer' );
+ }
+ }
+ b.toc();
+ if ( !isInteger( out ) ) {
+ b.fail( 'should return an integer' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+
+ f = createBenchmark( len );
+ bench( format( '%s:ndarray:len=%d', pkg, len ), f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/docs/repl.txt b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/docs/repl.txt
new file mode 100644
index 000000000000..e561fb3fef03
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/docs/repl.txt
@@ -0,0 +1,101 @@
+
+{{alias}}( N, searchElement, maxULP, x, strideX )
+ Returns the index of the first element in a strided array which is almost
+ equal to a specified search element.
+
+ The `N` and stride parameters determine which elements in the strided array
+ are accessed at runtime.
+
+ Indexing is relative to the first index. To introduce an offset, use a typed
+ array view.
+
+ If `N <= 0`, the function returns `-1`.
+
+ Parameters
+ ----------
+ N: integer
+ Number of indexed elements.
+
+ searchElement: any
+ Search element.
+
+ maxULP: integer
+ Maximum allowed ULP difference.
+
+ x: Array|TypedArray
+ Input array.
+
+ strideX: integer
+ Stride length.
+
+ Returns
+ -------
+ idx: integer
+ Index.
+
+ Examples
+ --------
+ // Standard usage:
+ > var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, -1.0, -3.0 ];
+ > var idx = {{alias}}( x.length, 1.0, 1, x, 1 )
+ 1
+
+ // Using `N` and stride parameters:
+ > x = [ -2.0, 1.0, 3.0, -5.0, 4.0, -1.0, -3.0 ];
+ > var idx = {{alias}}( 3, 4.0, 1, x, 2 )
+ 2
+
+ // Using view offsets:
+ > var x0 = new {{alias:@stdlib/array/float64}}( [ -2.0, 1.0, 3.0, -5.0, 4.0, -1.0, -3.0 ] );
+ > var x1 = new {{alias:@stdlib/array/float64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
+ > var idx = {{alias}}( 3, -1.0, 1, x1, 2 )
+ 2
+
+
+{{alias}}.ndarray( N, searchElement, maxULP, x, strideX, offsetX )
+ Returns the index of the first element in a strided array which is almost
+ equal to a specified search element using alternative indexing semantics.
+
+ While typed array views mandate a view offset based on the underlying
+ buffer, the offset parameter supports indexing semantics based on a starting
+ index.
+
+ Parameters
+ ----------
+ N: integer
+ Number of indexed elements.
+
+ searchElement: any
+ Search element.
+
+ maxULP: integer
+ Maximum allowed ULP difference.
+
+ x: Array|TypedArray
+ Input array.
+
+ strideX: integer
+ Stride length.
+
+ offsetX: integer
+ Starting index.
+
+ Returns
+ -------
+ idx: integer
+ Index.
+
+ Examples
+ --------
+ // Standard usage:
+ > var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, -1.0, -3.0 ];
+ > var idx = {{alias}}.ndarray( x.length, 1.0, 1, x, 1, 0 )
+ 1
+
+ // Advanced indexing:
+ > x = [ -2.0, 1.0, 3.0, -5.0, 4.0, -1.0, -3.0 ];
+ > var idx = {{alias}}.ndarray( 3, -1.0, 1, x, 2, 1 )
+ 2
+
+ See Also
+ --------
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/docs/types/index.d.ts
new file mode 100644
index 000000000000..0abf783ea887
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/docs/types/index.d.ts
@@ -0,0 +1,111 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+// TypeScript Version: 4.1
+
+///
+
+import { Collection, AccessorArrayLike } from '@stdlib/types/array';
+
+/**
+* Input array.
+*/
+type InputArray = Collection | AccessorArrayLike;
+
+/**
+* Interface describing `gindexOfAlmostEqual`.
+*/
+interface Routine {
+ /**
+ * Returns the index of the first element in a strided array which is almost equal to a specified search element.
+ *
+ * ## Notes
+ *
+ * - If the function is unable to find a search element, the function returns `-1`.
+ *
+ * @param N - number of indexed elements
+ * @param searchElement - search element
+ * @param maxULP - maximum allowed ULP difference
+ * @param x - input array
+ * @param strideX - stride length
+ * @returns index
+ *
+ * @example
+ * var x = [ 1.0, 2.0, 3.0, 4.0 ];
+ *
+ * var idx = gindexOfAlmostEqual( x.length, 2.0, 1, x, 1 );
+ * // returns 1
+ */
+ ( N: number, searchElement: unknown, maxULP: number, x: InputArray, strideX: number ): number;
+
+ /**
+ * Returns the index of the first element in a strided array which is almost equal to a specified search element using alternative indexing semantics.
+ *
+ * ## Notes
+ *
+ * - If the function is unable to find a search element, the function returns `-1`.
+ *
+ * @param N - number of indexed elements
+ * @param searchElement - search element
+ * @param maxULP - maximum allowed ULP difference
+ * @param x - input array
+ * @param strideX - stride length
+ * @param offsetX - starting index
+ * @returns index
+ *
+ * @example
+ * var x = [ 1.0, 2.0, 3.0, 4.0 ];
+ *
+ * var idx = gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, 1, 0 );
+ * // returns 1
+ */
+ ndarray( N: number, searchElement: unknown, maxULP: number, x: InputArray, strideX: number, offsetX: number ): number;
+}
+
+/**
+* Returns the index of the first element in a strided array which is almost equal to a specified search element.
+*
+* ## Notes
+*
+* - If the function is unable to find a search element, the function returns `-1`.
+*
+* @param N - number of indexed elements
+* @param searchElement - search element
+* @param maxULP - maximum allowed ULP difference
+* @param x - input array
+* @param strideX - stride length
+* @returns index
+*
+* @example
+* var x = [ 1.0, 2.0, 3.0, 4.0 ];
+*
+* var idx = gindexOfAlmostEqual( x.length, 2.0, 1, x, 1 );
+* // returns 1
+*
+* @example
+* var x = [ 1.0, 2.0, 3.0, 4.0 ];
+*
+* var idx = gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, 1, 0 );
+* // returns 1
+*/
+declare var gindexOfAlmostEqual: Routine;
+
+
+// EXPORTS //
+
+export = gindexOfAlmostEqual;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/docs/types/test.ts b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/docs/types/test.ts
new file mode 100644
index 000000000000..97c07fec5703
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/docs/types/test.ts
@@ -0,0 +1,153 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import AccessorArray = require( '@stdlib/array/base/accessor' );
+import gindexOfAlmostEqual = require( './index' );
+
+
+// TESTS //
+
+// The function returns a number...
+{
+ var x = [ 1.0, 2.0, 3.0 ];
+
+ gindexOfAlmostEqual( x.length, 2.0, 1, x, 1 ); // $ExpectType number
+ gindexOfAlmostEqual( x.length, 2.0, 1, new AccessorArray( x ), 1 ); // $ExpectType number
+}
+
+// The compiler throws an error if the function is provided a first argument which is not a number...
+{
+ var x = [ 1.0, 2.0, 3.0 ];
+
+ gindexOfAlmostEqual( '1', 2.0, 1, x, 1 ); // $ExpectError
+ gindexOfAlmostEqual( true, 2.0, 1, x, 1 ); // $ExpectError
+ gindexOfAlmostEqual( false, 2.0, 1, x, 1 ); // $ExpectError
+ gindexOfAlmostEqual( null, 2.0, 1, x, 1 ); // $ExpectError
+ gindexOfAlmostEqual( {}, 2.0, 1, x, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a third argument which is not a number...
+{
+ var x = [ 1.0, 2.0, 3.0 ];
+
+ gindexOfAlmostEqual( x.length, 2.0, '1', x, 1 ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 2.0, true, x, 1 ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 2.0, false, x, 1 ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 2.0, null, x, 1 ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 2.0, {}, x, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fourth argument which is not a collection...
+{
+ gindexOfAlmostEqual( x.length, 1.0, 1, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 1.0, 1, true, 1 ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 1.0, 1, false, 1 ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 1.0, 1, null, 1 ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 1.0, 1, {}, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fifth argument which is not a number...
+{
+ var x = [ 1.0, 2.0, 3.0 ];
+
+ gindexOfAlmostEqual( x.length, 2.0, 1, x, '1' ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 2.0, 1, x, true ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 2.0, 1, x, false ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 2.0, 1, x, null ); // $ExpectError
+ gindexOfAlmostEqual( x.length, 2.0, 1, x, {} ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an unsupported number of arguments...
+{
+ gindexOfAlmostEqual(); // $ExpectError
+ gindexOfAlmostEqual( 3, 2.0 ); // $ExpectError
+ gindexOfAlmostEqual( 3, 2.0, 1 ); // $ExpectError
+ gindexOfAlmostEqual( 3, 2.0, 1, [ 1.0, 2.0, 3.0 ] ); // $ExpectError
+ gindexOfAlmostEqual( 3, 2.0, 1, [ 1.0, 2.0, 3.0 ], 1, {} ); // $ExpectError
+}
+
+// Attached to main export is an `ndarray` method which returns a number...
+{
+ var x = [ 1.0, 2.0, 3.0 ];
+
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, 1, 0 ); // $ExpectType number
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, new AccessorArray( x ), 1, 0 ); // $ExpectType number
+}
+
+// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number...
+{
+ var x = [ 1.0, 2.0, 3.0 ];
+
+ gindexOfAlmostEqual.ndarray( '1', 2.0, 1, x, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( true, 2.0, 1, x, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( false, 2.0, 1, x, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( null, 2.0, 1, x, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( {}, 2.0, 1, x, 1, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a third argument which is not a number...
+{
+ var x = [ 1.0, 2.0, 3.0 ];
+
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, '1', x, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, true, x, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, false, x, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, null, x, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, {}, x, 1, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a collection...
+{
+ gindexOfAlmostEqual.ndarray( x.length, 1.0, 1, 1, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 1.0, 1, true, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 1.0, 1, false, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 1.0, 1, null, 1, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 1.0, 1, {}, 1, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a number...
+{
+ var x = [ 1.0, 2.0, 3.0 ];
+
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, '1', 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, true, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, false, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, null, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, {}, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a number...
+{
+ var x = [ 1.0, 2.0, 3.0 ];
+
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, 1, '1' ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, 1, true ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, 1, false ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, 1, null ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( x.length, 2.0, 1, x, 1, {} ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments...
+{
+ gindexOfAlmostEqual.ndarray(); // $ExpectError
+ gindexOfAlmostEqual.ndarray( 3, 2.0 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( 3, 2.0, 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( 3, 2.0, 1, [ 1.0, 2.0, 3.0 ] ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( 3, 2.0, 1, [ 1.0, 2.0, 3.0 ], 1 ); // $ExpectError
+ gindexOfAlmostEqual.ndarray( 3, 2.0, 1, [ 1.0, 2.0, 3.0 ], 1, 0, {} ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/examples/index.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/examples/index.js
new file mode 100644
index 000000000000..ffa0ff175a4f
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/examples/index.js
@@ -0,0 +1,30 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
+var gindexOfAlmostEqual = require( './../lib' );
+
+var x = discreteUniform( 10, -100, 100, {
+ 'dtype': 'generic'
+});
+console.log( x );
+
+var idx = gindexOfAlmostEqual( x.length, 80.0, 1, x, 1 );
+console.log( idx );
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/accessors.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/accessors.js
new file mode 100644
index 000000000000..3a166d4abbba
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/accessors.js
@@ -0,0 +1,80 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var isAlmostEqual = require( '@stdlib/assert/is-almost-equal' );
+
+
+// MAIN //
+
+/**
+* Returns the index of the first element in a strided array which is almost equal to a specified search element.
+*
+* ## Notes
+*
+* - If the function is unable to find a search element, the function returns `-1`.
+*
+* @private
+* @param {PositiveInteger} N - number of indexed elements
+* @param {*} searchElement - search element
+* @param {NonNegativeInteger} maxULP - maximum allowed ULP difference
+* @param {Object} x - input array object
+* @param {Collection} x.data - input array data
+* @param {Array} x.accessors - array element accessors
+* @param {integer} strideX - stride length
+* @param {NonNegativeInteger} offsetX - starting index
+* @returns {integer} index
+*
+* @example
+* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+* var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
+*
+* var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ];
+*
+* var idx = gindexOfAlmostEqual( x.length, 3.0, 1, arraylike2object( toAccessorArray( x ) ), 1, 0 );
+* // returns 2
+*/
+function gindexOfAlmostEqual( N, searchElement, maxULP, x, strideX, offsetX ) {
+ var xbuf;
+ var get;
+ var ix;
+ var i;
+
+ // Cache a reference to array data:
+ xbuf = x.data;
+
+ // Cache a reference to the element accessor:
+ get = x.accessors[ 0 ];
+
+ ix = offsetX;
+ for ( i = 0; i < N; i++ ) {
+ if ( isAlmostEqual( searchElement, get( xbuf, ix ), maxULP ) ) {
+ return i;
+ }
+ ix += strideX;
+ }
+ return -1;
+}
+
+
+// EXPORTS //
+
+module.exports = gindexOfAlmostEqual;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/index.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/index.js
new file mode 100644
index 000000000000..ce013b93d5eb
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/index.js
@@ -0,0 +1,57 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+/**
+* Return the index of the first element in a strided array which is almost equal to a specified search element.
+*
+* @module @stdlib/blas/ext/base/gindex-of-almost-equal
+*
+* @example
+* var gindexOfAlmostEqual = require( '@stdlib/blas/ext/base/gindex-of-almost-equal' );
+*
+* var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, 3.0 ];
+*
+* var idx = gindexOfAlmostEqual( x.length, 3.0, 1, x, 1 );
+* // returns 2
+*
+* @example
+* var gindexOfAlmostEqual = require( '@stdlib/blas/ext/base/gindex-of-almost-equal' );
+*
+* var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, 3.0 ];
+*
+* var idx = gindexOfAlmostEqual.ndarray( x.length, 3.0, 1, x, 1, 0 );
+* // returns 2
+*/
+
+// MODULES //
+
+var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var main = require( './main.js' );
+var ndarray = require( './ndarray.js' );
+
+
+// MAIN //
+
+setReadOnly( main, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = main;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/main.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/main.js
new file mode 100644
index 000000000000..5b6d76b5fe61
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/main.js
@@ -0,0 +1,56 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var stride2offset = require( '@stdlib/strided/base/stride2offset' );
+var ndarray = require( './ndarray.js' );
+
+
+// MAIN //
+
+/**
+* Returns the index of the first element in a strided array which is almost equal to a specified search element.
+*
+* ## Notes
+*
+* - If the function is unable to find a search element, the function returns `-1`.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {*} searchElement - search element
+* @param {NonNegativeInteger} maxULP - maximum allowed ULP difference
+* @param {Collection} x - input array
+* @param {integer} strideX - stride length
+* @returns {integer} index
+*
+* @example
+* var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, 3.0 ];
+*
+* var idx = gindexOfAlmostEqual( x.length, 3.0, 1, x, 1 );
+* // returns 2
+*/
+function gindexOfAlmostEqual( N, searchElement, maxULP, x, strideX ) {
+ return ndarray( N, searchElement, maxULP, x, strideX, stride2offset( N, strideX ) );
+}
+
+
+// EXPORTS //
+
+module.exports = gindexOfAlmostEqual;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/ndarray.js
new file mode 100644
index 000000000000..80407cfbb92f
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/lib/ndarray.js
@@ -0,0 +1,76 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
+var isAlmostEqual = require( '@stdlib/assert/is-almost-equal' );
+var accessors = require( './accessors.js' );
+
+
+// MAIN //
+
+/**
+* Returns the index of the first element in a strided array which is almost equal to a specified search element using alternative indexing semantics.
+*
+* ## Notes
+*
+* - If the function is unable to find a search element, the function returns `-1`.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {*} searchElement - search element
+* @param {NonNegativeInteger} maxULP - maximum allowed ULP difference
+* @param {Collection} x - input array
+* @param {integer} strideX - stride length
+* @param {NonNegativeInteger} offsetX - starting index
+* @returns {integer} index
+*
+* @example
+* var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, 3.0 ];
+*
+* var idx = gindexOfAlmostEqual( x.length, 3.0, 1, x, 1, 0 );
+* // returns 2
+*/
+function gindexOfAlmostEqual( N, searchElement, maxULP, x, strideX, offsetX ) {
+ var ix;
+ var o;
+ var i;
+
+ if ( N <= 0 ) {
+ return -1;
+ }
+ o = arraylike2object( x );
+ if ( o.accessorProtocol ) {
+ return accessors( N, searchElement, maxULP, o, strideX, offsetX );
+ }
+ ix = offsetX;
+ for ( i = 0; i < N; i++ ) {
+ if ( isAlmostEqual( searchElement, x[ ix ], maxULP ) ) {
+ return i;
+ }
+ ix += strideX;
+ }
+ return -1;
+}
+
+
+// EXPORTS //
+
+module.exports = gindexOfAlmostEqual;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/package.json b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/package.json
new file mode 100644
index 000000000000..34b1839c7ef6
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/package.json
@@ -0,0 +1,70 @@
+{
+ "name": "@stdlib/blas/ext/base/gindex-of-almost-equal",
+ "version": "0.0.0",
+ "description": "Return the index of the first element in a strided array which is almost equal to a specified search element.",
+ "license": "Apache-2.0",
+ "author": {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ },
+ "contributors": [
+ {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ }
+ ],
+ "main": "./lib",
+ "directories": {
+ "benchmark": "./benchmark",
+ "doc": "./docs",
+ "example": "./examples",
+ "lib": "./lib",
+ "test": "./test"
+ },
+ "types": "./docs/types",
+ "scripts": {},
+ "homepage": "https://github.com/stdlib-js/stdlib",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/stdlib-js/stdlib.git"
+ },
+ "bugs": {
+ "url": "https://github.com/stdlib-js/stdlib/issues"
+ },
+ "dependencies": {},
+ "devDependencies": {},
+ "engines": {
+ "node": ">=0.10.0",
+ "npm": ">2.7.0"
+ },
+ "os": [
+ "aix",
+ "darwin",
+ "freebsd",
+ "linux",
+ "macos",
+ "openbsd",
+ "sunos",
+ "win32",
+ "windows"
+ ],
+ "keywords": [
+ "stdlib",
+ "stdmath",
+ "mathematics",
+ "math",
+ "blas",
+ "extended",
+ "almost",
+ "equal",
+ "ulp",
+ "search",
+ "index",
+ "get",
+ "compare",
+ "strided",
+ "array",
+ "ndarray"
+ ],
+ "__stdlib__": {}
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/test/test.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/test/test.js
new file mode 100644
index 000000000000..c0381d45d306
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/test/test.js
@@ -0,0 +1,38 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var gindexOfAlmostEqual = require( './../lib' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof gindexOfAlmostEqual, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'attached to the main export is a method providing an ndarray interface', function test( t ) {
+ t.strictEqual( typeof gindexOfAlmostEqual.ndarray, 'function', 'method is a function' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/test/test.main.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/test/test.main.js
new file mode 100644
index 000000000000..6e62ee11379a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/test/test.main.js
@@ -0,0 +1,334 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var Float64Array = require( '@stdlib/array/float64' );
+var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+var gindexOfAlmostEqual = require( './../lib' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof gindexOfAlmostEqual, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 5', function test( t ) {
+ t.strictEqual( gindexOfAlmostEqual.length, 5, 'has expected arity' );
+ t.end();
+});
+
+tape( 'the function returns the first index of an element which is almost equal to a specified search element', function test( t ) {
+ var actual;
+ var x;
+
+ x = [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ];
+
+ // Nonnegative stride...
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, 1 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 2.0, 1, x, 1 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 3.0, 1, x, 1 );
+ t.strictEqual( actual, 4, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 4.0, 1, x, 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ // Negative stride...
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, -1 );
+ t.strictEqual( actual, 4, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 2.0, 1, x, -1 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 3.0, 1, x, -1 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 4.0, 1, x, -1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns the first index of an element which is almost equal to a specified search element (accessors)', function test( t ) {
+ var actual;
+ var x;
+
+ x = toAccessorArray( [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] );
+
+ // Nonnegative stride...
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, 1 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 2.0, 1, x, 1 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 3.0, 1, x, 1 );
+ t.strictEqual( actual, 4, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 4.0, 1, x, 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ // Negative stride...
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, -1 );
+ t.strictEqual( actual, 4, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 2.0, 1, x, -1 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 3.0, 1, x, -1 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 4.0, 1, x, -1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports specifying a maximum allowed ULP difference', function test( t ) {
+ var actual;
+ var x;
+
+ x = [ 1.0+( 4.0*EPS ), 1.0+( 2.0*EPS ), 1.0+EPS ];
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 0, x, 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, 1 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 2, x, 1 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 4, x, 1 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports specifying a maximum allowed ULP difference (accessors)', function test( t ) {
+ var actual;
+ var x;
+
+ x = toAccessorArray( [ 1.0+( 4.0*EPS ), 1.0+( 2.0*EPS ), 1.0+EPS ] );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 0, x, 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, 1 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 2, x, 1 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 4, x, 1 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns `-1` if a provided `N` parameter is less than or equal to zero', function test( t ) {
+ var actual;
+
+ actual = gindexOfAlmostEqual( 0, 2.0, 1, [ 1.0, 2.0, 3.0 ], 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( -1, 2.0, 1, [ 1.0, 2.0, 3.0 ], 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns `-1` if a provided `N` parameter is less than or equal to zero (accessors)', function test( t ) {
+ var actual;
+
+ actual = gindexOfAlmostEqual( 0, 2.0, 1, toAccessorArray( [ 1.0, 2.0, 3.0 ] ), 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( -1, 2.0, 1, toAccessorArray( [ 1.0, 2.0, 3.0 ] ), 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns `-1` if provided a search element equal to `NaN`', function test( t ) {
+ var actual;
+
+ actual = gindexOfAlmostEqual( 1, NaN, 1, [ NaN ], 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( 1, NaN, 1, [ 1.0 ], 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns `-1` if provided a search element equal to `NaN` (accessors)', function test( t ) {
+ var actual;
+
+ actual = gindexOfAlmostEqual( 1, NaN, 1, toAccessorArray( [ NaN ] ), 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( 1, NaN, 1, toAccessorArray( [ 1.0 ] ), 1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function treats -0 and +0 as equal', function test( t ) {
+ var actual;
+
+ actual = gindexOfAlmostEqual( 1, 0.0, 0, [ -0.0 ], 1 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function treats -0 and +0 as equal (accessors)', function test( t ) {
+ var actual;
+
+ actual = gindexOfAlmostEqual( 1, 0.0, 0, toAccessorArray( [ -0.0 ] ), 1 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports an `x` stride', function test( t ) {
+ var actual;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+
+ actual = gindexOfAlmostEqual( 3, 3.0, 1, x, 2 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports an `x` stride (accessors)', function test( t ) {
+ var actual;
+ var x;
+
+ x = toAccessorArray([
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ]);
+
+ actual = gindexOfAlmostEqual( 3, 3.0, 1, x, 2 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports negative strides', function test( t ) {
+ var actual;
+ var x;
+
+ x = [
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ];
+
+ actual = gindexOfAlmostEqual( 3, 3.0, 1, x, -2 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports negative strides (accessors)', function test( t ) {
+ var actual;
+ var x;
+
+ x = toAccessorArray([
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ]);
+
+ actual = gindexOfAlmostEqual( 3, 3.0, 1, x, -2 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', function test( t ) {
+ var actual;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0, // 2
+ 6.0
+ ];
+
+ actual = gindexOfAlmostEqual( 3, 3.0, 1, x, 2 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports view offsets', function test( t ) {
+ var actual;
+ var x0;
+ var x1;
+
+ // Initial array...
+ x0 = new Float64Array([
+ 1.0,
+ 2.0, // 0
+ 3.0, // 1
+ 4.0,
+ 5.0, // 2
+ 6.0
+ ]);
+
+ // Create offset view...
+ x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
+
+ actual = gindexOfAlmostEqual( 3, 4.0, 1, x1, 2 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/test/test.ndarray.js
new file mode 100644
index 000000000000..2cfb899eb47e
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-almost-equal/test/test.ndarray.js
@@ -0,0 +1,354 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+var EPS = require( '@stdlib/constants/float64/eps' );
+var gindexOfAlmostEqual = require( './../lib/ndarray.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof gindexOfAlmostEqual, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 6', function test( t ) {
+ t.strictEqual( gindexOfAlmostEqual.length, 6, 'has expected arity' );
+ t.end();
+});
+
+tape( 'the function returns the first index of an element which is almost equal to a specified search element', function test( t ) {
+ var actual;
+ var x;
+
+ x = [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ];
+
+ // Nonnegative stride...
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, 1, 0 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length-1, 2.0, 1, x, 1, 1 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length-2, 3.0, 1, x, 1, 2 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length-2, 4.0, 1, x, 1, 2 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ // Negative stride...
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, -1, x.length-1 );
+ t.strictEqual( actual, 4, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( 3, 2.0, 1, x, -2, x.length-1 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( 3, 1.0, 1, x, -2, x.length-2 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 4.0, 1, x, -1, x.length-1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns the first index of an element which is almost equal to a specified search element (accessors)', function test( t ) {
+ var actual;
+ var x;
+
+ x = toAccessorArray( [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] );
+
+ // Nonnegative stride...
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, 1, 0 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length-1, 2.0, 1, x, 1, 1 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length-2, 3.0, 1, x, 1, 2 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length-2, 4.0, 1, x, 1, 2 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ // Negative stride...
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, -1, x.length-1 );
+ t.strictEqual( actual, 4, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( 3, 2.0, 1, x, -2, x.length-1 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( 3, 1.0, 1, x, -2, x.length-2 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 4.0, 1, x, -1, x.length-1 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports specifying a maximum allowed ULP difference', function test( t ) {
+ var actual;
+ var x;
+
+ x = [ 1.0+( 4.0*EPS ), 1.0+( 2.0*EPS ), 1.0+EPS ];
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 0, x, 1, 0 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, 1, 0 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 2, x, 1, 0 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 4, x, 1, 0 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports specifying a maximum allowed ULP difference (accessors)', function test( t ) {
+ var actual;
+ var x;
+
+ x = toAccessorArray( [ 1.0+( 4.0*EPS ), 1.0+( 2.0*EPS ), 1.0+EPS ] );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 0, x, 1, 0 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 1, x, 1, 0 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 2, x, 1, 0 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( x.length, 1.0, 4, x, 1, 0 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns `-1` if a provided `N` parameter is less than or equal to zero', function test( t ) {
+ var actual;
+
+ actual = gindexOfAlmostEqual( 0, 2.0, 1, [ 1.0, 2.0, 3.0 ], 1, 0 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( -1, 2.0, 1, [ 1.0, 2.0, 3.0 ], 1, 0 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns `-1` if a provided `N` parameter is less than or equal to zero (accessors)', function test( t ) {
+ var actual;
+ var x;
+
+ x = toAccessorArray( [ 1.0, 2.0, 3.0 ] );
+
+ actual = gindexOfAlmostEqual( 0, 2.0, 1, x, 1, 0 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( -1, 2.0, 1, x, 1, 0 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns `-1` if provided a search element equal to `NaN`', function test( t ) {
+ var actual;
+
+ actual = gindexOfAlmostEqual( 1, NaN, 1, [ NaN ], 1, 0 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( 1, NaN, 1, [ 1.0 ], 1, 0 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns `-1` if provided a search element equal to `NaN` (accessors)', function test( t ) {
+ var actual;
+
+ actual = gindexOfAlmostEqual( 1, NaN, 1, toAccessorArray( [ NaN ] ), 1, 0 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ actual = gindexOfAlmostEqual( 1, NaN, 1, toAccessorArray( [ 1.0 ] ), 1, 0 );
+ t.strictEqual( actual, -1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function treats -0 and +0 as equal', function test( t ) {
+ var actual;
+
+ actual = gindexOfAlmostEqual( 1, 0.0, 0, [ -0.0 ], 1, 0 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function treats -0 and +0 as equal (accessors)', function test( t ) {
+ var actual;
+
+ actual = gindexOfAlmostEqual( 1, 0.0, 0, toAccessorArray( [ -0.0 ] ), 1, 0 );
+ t.strictEqual( actual, 0, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports an `x` stride', function test( t ) {
+ var actual;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+
+ actual = gindexOfAlmostEqual( 3, 3.0, 1, x, 2, 0 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports an `x` stride (accessors)', function test( t ) {
+ var actual;
+ var x;
+
+ x = toAccessorArray([
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ]);
+
+ actual = gindexOfAlmostEqual( 3, 3.0, 1, x, 2, 0 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports negative strides', function test( t ) {
+ var actual;
+ var x;
+
+ x = [
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ];
+
+ actual = gindexOfAlmostEqual( 3, 3.0, 1, x, -2, 4 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports negative strides (accessors)', function test( t ) {
+ var actual;
+ var x;
+
+ x = toAccessorArray([
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ]);
+
+ actual = gindexOfAlmostEqual( 3, 3.0, 1, x, -2, 4 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports an `x` offset', function test( t ) {
+ var actual;
+ var x;
+
+ x = [
+ 2.0,
+ 1.0, // 0
+ 2.0,
+ -2.0, // 1
+ -2.0,
+ 2.0, // 2
+ 3.0,
+ 4.0 // 3
+ ];
+
+ actual = gindexOfAlmostEqual( 4, 2.0, 1, x, 2, 1 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports an `x` offset (accessors)', function test( t ) {
+ var actual;
+ var x;
+
+ x = toAccessorArray([
+ 2.0,
+ 1.0, // 0
+ 2.0,
+ -2.0, // 1
+ -2.0,
+ 2.0, // 2
+ 3.0,
+ 4.0 // 3
+ ]);
+
+ actual = gindexOfAlmostEqual( 4, 2.0, 1, x, 2, 1 );
+ t.strictEqual( actual, 2, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', function test( t ) {
+ var actual;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0, // 2
+ 6.0
+ ];
+
+ actual = gindexOfAlmostEqual( 3, 3.0, 1, x, 2, 0 );
+ t.strictEqual( actual, 1, 'returns expected value' );
+
+ t.end();
+});