Skip to content

Commit 3c28799

Browse files
chore: minor clean up
1 parent 45b9c1d commit 3c28799

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/node_modules/@stdlib/stats/base/dsnanmeanors/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The function has the following parameters:
6868

6969
- **N**: number of indexed elements.
7070
- **x**: input [`Float32Array`][@stdlib/array/float32].
71-
- **strideX**: index increment for `x`.
71+
- **strideX**: stride length for `x`.
7272

7373
The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to compute the [arithmetic mean][arithmetic-mean] of every other element in `x`,
7474

lib/node_modules/@stdlib/stats/base/dsnanmeanors/src/addon.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include "stdlib/napi/argv_int64.h"
2323
#include "stdlib/napi/argv_strided_float32array.h"
2424
#include "stdlib/napi/create_double.h"
25-
#include <node_api.h>
2625

2726
/**
2827
* Receives JavaScript callback invocation data.
@@ -36,7 +35,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
3635
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
3736
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
3837
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 1 );
39-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_strided_dsnanmeanors( N, X, strideX ), v );
38+
STDLIB_NAPI_CREATE_DOUBLE( env, API_SUFFIX( stdlib_strided_dsnanmeanors )( N, X, strideX ), v );
4039
return v;
4140
}
4241

@@ -53,7 +52,7 @@ static napi_value addon_method( napi_env env, napi_callback_info info ) {
5352
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
5453
STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 3 );
5554
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 1 );
56-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_strided_dsnanmeanors_ndarray( N, X, strideX, offsetX ), v );
55+
STDLIB_NAPI_CREATE_DOUBLE( env, API_SUFFIX( stdlib_strided_dsnanmeanors_ndarray )( N, X, strideX, offsetX ), v );
5756
return v;
5857
}
5958

0 commit comments

Comments
 (0)