Skip to content

Commit c361802

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent 469533d commit c361802

8 files changed

Lines changed: 18 additions & 18 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License.
2020

2121
# dzasum
2222

23-
> Compute the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point vector.
23+
> Compute the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point strided array.
2424
2525
<section class="usage">
2626

@@ -32,7 +32,7 @@ var dzasum = require( '@stdlib/blas/base/dzasum' );
3232

3333
#### dzasum( N, x, strideX )
3434

35-
Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point vector.
35+
Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point strided array.
3636

3737
```javascript
3838
var Complex128Array = require( '@stdlib/array/complex128' );
@@ -47,7 +47,7 @@ The function has the following parameters:
4747

4848
- **N**: number of indexed elements.
4949
- **x**: input [`Complex128Array`][@stdlib/array/complex128].
50-
- **strideX**: index increment for `x`.
50+
- **strideX**: stride length.
5151

5252
The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to traverse every other value,
5353

@@ -78,7 +78,7 @@ var out = dzasum( 2, x1, 1 );
7878

7979
#### dzasum.ndarray( N, x, strideX, offsetX )
8080

81-
Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point vector using alternative indexing semantics.
81+
Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point strided array using alternative indexing semantics.
8282

8383
```javascript
8484
var Complex128Array = require( '@stdlib/array/complex128' );

lib/node_modules/@stdlib/blas/base/dzasum/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{{alias}}( N, x, strideX )
33
Computes the sum of the absolute values of the real and imaginary components
4-
of a double-precision complex floating-point vector.
4+
of a double-precision complex floating-point strided array.
55

66
The `N` and stride parameters determine which elements in the strided array
77
are accessed at runtime.
@@ -48,7 +48,7 @@
4848

4949
{{alias}}.ndarray( N, x, strideX, offsetX )
5050
Computes the sum of the absolute values of the real and imaginary components
51-
of a double-precision complex floating-point vector using alternative
51+
of a double-precision complex floating-point strided array using alternative
5252
indexing semantics.
5353

5454
While typed array views mandate a view offset based on the underlying

lib/node_modules/@stdlib/blas/base/dzasum/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Complex128Array } from '@stdlib/types/array';
2727
*/
2828
interface Routine {
2929
/**
30-
* Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point vector.
30+
* Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point strided array.
3131
*
3232
* @param N - number of indexed elements
3333
* @param x - input array
@@ -45,7 +45,7 @@ interface Routine {
4545
( N: number, x: Complex128Array, strideX: number ): number;
4646

4747
/**
48-
* Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point vector using alternative indexing semantics.
48+
* Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point strided array using alternative indexing semantics.
4949
*
5050
* @param N - number of indexed elements
5151
* @param x - input array
@@ -65,7 +65,7 @@ interface Routine {
6565
}
6666

6767
/**
68-
* Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point vector.
68+
* Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point strided array.
6969
*
7070
* @param N - number of indexed elements
7171
* @param x - input array

lib/node_modules/@stdlib/blas/base/dzasum/lib/dzasum.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ var ndarray = require( './ndarray.js' );
2727
// MAIN //
2828

2929
/**
30-
* Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point vector.
30+
* Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point strided array.
3131
*
3232
* @param {PositiveInteger} N - number of indexed elements
3333
* @param {Complex128Array} x - input array
34-
* @param {integer} strideX - `x` stride length
34+
* @param {integer} strideX - stride length
3535
* @returns {number} result
3636
*
3737
* @example

lib/node_modules/@stdlib/blas/base/dzasum/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'use strict';
2020

2121
/**
22-
* BLAS level 1 routine to compute the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point vector.
22+
* BLAS level 1 routine to compute the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point strided array.
2323
*
2424
* @module @stdlib/blas/base/dzasum
2525
*

lib/node_modules/@stdlib/blas/base/dzasum/lib/ndarray.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' );
2727
// MAIN //
2828

2929
/**
30-
* Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point vector.
30+
* Computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point strided array.
3131
*
3232
* @param {PositiveInteger} N - number of indexed elements
3333
* @param {Complex128Array} x - input array
34-
* @param {integer} strideX - `x` stride length
35-
* @param {NonNegativeInteger} offsetX - starting index for `x`
34+
* @param {integer} strideX - stride length
35+
* @param {NonNegativeInteger} offsetX - starting index
3636
* @returns {number} result
3737
*
3838
* @example

lib/node_modules/@stdlib/blas/base/dzasum/test/test.dzasum.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ tape( 'the function has an arity of 3', function test( t ) {
6565
t.end();
6666
});
6767

68-
tape( 'the function computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point vector', function test( t ) {
68+
tape( 'the function computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point strided array', function test( t ) {
6969
var expected;
7070
var actual;
7171
var x;
@@ -177,7 +177,7 @@ tape( 'the function supports specifying a negative stride', function test( t ) {
177177
0.5, // 2
178178
0.0, // 2
179179
6.0, // 1
180-
9.0 // 1
180+
9.0 // 1
181181
]);
182182
expected = 28.9;
183183

lib/node_modules/@stdlib/blas/base/dzasum/test/test.ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ tape( 'the function has an arity of 4', function test( t ) {
6565
t.end();
6666
});
6767

68-
tape( 'the function computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point vector', function test( t ) {
68+
tape( 'the function computes the sum of the absolute values of the real and imaginary components of a double-precision complex floating-point strided array', function test( t ) {
6969
var expected;
7070
var actual;
7171
var x;

0 commit comments

Comments
 (0)