Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
dbf7f3f
feat: ndarray-dnanminabs
Neerajpathak07 Dec 25, 2024
e562f6c
Merge branch 'develop' into ndarray-dnanminabs
Neerajpathak07 Dec 25, 2024
de94b9c
fix: typo error
Neerajpathak07 Dec 25, 2024
63b182f
fix: test errors
Neerajpathak07 Dec 25, 2024
2802bcc
fix: lint errors
Neerajpathak07 Dec 25, 2024
4c05186
fix: lint errors
Neerajpathak07 Dec 25, 2024
3d80ba3
fix: lint errors
Neerajpathak07 Dec 25, 2024
e093253
fix: CI error
Neerajpathak07 Dec 25, 2024
c888147
chore: adding bench and example files
Neerajpathak07 Jan 1, 2025
526c902
Merge branch 'develop' into ndarray-dnanminabs
Neerajpathak07 Jan 1, 2025
0b403a1
fix: repl max char error
Neerajpathak07 Jan 1, 2025
4af4661
feat: add C implementation for `stats/base/dists/uniform/mean`
0PrashantYadav0 Dec 25, 2024
05c097a
feat: add C implementation for `stats/base/dists/uniform/median`
0PrashantYadav0 Dec 25, 2024
e28e7d4
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 25, 2024
08128fb
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 25, 2024
9601139
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 25, 2024
4598d70
docs: update namespace table of contents
stdlib-bot Dec 26, 2024
975b362
docs: update REPL namespace documentation
stdlib-bot Dec 26, 2024
5d70929
docs: update namespace TypeScript declarations
stdlib-bot Dec 26, 2024
e1f9887
docs: update related packages sections
stdlib-bot Dec 26, 2024
6931015
refactor: update `stats/base/dsemyc` native addon from C++ to C
vivekmaurya001 Dec 26, 2024
71b7435
refactor: update `stats/base/dsemwd` native addon from C++ to C
vivekmaurya001 Dec 26, 2024
53447aa
refactor: update `stats/base/dsempn` native addon from C++ to C
vivekmaurya001 Dec 26, 2024
14b5e97
refactor: update `stats/base/dsemtk` native addon from C++ to C
vivekmaurya001 Dec 26, 2024
797d608
feat: add `stats/base/dists/planck/variance`
Jaysukh-409 Dec 26, 2024
6229ed5
feat: add `stats/base/dists/planck/stdev`
Jaysukh-409 Dec 26, 2024
f76e890
feat: add `stats/base/dists/planck/pmf`
Jaysukh-409 Dec 26, 2024
792fee9
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 26, 2024
d1cfeca
feat: add C implementation for `stats/base/dists/triangular/stdev`
0PrashantYadav0 Dec 26, 2024
a7ce454
feat: add C implementation for `stats/base/dists/triangular/entropy`
0PrashantYadav0 Dec 26, 2024
1eb0996
feat: add C implementation for `stats/base/dists/triangular/kurtosis`
0PrashantYadav0 Dec 26, 2024
c5edf28
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 26, 2024
e2485a6
feat: add C implementation for `stats/base/dists/laplace/kurtosis`
vivekmaurya001 Dec 26, 2024
eadde5a
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 26, 2024
17fe4c8
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 26, 2024
8e1ccac
feat: add C implementation for `stats/base/dists/laplace/skewness`
vivekmaurya001 Dec 26, 2024
d82a410
feat: add C implementation for `stats/base/dists/laplace/mode`
vivekmaurya001 Dec 26, 2024
9878123
feat: add C implementation for `stats/base/dists/laplace/stdev`
vivekmaurya001 Dec 26, 2024
e161b4f
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 26, 2024
fea7856
docs: fix example in `stats/base/smax`
aayush0325 Dec 26, 2024
507a345
docs: fix descriptions
kgryte Dec 26, 2024
e666245
docs: remove extra space
kgryte Dec 26, 2024
1a7fe3e
chore: auto-label changes to internal project tools
kgryte Dec 26, 2024
72b9af5
refactor: update implementation to handle edge cases in `eslint/rules…
headlessNode Dec 26, 2024
1ecee84
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 27, 2024
551fece
feat: add `stats/base/dists/planck/cdf`
Jaysukh-409 Dec 27, 2024
e022fa6
docs: update namespace table of contents
stdlib-bot Dec 27, 2024
bf31d81
feat: update namespace TypeScript declarations
stdlib-bot Dec 27, 2024
7385870
docs: update REPL namespace documentation
stdlib-bot Dec 27, 2024
bacb0d8
docs: update related packages sections
stdlib-bot Dec 27, 2024
bf8c097
refactor: update `stats/base/dstdev` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
0c99e23
refactor: update `stats/base/dstdevch` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
5e38d07
refactor: update `stats/base/dstdevpn` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
d688083
refactor: update `stats/base/dstdevtk` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
c08bff6
refactor: update `stats/base/dstdevwd` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
8922184
refactor: update `stats/base/dstdevyc` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
eb76a99
refactor: update `stats/base/svariancewd` native addon from C++ to C
Vinit-Pandit Dec 27, 2024
665495a
refactor: update `stats/base/svariancepn` native addon from C++ to C
Vinit-Pandit Dec 27, 2024
04cfedf
refactor: update `stats/base/svariancech` native addon from C++ to C
Vinit-Pandit Dec 27, 2024
6f1f072
refactor: update `stats/base/svarianceyc` native addon from C++ to C
Vinit-Pandit Dec 27, 2024
2efd9d8
refactor: update `stats/base/dvariance` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
af42504
refactor: update `stats/base/dnanmskmax` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
be22197
refactor: update `stats/base/dnanmskmin` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
69744a9
refactor: update `stats/base/dnanmskrange` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
042daa8
refactor: update `stats/base/dvariancech` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
6254a77
refactor: update `stats/base/dvariancepn` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
5a9da9e
docs: fix copy-paste error in source comment
Vinit-Pandit Dec 27, 2024
237f1c9
refactor: update `stats/base/dvariancetk` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
d725cac
refactor: update `stats/base/dvariancewd` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
02109fb
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 27, 2024
8196cdb
refactor: update `stats/base/dvarianceyc` native addon from C++ to C
vivekmaurya001 Dec 27, 2024
9608279
refactor: update `stats/base/dnanmeanpn` native addon from C++ to C
Neerajpathak07 Dec 27, 2024
9320a57
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 27, 2024
80b3e94
refactor: update benchmarks in `stats/base` to follow latest project …
aayush0325 Dec 27, 2024
cd1d12d
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 27, 2024
44ffc2e
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 27, 2024
923f958
feat: add C implementation for `stats/base/dists/triangular/skewness`
0PrashantYadav0 Dec 27, 2024
8ad1f24
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 27, 2024
c418c98
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 27, 2024
6d32af4
docs: update namespace table of contents
stdlib-bot Dec 28, 2024
1c4bb63
docs: update related packages sections
stdlib-bot Dec 28, 2024
9c9b73e
docs: update REPL namespace documentation
stdlib-bot Dec 28, 2024
d9a69bd
docs: update namespace TypeScript declaration comments
stdlib-bot Dec 28, 2024
62e2309
feat: add `_tools/eslint/rules/line-closing-bracket-spacing`
headlessNode Dec 28, 2024
ad4db00
fix: handle edge cases in `_tools/eslint/rules/eol-open-bracket-spaci…
headlessNode Dec 28, 2024
b4a5bcb
fix: address off-by-one index bug
kgryte Dec 28, 2024
664c770
docs: fix missing annotation
kgryte Dec 28, 2024
413786d
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 28, 2024
190a2e1
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 28, 2024
4f57e63
feat: add C implementation for `stats/base/dists/geometric/pmf`
0PrashantYadav0 Dec 28, 2024
3e258e4
chore: add missing `@private` in benchmarks of `stats/base/*`
aayush0325 Dec 28, 2024
160d6da
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 28, 2024
743fb1f
feat: add C implementation for `stats/base/dists/bernoulli/entropy`
vivekmaurya001 Dec 28, 2024
97b50ac
feat: add C implementation for `stats/base/dists/cauchy/mode`
vivekmaurya001 Dec 28, 2024
775362c
docs: fix C examples in `blas/ext/base/dsumkbn`
headlessNode Dec 28, 2024
19abf6f
docs: update copy
kgryte Dec 28, 2024
3a0cbbd
test: add test case
kgryte Dec 29, 2024
f144276
temp: disable lint rule until edge cases are addressed
kgryte Dec 29, 2024
2d6182c
fix: treat generic accessor arrays similar to built-in generic arrays
kgryte Dec 29, 2024
09c0390
feat: add C implementation for `stats/base/dists/normal/entropy`
manvith2003 Dec 29, 2024
4a13d1b
feat: add C implementation of `stats/base/dists/rayleigh/logpdf`
Vinit-Pandit Dec 29, 2024
4bc7644
feat: add C implementation for `stats/base/dists/beta/mean`
vivekmaurya001 Dec 29, 2024
addb8bf
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 29, 2024
28060c0
feat: add C implementation for `stats/base/dists/exponential/logcdf`
0PrashantYadav0 Dec 29, 2024
f1f5218
docs: update related packages sections
stdlib-bot Dec 29, 2024
26363a4
feat: add C implementation for `stats/base/dists/t/mode`
AadishJ Dec 29, 2024
edafe14
docs: update REPL namespace documentation
stdlib-bot Dec 29, 2024
c9b2771
docs: update namespace table of contents
stdlib-bot Dec 29, 2024
ffadfb4
docs: update namespace TypeScript declaration comments
stdlib-bot Dec 29, 2024
fe7284c
feat: add C implementation of `stats/base/dists/weibull/logcdf`
Vinit-Pandit Dec 29, 2024
d5920af
feat: add C implementation of `stats/base/dists/weibull/cdf`
Vinit-Pandit Dec 29, 2024
95e21db
fix: add missing boolean array support
kgryte Dec 29, 2024
494bb67
feat: add C implementation of `stats/base/dists/weibull/median`
Vinit-Pandit Dec 29, 2024
7afcb1d
chore: add Git note
Planeshifter Dec 29, 2024
b01b766
chore: minor clean-up
Planeshifter Dec 29, 2024
e493580
feat: add C implementation of `stats/base/dists/weibull/pdf`
Vinit-Pandit Dec 29, 2024
fdfa62f
feat: add C implementation of `stats/base/dists/weibull/logpdf`
Vinit-Pandit Dec 29, 2024
e4eb112
docs: fix parameter descriptions in Weibull distribution packages
Planeshifter Dec 29, 2024
c931f42
feat: add ndarray dtype maps and index types
kgryte Dec 29, 2024
51f3038
docs: fix parameter descriptions in Weibull distribution packages
Planeshifter Dec 29, 2024
3d309fd
feat: add `ndarray/index`
kgryte Dec 29, 2024
f7abb12
feat: add index types and reduce duplication
kgryte Dec 29, 2024
bf1f2f9
feat: add types for static methods
kgryte Dec 29, 2024
5ce1990
feat: add `ndindex` to namespace
kgryte Dec 29, 2024
ec7932d
feat: add `forEach` to namespace
kgryte Dec 29, 2024
fed6292
feat: add `ndarray2fancy` to namespace
kgryte Dec 29, 2024
3b8468b
feat: add constants to namespace
kgryte Dec 29, 2024
d1915b0
feat: add ndarray APIs and float32 constants to namespace
kgryte Dec 29, 2024
7d8ae9b
docs: fix missing option description
kgryte Dec 29, 2024
58be630
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 29, 2024
92440f8
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 29, 2024
3df5545
feat: add C implementation for `stats/base/dists/f/stdev`
vivekmaurya001 Dec 29, 2024
e6573dd
feat: add C ndarray interface and refactor implementation for `stats/…
aayush0325 Dec 29, 2024
ecb2a4d
feat: add C implementation for `stats/base/dists/triangular/mgf`
0PrashantYadav0 Dec 29, 2024
14ea7de
style: resolve lint error
kgryte Dec 29, 2024
4502221
docs: document exceptions
kgryte Dec 30, 2024
226f231
fix: provide missing argument to function
kgryte Dec 30, 2024
8da375e
refactor: use assertion utility
kgryte Dec 30, 2024
1e04628
feat: add `ndarray/base/from-scalar-like`
kgryte Dec 30, 2024
31c099f
feat: add `scalar2ndarrayLike` to namespace
kgryte Dec 30, 2024
2666e08
refactor: add specialized handling for displaying ndarrays
kgryte Dec 31, 2024
4451fc0
build: handle Makefiles and gyp files in script adding trailing newlines
Planeshifter Dec 30, 2024
c8aba09
feat: update namespace TypeScript declarations
stdlib-bot Dec 30, 2024
9970b02
docs: update REPL namespace documentation
stdlib-bot Dec 30, 2024
0971c02
docs: update namespace table of contents
stdlib-bot Dec 30, 2024
09de4bc
docs: update related packages sections
stdlib-bot Dec 30, 2024
6a7cf74
feat: add support for specifying an array index cache and add support…
kgryte Dec 31, 2024
6b31268
docs: update related packages sections
stdlib-bot Dec 31, 2024
7011ae3
refactor: update `stats/base/sdsmean` native addon from C++ to C
vivekmaurya001 Dec 31, 2024
8070341
refactor: update `stats/base/dvarm` native addon from C++ to C
vivekmaurya001 Dec 31, 2024
4aab8fb
docs: update namespace table of contents
stdlib-bot Jan 1, 2025
25ff77b
feat: update namespace TypeScript declarations
stdlib-bot Jan 1, 2025
d423f09
docs: update related packages sections
stdlib-bot Jan 1, 2025
957a0d0
docs: update REPL namespace documentation
stdlib-bot Jan 1, 2025
787e5be
build(deps): bump actions/upload-artifact from 4.4.3 to 4.5.0
dependabot[bot] Jan 1, 2025
43adb58
build(deps): bump peter-evans/create-pull-request from 7.0.5 to 7.0.6
dependabot[bot] Jan 1, 2025
54712f8
build(deps): bump msys2/setup-msys2 from 2.25.0 to 2.26.0
dependabot[bot] Jan 1, 2025
a20882d
chore: clean up
Neerajpathak07 Jan 1, 2025
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
32 changes: 8 additions & 24 deletions lib/node_modules/@stdlib/stats/base/dnanminabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var Float64Array = require( '@stdlib/array/float64' );

var x = new Float64Array( [ 1.0, 2.0, -7.0, -2.0, 4.0, 3.0, NaN, NaN ] );

var v = dnanminabs( 4, x, 2 );
var v = dnanminabs( 5, x, 2 );
// returns 1.0
```

