Skip to content

Commit 9aa89ec

Browse files
fix: CI error
1 parent 30b1229 commit 9aa89ec

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/node_modules/@stdlib/stats/base/dsnanmeanpn/lib/ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*
4444
* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN ] );
4545
*
46-
* var v = dsnanmean( 4, x, 2, 1 );
46+
* var v = dsnanmeanpn( 4, x, 2, 1 );
4747
* // returns 1.25
4848
*/
4949
function dsnanmeanpn( N, x, strideX, offsetX ) {

lib/node_modules/@stdlib/stats/base/dsnanmeanpn/lib/ndarray.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var addon = require( './../src/addon.node' );
3939
*
4040
* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0, NaN ] );
4141
*
42-
* var v = dsnanmean( 4, x, 2, 1 );
42+
* var v = dsnanmeanpn( 4, x, 2, 1 );
4343
* // returns 1.25
4444
*/
4545
function dsnanmeanpn( N, x, strideX, offsetX ) {

lib/node_modules/@stdlib/stats/base/dsnanmeanpn/src/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ double API_SUFFIX(stdlib_strided_dsnanmeanpn_ndarray)( const CBLAS_INT N, const
5555
CBLAS_INT ix;
5656
CBLAS_INT i;
5757
CBLAS_INT n;
58-
CBLAS_INT o;
5958
double dn;
6059
double s;
6160
double t;
@@ -87,8 +86,8 @@ double API_SUFFIX(stdlib_strided_dsnanmeanpn_ndarray)( const CBLAS_INT N, const
8786
s /= dn;
8887

8988
// Compute an error term...
89+
ix = offsetX;
9090
t = 0.0;
91-
ix = o;
9291
for ( i = 0; i < N; i++ ) {
9392
v = (double)X[ ix ];
9493
if ( v == v ) {

0 commit comments

Comments
 (0)