You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -92,7 +92,7 @@ var v = dsnannsumors( 4, x1, 2, out1, 1 );
92
92
93
93
#### dsnannsumors.ndarray( N, x, strideX, offsetX, out, strideOut, offsetOut )
94
94
95
-
Computes the sum of single-precision floating-point strided array elements, ignoring `NaN` values and using ordinary recursive summation with extended accumulation and alternative indexing semantics.
95
+
Computes the sum of single-precision floating-point strided array elements, ignoring `NaN` values and using ordinary recursive summation with extended accumulation and alternative indexing semantics and returning an extended precision result.
@@ -110,7 +110,7 @@ The function has the following additional parameters:
110
110
-**offsetX**: starting index for `x`.
111
111
-**offsetOut**: starting index for `out`.
112
112
113
-
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying `buffer`, the `offset` parameter supports indexing semantics based on a starting index. For example, to calculate the sum of every other value in `x`starting from the second value
113
+
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example, to calculate the sum of every other element starting from the second element:
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
183
+
184
+
<sectionclass="intro">
185
+
186
+
</section>
187
+
188
+
<!-- /.intro -->
189
+
190
+
<!-- C usage documentation. -->
191
+
192
+
<sectionclass="usage">
193
+
194
+
### Usage
195
+
196
+
```c
197
+
#include"stdlib/blas/ext/base/dsnannsumors.h"
198
+
```
199
+
200
+
#### stdlib_strided_dsnannsumors( N, \*X, strideX, \*n )
201
+
202
+
Computes the sum of single-precision floating-point strided array elements, ignoring `NaN` values, using ordinary recursive summation with extended accumulation, and returning an extended precision result.
203
+
204
+
```c
205
+
constfloat x[] = { 1.0f, -2.0f, 0.0/0.0, 2.0f };
206
+
CBLAS_INT n = 0;
207
+
208
+
double v = stdlib_strided_dsnannsumors( 4, x, 1, &n );
209
+
// returns 1.0
210
+
```
211
+
212
+
The function accepts the following arguments:
213
+
214
+
- **N**: `[in] CBLAS_INT` number of indexed elements.
215
+
- **X**: `[in] float*` input array.
216
+
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
217
+
- **n**: `[out] CBLAS_INT*` number of non-NaN elements.
#### stdlib_strided_dsnannsumors_ndarray( N, \*X, strideX, offsetX, \*n )
224
+
225
+
Computes the sum of single-precision floating-point strided array elements, ignoring `NaN` values and using ordinary recursive summation with extended accumulation and alternative indexing semantics and returning an extended precision result.
226
+
227
+
```c
228
+
constfloat x[] = { 1.0f, -2.0f, 0.0/0.0, 2.0f };
229
+
CBLAS_INT n = 0;
230
+
231
+
double v = stdlib_strided_dsnannsumors_ndarray( 4, x, 1, 0, &n );
232
+
// returns 1.0
233
+
```
234
+
235
+
The function accepts the following arguments:
236
+
237
+
- **N**: `[in] CBLAS_INT` number of indexed elements.
238
+
- **X**: `[in] float*` input array.
239
+
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
240
+
- **offsetX**: `[in] CBLAS_INT` starting index for `X`.
241
+
- **n**: `[out] CBLAS_INT*` number of non-NaN elements.
0 commit comments