Expand All @@ -76,7 +76,7 @@ var Float64Array = require( '@stdlib/array/float64' );
var x0 = new Float64Array( [ 2.0, 1.0, -2.0, -2.0, 3.0, 4.0, NaN, NaN ] );
var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element

var v = dnanminabs( 4, x1, 2 );
var v = dnanminabs( 5, x1, 2 );
// returns 1.0
```

Expand Down Expand Up @@ -104,7 +104,7 @@ var Float64Array = require( '@stdlib/array/float64' );

var x = new Float64Array( [ 2.0, 1.0, -2.0, -2.0, 3.0, 4.0, NaN, NaN ] );

var v = dnanminabs.ndarray( 4, x, 2, 1 );
var v = dnanminabs.ndarray( 5, x, 2, 1 );
// returns 1.0
```

Expand Down Expand Up @@ -155,22 +155,6 @@ console.log( v );

<!-- /.examples -->

<!-- C interface documentation. -->

* * *

<section class="c">

## C APIs

<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->

<section class="intro">

</section>

<!-- /.intro -->

<!-- C usage documentation. -->

<section class="usage">
Expand All @@ -183,12 +167,12 @@ console.log( v );

#### stdlib_strided_dnanminabs( N, \*X, strideX )

Calculate the minimum absolute value of a double-precision floating-point strided array, ignoring `NaN` values.
Computes the minimum absolute value of a double-precision floating-point strided array `x`, ignoring `NaN` values.

