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
-**x**: first input [`Complex128Array`][@stdlib/array/complex128].
54
-
-**strideX**: index increment for `x`.
54
+
-**strideX**: stride length for `x`.
55
55
-**y**: second input [`Complex128Array`][@stdlib/array/complex128].
56
-
-**strideY**: index increment for `y`.
56
+
-**strideY**: stride length for `y`.
57
57
58
-
The `N` and stride parameters determine how values from `x` are scaled by `alpha` and added to `y`. For example, to scale every other value in `x` by `alpha` and add the result to every other value of `y`,
58
+
The `N` and stride parameters determine how elements from `x` are scaled by `alpha` and added to `y`. For example, to scale every other element in `x` by `alpha` and add the result to every other element of `y`,
59
59
60
60
```javascript
61
61
var Complex128Array =require( '@stdlib/array/complex128' );
@@ -88,7 +88,7 @@ var alpha = new Complex128( 2.0, 2.0 );
88
88
var x1 =newComplex128Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
89
89
var y1 =newComplex128Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 ); // start at 3rd element
90
90
91
-
//Scales values of `x0` by `alpha` starting from second index and add the result to `y0` starting from third index...
@@ -114,7 +114,7 @@ The function has the following additional parameters:
114
114
-**offsetX**: starting index for `x`.
115
115
-**offsetY**: starting index for `y`.
116
116
117
-
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 scale values in the first input strided array starting from the second element and add the result to the second input array starting from the second element,
117
+
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 scale elements in the first input strided array starting from the second element and add the result to the second input array starting from the second element,
118
118
119
119
```javascript
120
120
var Complex128Array =require( '@stdlib/array/complex128' );
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
199
+
200
+
<sectionclass="intro">
201
+
202
+
</section>
203
+
204
+
<!-- /.intro -->
205
+
206
+
<!-- C usage documentation. -->
207
+
208
+
<sectionclass="usage">
209
+
210
+
### Usage
211
+
212
+
```c
213
+
#include"stdlib/blas/base/zaxpy.h"
214
+
```
215
+
216
+
#### c_zaxpy( N, alpha, \*X, strideX, \*Y, strideY )
217
+
218
+
Scales values from `X` by `alpha` and adds the result to `Y`.
0 commit comments