Skip to content

Commit 2564208

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent ae07170 commit 2564208

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/blas/ext/base/gcusumkbn/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ The function has the following additional parameters:
109109
- **offsetX**: starting index for `x`.
110110
- **offsetY**: starting index for `y`.
111111

112-
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, offsetX and offsetY parameters support indexing semantics based on starting indices. For example, to calculate the cumulative sum of every other element in the strided input array starting from the second element and to store in the last `N` elements of the strided output array starting from the last element:
112+
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, offset parameters support indexing semantics based on starting indices. For example, to calculate the cumulative sum of every other element in the strided input array starting from the second element and to store in the last `N` elements of the strided output array starting from the last element:
113113

114114
```javascript
115115
var x = [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ];
@@ -145,7 +145,7 @@ var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
145145
var Float64Array = require( '@stdlib/array/float64' );
146146
var gcusumkbn = require( '@stdlib/blas/ext/base/gcusumkbn' );
147147

148-
var x = discreteUniform( 10.0, -100, 100, {
148+
var x = discreteUniform( 10, -100, 100, {
149149
'dtype': 'float64'
150150
});
151151
var y = new Float64Array( x.length );

lib/node_modules/@stdlib/blas/ext/base/gcusumkbn/docs/repl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
Kahan–Babuška algorithm and alternative indexing semantics.
6767

6868
While typed array views mandate a view offset based on the underlying
69-
buffer, the offset parameter support indexing semantics based on starting
69+
buffer, the offset parameters support indexing semantics based on starting
7070
indices.
7171

7272
Parameters

lib/node_modules/@stdlib/blas/ext/base/gcusumkbn/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2222
var Float64Array = require( '@stdlib/array/float64' );
2323
var gcusumkbn = require( './../lib' );
2424

25-
var x = discreteUniform( 10.0, -100, 100, {
25+
var x = discreteUniform( 10, -100, 100, {
2626
'dtype': 'float64'
2727
});
2828
var y = new Float64Array( x.length );

0 commit comments

Comments
 (0)