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 absolute values ([_L1_ norm][l1norm]) every other element in `x`,
74
+
The `N` and `stride` parameters determine which elements in the strided array are accessed at runtime. For example, to compute the sum of absolute values ([_L1_ norm][l1norm]) every other element in the strided array,
var x =newFloat64Array( [ 1.0, -2.0, NaN, 2.0 ] );
112
-
varN=x.length;
113
107
114
-
var v =dnanasum.ndarray( N, x, 1, 0 );
108
+
var v =dnanasum.ndarray( 4, x, 1, 0 );
115
109
// returns 5.0
116
110
```
117
111
118
112
The function has the following additional parameters:
119
113
120
114
-**offset**: starting index for `x`.
121
115
122
-
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 absolute values ([_L1_ norm][l1norm]) every other value in `x` starting from the second value
116
+
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 absolute values ([_L1_ norm][l1norm]) 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/dnanasum/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