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
The `N` and `stride` parameters determine which elements in `x`are accessed at runtime. For example, to compute the sum of every other element in `x`,
59
+
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 the strided array,
var x =newFloat64Array( [ 1.0, -2.0, NaN, 2.0 ] );
97
-
varN=x.length;
98
92
99
-
var v =dnansum.ndarray( N, x, 1, 0 );
93
+
var v =dnansum.ndarray( 4, x, 1, 0 );
100
94
// returns 1.0
101
95
```
102
96
103
97
The function has the following additional parameters:
104
98
105
99
-**offset**: starting index for `x`.
106
100
107
-
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
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 the strided array starting from the second value
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/blas/ext/base/dnansum/include.gypi
+1-1
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@
36
36
37
37
# Source files:
38
38
'src_files': [
39
-
'<(src_dir)/addon.cpp',
39
+
'<(src_dir)/addon.c',
40
40
'<!@(node -e "var arr = require(\'@stdlib/utils/library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).src; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")',
0 commit comments