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
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/blas/ext/base/dsnansumors/README.md
+126-9Lines changed: 126 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,27 +36,26 @@ limitations under the License.
36
36
var dsnansumors =require( '@stdlib/blas/ext/base/dsnansumors' );
37
37
```
38
38
39
-
#### dsnansumors( N, x, stride )
39
+
#### dsnansumors( N, x, strideX )
40
40
41
41
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.
The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to compute the sum of every other element in `x`,
58
+
The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to compute the sum of every other element:
@@ -81,7 +80,7 @@ var v = dsnansumors( 4, x1, 2 );
81
80
// returns 5.0
82
81
```
83
82
84
-
#### dsnansumors.ndarray( N, x, stride, offset )
83
+
#### dsnansumors.ndarray( N, x, strideX, offsetX )
85
84
86
85
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.
87
86
@@ -90,15 +89,15 @@ var Float32Array = require( '@stdlib/array/float32' );
90
89
91
90
var x =newFloat32Array( [ 1.0, -2.0, NaN, 2.0 ] );
92
91
93
-
var v =dsnansumors.ndarray( 4, x, 1, 0 );
92
+
var v =dsnansumors.ndarray( x.length, x, 1, 0 );
94
93
// returns 1.0
95
94
```
96
95
97
96
The function has the following additional parameters:
98
97
99
-
-**offset**: starting index for `x`.
98
+
-**offsetX**: starting index for `x`.
100
99
101
-
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
100
+
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 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. -->
165
+
166
+
<sectionclass="intro">
167
+
168
+
</section>
169
+
170
+
<!-- /.intro -->
171
+
172
+
<!-- C usage documentation. -->
173
+
174
+
<sectionclass="usage">
175
+
176
+
### Usage
177
+
178
+
```c
179
+
#include"stdlib/blas/ext/base/dsnansumors.h"
180
+
```
181
+
182
+
#### stdlib_strided_dsnansumors( N, \*X, strideX )
183
+
184
+
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.
#### stdlib_strided_dsnansumors_ndarray( N, \*X, strideX, offsetX )
204
+
205
+
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.
0 commit comments