Skip to content

Commit 146eb38

Browse files
committed
fix: apply review suggestions
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: passed - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: passed - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 096af9e commit 146eb38

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/blas/ext/base/gcusumpw/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 ];
@@ -146,7 +146,7 @@ var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
146146
var Float64Array = require( '@stdlib/array/float64' );
147147
var gcusumpw = require( '@stdlib/blas/ext/base/gcusumpw' );
148148

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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
summation and alternative indexing semantics.
6767

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

7272
Parameters
@@ -106,13 +106,13 @@
106106
> var x = [ 1.0, -2.0, 2.0 ];
107107
> var y = [ 0.0, 0.0, 0.0 ];
108108
> {{alias}}.ndarray( x.length, 0.0, x, 1, 0, y, 1, 0 )
109-
<Float64Array>[ 1.0, -1.0, 1.0 ]
109+
[ 1.0, -1.0, 1.0 ]
110110

111111
// Advanced indexing:
112112
> x = [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0 ];
113113
> y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
114114
> {{alias}}.ndarray( 3, 0.0, x, 2, 1, y, -1, y.length-1 )
115-
<Float64Array>[ 0.0, 0.0, 0.0, -1.0, 0.0, -2.0 ]
115+
[ 0.0, 0.0, 0.0, -1.0, 0.0, -2.0 ]
116116

117117
See Also
118118
--------

lib/node_modules/@stdlib/blas/ext/base/gcusumpw/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 gcusumpw = 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)