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 access 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 access every other element in `x`,
var x1 =newFloat32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
82
79
83
-
varN=floor( x0.length/2 );
84
-
85
-
var v =sapxsum( N, 5.0, x1, 2 );
80
+
var v =sapxsum( 4, 5.0, x1, 2 );
86
81
// returns 25.0
87
82
```
88
83
@@ -104,16 +99,14 @@ The function has the following additional parameters:
104
99
105
100
-**offset**: starting index for `x`.
106
101
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 access every other value in `x` starting from the second value
102
+
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 access every other value in `x` starting from the second value
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/blas/ext/base/sapxsum/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