11/*
22* @license Apache-2.0
33*
4- * Copyright (c) 2020 The Stdlib Authors.
4+ * Copyright (c) 2025 The Stdlib Authors.
55*
66* Licensed under the Apache License, Version 2.0 (the "License");
77* you may not use this file except in compliance with the License.
2020
2121/// <reference types="@stdlib/types"/>
2222
23- import { NumericArray } from '@stdlib/types/array' ;
23+
24+ import { NumericArray , Collection , AccessorArrayLike } from '@stdlib/types/array' ;
25+ /**
26+ * Input array.
27+ */
28+ type InputArray = NumericArray | Collection < number > | AccessorArrayLike < number > ;
2429
2530/**
2631* Interface describing `nanminabs`.
@@ -31,7 +36,7 @@ interface Routine {
3136 *
3237 * @param N - number of indexed elements
3338 * @param x - input array
34- * @param stride - stride length
39+ * @param strideX - stride length
3540 * @returns minimum absolute value
3641 *
3742 * @example
@@ -40,15 +45,15 @@ interface Routine {
4045 * var v = nanminabs( x.length, x, 1 );
4146 * // returns 1.0
4247 */
43- ( N : number , x : NumericArray , stride : number ) : number ;
48+ ( N : number , x : InputArray , strideX : number ) : number ;
4449
4550 /**
4651 * Computes the minimum absolute value of a strided array, ignoring `NaN` values and using alternative indexing semantics.
4752 *
4853 * @param N - number of indexed elements
4954 * @param x - input array
50- * @param stride - stride length
51- * @param offset - starting index
55+ * @param strideX - stride length
56+ * @param offsetX - starting index
5257 * @returns minimum absolute value
5358 *
5459 * @example
@@ -57,15 +62,15 @@ interface Routine {
5762 * var v = nanminabs.ndarray( x.length, x, 1, 0 );
5863 * // returns 1.0
5964 */
60- ndarray ( N : number , x : NumericArray , stride : number , offset : number ) : number ;
65+ ndarray ( N : number , x : InputArray , strideX : number , offsetX : number ) : number ;
6166}
6267
6368/**
6469* Computes the minimum absolute value of a strided array, ignoring `NaN` values.
6570*
6671* @param N - number of indexed elements
6772* @param x - input array
68- * @param stride - stride length
73+ * @param strideX - stride length
6974* @returns minimum absolute value
7075*
7176* @example
0 commit comments