You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/blas/base/dzasum/README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ limitations under the License.
20
20
21
21
# dzasum
22
22
23
-
> Compute the sum of the [absolute values][@stdlib/blas/base/dcab1] of each element in a double-precision [complex][@stdlib/complex/float64/ctor] floating-point vector.
23
+
> Computes the sum of the [absolute values][@stdlib/blas/base/dcabs1] of each element.
24
24
25
25
<sectionclass="intro">
26
26
@@ -51,9 +51,9 @@ dzasum is defined as
51
51
var dzasum =require( '@stdlib/blas/base/dzasum' );
52
52
```
53
53
54
-
#### dzasum( N, x, stride )
54
+
#### dzasum( N, x, strideX )
55
55
56
-
Compute the sum of the [absolute values][@stdlib/blas/base/dcab1] of each element in a double-precision [complex][@stdlib/complex/float64/ctor] floating-point vector.
56
+
Compute the sum of the [absolute values][@stdlib/blas/base/dcabs1] of each element in a double-precision [complex][@stdlib/complex/float64/ctor] floating-point vector.
57
57
58
58
```javascript
59
59
var Complex128Array =require( '@stdlib/array/complex128' );
@@ -68,9 +68,9 @@ The function has the following parameters:
The `N` and `stride` parameters determine which elements in `x` are used to compute the sum. For example, to sum every other value,
73
+
The `N` and `strideX` parameters determine which elements in `x` are used to compute the sum. For example, to sum every other value,
74
74
75
75
```javascript
76
76
var Complex128Array =require( '@stdlib/array/complex128' );
@@ -97,11 +97,9 @@ var sum = dzasum( 2, x1, 2 );
97
97
// returns 22.0
98
98
```
99
99
100
-
If `N` is less than or equal to `0`, the function returns `0`.
100
+
#### dzasum.ndarray( N, x, strideX, offsetX )
101
101
102
-
#### dzasum.ndarray( N, x, stride, offset )
103
-
104
-
Compute the sum of the [absolute values][@stdlib/blas/base/dcab1] of each element in a double-precision [complex][@stdlib/complex/float64/ctor] floating-point vector using alternative indexing semantics.
102
+
Compute the sum of the [absolute values][@stdlib/blas/base/dcabs1] of each element in a double-precision [complex][@stdlib/complex/float64/ctor] floating-point vector using alternative indexing semantics.
105
103
106
104
```javascript
107
105
var Complex128Array =require( '@stdlib/array/complex128' );
@@ -114,9 +112,9 @@ var sum = dzasum.ndarray( x.length, x, 1, 0 );
114
112
115
113
The function has the following additional parameters:
116
114
117
-
-**offset**: starting index.
115
+
-**offsetX**: starting index.
118
116
119
-
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 sum the last three elements,
117
+
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the `offsetX` parameter supports indexing semantics based on a starting index. For example, to sum the last three elements,
120
118
121
119
```javascript
122
120
var Complex128Array =require( '@stdlib/array/complex128' );
0 commit comments