Skip to content

Commit

Permalink
chore: apply review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Oct 18, 2024
1 parent 5966fa0 commit 680efe3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/node_modules/@stdlib/blas/base/dscal-wasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ dscal.ndarray( x.length, 5.0, x, 1, 0 );
The function has the following additional parameters:

- **offsetX**: starting index for `x`.
- **offsetY**: starting index for `y`.

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 multiply every other value in `x` by a constant `alpha` starting from the second element,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Indexing is relative to the first index. To introduce an offset, use typed
array views.

If `N <= 0` the function returns `x` unchanged.
If `N <= 0`, the function returns `x` unchanged.

Parameters
----------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ setReadOnly( Routine.prototype, 'ndarray', function dscal( N, alpha, x, strideX,
// Perform computation by calling the corresponding parent method:
Module.prototype.ndarray.call( this, N, alpha, p0.ptr, p0.stride, p0.offset ); // eslint-disable-line max-len

// If the output array data had to be copied to module memory, copy the results to the provided input array...
// If the input array data had to be copied to module memory, copy the results to the provided input array...
if ( p0.copy ) {
readDataView( N, this.view, p0.stride*p0.BYTES_PER_ELEMENT, p0.ptr, x, strideX, offsetX, true ); // eslint-disable-line max-len
}
Expand Down

0 comments on commit 680efe3

Please sign in to comment.