```c
const double x[] = { 1.0, -2.0, 0.0 / 0.0, -4.0 };
const double x[] = { 1.0, -2.0, -3.0, 4.0, -5.0, -6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };

double v = stdlib_strided_dnanminabs( 4, x, 1 );
double v = stdlib_strided_dnanminabs( 5, x, 2 );
// returns 1.0
```

Expand All @@ -207,9 +191,9 @@ double stdlib_strided_dnanminabs( const CBLAS_INT N, const double *X, const CBLA
Computes the minimum absolute value of a double-precision floating-point strided array, ignoring `NaN` values and using alternative indexing semantics.

```c
const double x[] = { 1.0, -2.0, 0.0 / 0.0, -4.0 };
const double x[] = { 1.0, -2.0, -3.0, 4.0, -5.0, -6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };

double v = stdlib_strided_dnanminabs_ndarray( 4, x, 1, 0 );
double v = stdlib_strided_dnanminabs_ndarray( 5, x, 2, 1 );
// returns 1.0
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/base/uniform' );
var bernoulli = require( '@stdlib/random/base/bernoulli' );
var filledarrayBy = require( '@stdlib/array/filled-by' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var uniform = require( '@stdlib/random/base/uniform' );

Check failure on line 28 in lib/node_modules/@stdlib/stats/base/dnanminabs/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

uniform is already defined
var bernoulli = require( '@stdlib/random/base/bernoulli' );

Check failure on line 29 in lib/node_modules/@stdlib/stats/base/dnanminabs/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

bernoulli is already defined
var filledarrayBy = require( '@stdlib/array/filled-by' );

Check failure on line 30 in lib/node_modules/@stdlib/stats/base/dnanminabs/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

filledarrayBy is already defined
var pow = require( '@stdlib/math/base/special/pow' );
var pkg = require( './../package.json' ).name;
var dnanminabs = require( './../lib/dnanminabs.js' );
Expand All @@ -35,8 +38,7 @@
/**
* Returns a random value or `NaN`.
*
* @private
* @returns {number} random number or `NaN`
* @returns {number} Random number or `NaN`
*/
function rand() {
if ( bernoulli( 0.2 ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ var opts = {
/**
* Returns a random value or `NaN`.
*
* @private
* @returns {number} random number or `NaN`
* @returns {number} Random number or `NaN`
*/
function rand() {
if ( bernoulli( 0.2 ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/base/uniform' );
var bernoulli = require( '@stdlib/random/base/bernoulli' );
var filledarrayBy = require( '@stdlib/array/filled-by' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var uniform = require( '@stdlib/random/base/uniform' );
var bernoulli = require( '@stdlib/random/base/bernoulli' );
Expand All @@ -35,8 +38,7 @@ var dnanminabs = require( './../lib/ndarray.js' );
/**
* Returns a random value or `NaN`.
*
* @private
* @returns {number} random number or `NaN`
* @returns {number} Random number or `NaN`
*/
function rand() {
if ( bernoulli( 0.2 ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ var opts = {
/**
* Returns a random value or `NaN`.
*
* @private
* @returns {number} random number or `NaN`
* @returns {number} Random number or `NaN`
*/
function rand() {
if ( bernoulli( 0.2 ) ) {
Expand Down
13 changes: 7 additions & 6 deletions lib/node_modules/@stdlib/stats/base/dnanminabs/docs/repl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Computes the minimum absolute value of a double-precision floating-point
strided array, ignoring `NaN` values.

The `N` and stride parameters determine which elements in the strided array
are accessed at runtime.
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.
Expand All @@ -20,7 +20,7 @@
Input array.

strideX: integer
Stride Length.
Stride length.

Returns
-------
Expand All @@ -42,7 +42,7 @@
// Using view offsets:
> var x0 = new {{alias:@stdlib/array/float64}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN ] );
> var x1 = new {{alias:@stdlib/array/float64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
> {{alias}}( 3, x1, 2 )
> {{alias}}( 3, x1,2 )
1.0


Expand All @@ -52,7 +52,7 @@
semantics.

While typed array views mandate a view offset based on the underlying
buffer, the `offset` parameter supports indexing semantics based on a
buffer, the offset parameter supports indexing semantics based on a
starting index.

Parameters
Expand All @@ -64,7 +64,7 @@
Input array.

strideX: integer
Stride Length.
Stride length.

offsetX: integer
Starting index.
Expand All @@ -83,6 +83,7 @@

// Using offset parameter:
> var x = new {{alias:@stdlib/array/float64}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0, NaN ] );
> var N = {{alias:@stdlib/math/base/special/floor}}( x.length / 2 );
> {{alias}}.ndarray( 3, x, 2, 1 )
1.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ interface Routine {
* var v = dnanminabs.ndarray( x.length, x, 1, 0 );
* // returns 1.0
*/
ndarray( N: number, x: Float64Array, strideX: number, offsetX: number ): number;
ndarray( N: number, x: Float64Array, strideX: number, offset: number ): number;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extern "C" {
#endif

/**
* Computes the minimum absolute value of a double-precision floating-point strided array, ignoring `NaN` values.
* Computes the minimum absolute value of a double-precision floating-point strided array `x`, ignoring `NaN` values.
*/
double API_SUFFIX(stdlib_strided_dnanminabs)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ var abs = require( '@stdlib/math/base/special/abs' );
*
* @example
* var Float64Array = require( '@stdlib/array/float64' );
* var floor = require( '@stdlib/math/base/special/floor' );
*
* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN, NaN ] );
*
Expand Down
21 changes: 12 additions & 9 deletions lib/node_modules/@stdlib/stats/base/dnanminabs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/blas/base/shared",
"@stdlib/strided/base/stride2offset",
"@stdlib/math/base/special/abs",
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/blas/base/shared",
Expand All @@ -61,10 +64,10 @@
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/blas/base/shared",
"@stdlib/strided/base/stride2offset"
"@stdlib/strided/base/stride2offset",
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs"
]
},
{
Expand All @@ -79,10 +82,10 @@
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/blas/base/shared",
"@stdlib/strided/base/stride2offset"
"@stdlib/strided/base/stride2offset",
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs"
]
},
{
Expand All @@ -97,10 +100,10 @@
"libraries": [],
"libpath": [],
"dependencies": [
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs",
"@stdlib/blas/base/shared",
"@stdlib/strided/base/stride2offset"
"@stdlib/strided/base/stride2offset",
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/special/abs"
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/base/dnanminabs/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "stdlib/strided/base/stride2offset.h"

/**
* Computes the minimum absolute value of a double-precision floating-point strided array, ignoring `NaN` values.
* Computes the minimum absolute value of a double-precision floating-point strided array `x`, ignoring `NaN` values.
*
* @param N number of indexed elements
* @param X input array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ tape( 'the function supports an `offset` parameter', opts, function test( t ) {
]);

v = dnanminabs( 5, x, 2, 1 );
t.strictEqual( v, 1.0, 'returns expected value' );
t.strictEqual( v, 2.0, 'returns expected value' );

t.end();
});
Loading