Skip to content

Commit 3dd9675

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent 4452ea1 commit 3dd9675

File tree

1 file changed

+5
-3
lines changed
  • lib/node_modules/@stdlib/blas/base/zdotu

1 file changed

+5
-3
lines changed

lib/node_modules/@stdlib/blas/base/zdotu/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The function has the following parameters:
7373
- **y**: input [`Complex128Array`][@stdlib/array/complex128].
7474
- **strideY**: stride kength for `y`.
7575

76-
The `N` and strides parameters determine which elements in the strided arrays are accessed at runtime. For example, to calculate the dot product of every other value in `x` and the first `N` elements of `y` in reverse order,
76+
The `N` and stride parameters determine which elements in the strided arrays are accessed at runtime. For example, to calculate the dot product of every other element in `x` and the first `N` elements of `y` in reverse order,
7777

7878
```javascript
7979
var Complex128Array = require( '@stdlib/array/complex128' );
@@ -123,13 +123,15 @@ The function has the following additional parameters:
123123
- **offsetX**: starting index for `x`.
124124
- **offsetY**: starting index for `y`.
125125

126-
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example, to calculate the dot product of every other value in `x` starting from the second value with the last 2 elements in `y` in reverse order
126+
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example, to calculate the dot product of every other element in `x` starting from the second element with the last 2 elements in `y` in reverse order
127+
128+
<!-- eslint-disable max-len -->
127129

128130
```javascript
129131
var Complex128Array = require( '@stdlib/array/complex128' );
130132

131133
var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
132-
var y = new Complex128Array( [ 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); // eslint-disable-line max-len
134+
var y = new Complex128Array( [ 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] );
133135

134136
var z = zdotu.ndarray( 2, x, 2, 1, y, -1, y.length-1 );
135137
// returns <Complex128>[ -40.0, 310.0 ]

0 commit comments

Comments
 (0)