Skip to content

Commit d3f5387

Browse files
chore: markdown clean up
1 parent d0f12a0 commit d3f5387

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Computes the arithmetic mean of a single-precision floating-point strided array
180180
const float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f };
181181

182182
double v = stdlib_strided_dsmeanpw( 4, x, 2 );
183-
// returns 1.25
183+
// returns 4.0
184184
```
185185
186186
The function accepts the following arguments:
@@ -201,7 +201,7 @@ Computes the arithmetic mean of a single-precision floating-point strided array
201201
const float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f };
202202

203203
double v = stdlib_strided_dsmeanpw_ndarray( 4, x, 2, 0 );
204-
// returns 1.25
204+
// returns 4.0
205205
```
206206
207207
The function accepts the following arguments:

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "stdlib/blas/ext/base/dssum.h"
2121
#include "stdlib/blas/base/shared.h"
2222
#include "stdlib/strided/base/stride2offset.h"
23-
#include <stdint.h>
2423

2524
/**
2625
* Computes the arithmetic mean of a single-precision floating-point strided array `x` using pairwise summation with extended accumulation and returning an extended precision result.
@@ -51,5 +50,5 @@ double API_SUFFIX(stdlib_strided_dsmeanpw_ndarray)( const CBLAS_INT N, const flo
5150
if ( N == 1 || strideX == 0 ) {
5251
return X[ offsetX ];
5352
}
54-
return stdlib_strided_dssum( N, X, strideX ) / (double)N;
53+
return stdlib_strided_dssum_ndarray( N, X, strideX, offsetX ) / (double)N;
5554
}

0 commit comments

Comments
 (0)