Skip to content

Commit b8d7f54

Browse files
committed
chore: update variables
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 3a9c859 commit b8d7f54

File tree

2 files changed

+47
-47
lines changed

2 files changed

+47
-47
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ logEach( '(%s)*(%s) + (%s) = %s', alpha, x, yc, y );
205205
#include "stdlib/blas/base/caxpy.h"
206206
```
207207

208-
#### c_caxpy( N, alpha, \*CX, strideX, \*CY, strideY )
208+
#### c_caxpy( N, alpha, \*X, strideX, \*Y, strideY )
209209

210210
Scales values from `x` by `alpha` and adds the result to `y`.
211211

@@ -223,16 +223,16 @@ The function accepts the following arguments:
223223
224224
- **N**: `[in] CBLAS_INT` number of indexed elements.
225225
- **alpha**: `[in] stdlib_complex64_t` scalar constant.
226-
- **CX**: `[in] void*` input array.
227-
- **strideX**: `[in] CBLAS_INT` index increment for `CX`.
228-
- **CY**: `[inout] void*` output array.
229-
- **strideY**: `[in] CBLAS_INT` index increment for `CY`.
226+
- **X**: `[in] void*` input array.
227+
- **strideX**: `[in] CBLAS_INT` index increment for `X`.
228+
- **Y**: `[inout] void*` output array.
229+
- **strideY**: `[in] CBLAS_INT` index increment for `Y`.
230230
231231
```c
232-
void c_caxpy( const CBLAS_INT N, const stdlib_complex64_t alpha, const void *CX, const CBLAS_INT strideX, void *CY, const CBLAS_INT strideY );
232+
void c_caxpy( const CBLAS_INT N, const stdlib_complex64_t alpha, const void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY );
233233
```
234234

235-
#### c_caxpy_ndarray( N, alpha, \*CX, strideX, offsetX, \*CY, strideY, offsetY )
235+
#### c_caxpy_ndarray( N, alpha, \*X, strideX, offsetX, \*Y, strideY, offsetY )
236236

237237
Scales values from `x` by `alpha` and adds the result to `y` using alternative indexing semantics.
238238

@@ -250,15 +250,15 @@ The function accepts the following arguments:
250250
251251
- **N**: `[in] CBLAS_INT` number of indexed elements.
252252
- **alpha**: `[in] stdlib_complex64_t` scalar constant.
253-
- **CX**: `[in] void*` input array.
254-
- **strideX**: `[in] CBLAS_INT` index increment for `CX`.
255-
- **offsetX**: `[in] CBLAS_INT` starting index for `CX`.
256-
- **CY**: `[inout] void*` output array.
257-
- **strideY**: `[in] CBLAS_INT` index increment for `CY`.
258-
- **offsetY**: `[in] CBLAS_INT` starting index for `CY`.
253+
- **X**: `[in] void*` input array.
254+
- **strideX**: `[in] CBLAS_INT` index increment for `X`.
255+
- **offsetX**: `[in] CBLAS_INT` starting index for `X`.
256+
- **Y**: `[inout] void*` output array.
257+
- **strideY**: `[in] CBLAS_INT` index increment for `Y`.
258+
- **offsetY**: `[in] CBLAS_INT` starting index for `Y`.
259259
260260
```c
261-
void c_caxpy_ndarray( const CBLAS_INT N, const stdlib_complex64_t alpha, const void *CX, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *CY, const CBLAS_INT strideY, const CBLAS_INT offsetY );
261+
void c_caxpy_ndarray( const CBLAS_INT N, const stdlib_complex64_t alpha, const void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY );
262262
```
263263

264264
</section>

lib/node_modules/@stdlib/blas/base/caxpy/test/test.caxpy.native.js

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ tape( 'the function has an arity of 6', opts, function test( t ) {
8080
t.end();
8181
});
8282

83-
tape( 'the function scales elements from `x` by `ca` and adds the result to `y`', opts, function test( t ) {
83+
tape( 'the function scales elements from `x` by `alpha` and adds the result to `y`', opts, function test( t ) {
8484
var expected;
8585
var viewY;
86-
var ca;
86+
var alpha;
8787
var x;
8888
var y;
8989

@@ -119,9 +119,9 @@ tape( 'the function scales elements from `x` by `ca` and adds the result to `y`'
119119
0.8,
120120
-0.7
121121
]);
122-
ca = new Complex64( 0.4, -0.7 );
122+
alpha = new Complex64( 0.4, -0.7 );
123123

124-
caxpy( 4, ca, x, 1, y, 1 );
124+
caxpy( 4, alpha, x, 1, y, 1 );
125125

126126
viewY = new Float32Array( y.buffer );
127127
expected = new Float32Array([
@@ -147,7 +147,7 @@ tape( 'the function scales elements from `x` by `ca` and adds the result to `y`'
147147
tape( 'the function supports a `x` stride', opts, function test( t ) {
148148
var expected;
149149
var viewY;
150-
var ca;
150+
var alpha;
151151
var x;
152152
var y;
153153

@@ -183,9 +183,9 @@ tape( 'the function supports a `x` stride', opts, function test( t ) {
183183
0.8,
184184
-0.7
185185
]);
186-
ca = new Complex64( 0.4, -0.7 );
186+
alpha = new Complex64( 0.4, -0.7 );
187187

188-
caxpy( 4, ca, x, 2, y, 1 );
188+
caxpy( 4, alpha, x, 2, y, 1 );
189189

190190
viewY = new Float32Array( y.buffer );
191191
expected = new Float32Array([
@@ -211,7 +211,7 @@ tape( 'the function supports a `x` stride', opts, function test( t ) {
211211
tape( 'the function supports a `y` stride', opts, function test( t ) {
212212
var expected;
213213
var viewY;
214-
var ca;
214+
var alpha;
215215
var x;
216216
var y;
217217

@@ -247,9 +247,9 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
247247
0.8, // 4
248248
-0.7 // 4
249249
]);
250-
ca = new Complex64( 0.4, -0.7 );
250+
alpha = new Complex64( 0.4, -0.7 );
251251

252-
caxpy( 4, ca, x, 1, y, 2 );
252+
caxpy( 4, alpha, x, 1, y, 2 );
253253

254254
viewY = new Float32Array( y.buffer );
255255
expected = new Float32Array([
@@ -273,16 +273,16 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
273273
});
274274

275275
tape( 'the function returns a reference to the output array', opts, function test( t ) {
276+
var alpha;
276277
var out;
277-
var ca;
278278
var x;
279279
var y;
280280

281281
x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
282282
y = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
283-
ca = new Complex64( 2.0, 2.0 );
283+
alpha = new Complex64( 2.0, 2.0 );
284284

285-
out = caxpy( x.length, ca, x, 1, y, 1 );
285+
out = caxpy( x.length, alpha, x, 1, y, 1 );
286286

287287
t.strictEqual( out, y, 'same reference' );
288288
t.end();
@@ -291,21 +291,21 @@ tape( 'the function returns a reference to the output array', opts, function tes
291291
tape( 'if provided `alpha` parameter equal to `0`, the function returns the second input array unchanged', opts, function test( t ) {
292292
var expected;
293293
var viewY;
294-
var ca;
294+
var alpha;
295295
var x;
296296
var y;
297297

298298
x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
299299
y = new Complex64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
300-
ca = new Complex64( 0.0, 0.0 );
300+
alpha = new Complex64( 0.0, 0.0 );
301301

302302
viewY = new Float32Array( y.buffer );
303303
expected = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
304304

305-
caxpy( -1, ca, x, 1, y, 1 );
305+
caxpy( -1, alpha, x, 1, y, 1 );
306306
t.deepEqual( viewY, expected, 'returns expected value' );
307307

308-
caxpy( 0, ca, x, 1, y, 1 );
308+
caxpy( 0, alpha, x, 1, y, 1 );
309309
t.deepEqual( viewY, expected, 'returns expected value' );
310310

311311
t.end();
@@ -314,21 +314,21 @@ tape( 'if provided `alpha` parameter equal to `0`, the function returns the seco
314314
tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the second input array unchanged', opts, function test( t ) {
315315
var expected;
316316
var viewY;
317-
var ca;
317+
var alpha;
318318
var x;
319319
var y;
320320

321321
x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
322322
y = new Complex64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
323-
ca = new Complex64( 2.0, 2.0 );
323+
alpha = new Complex64( 2.0, 2.0 );
324324

325325
viewY = new Float32Array( y.buffer );
326326
expected = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
327327

328-
caxpy( -1, ca, x, 1, y, 1 );
328+
caxpy( -1, alpha, x, 1, y, 1 );
329329
t.deepEqual( viewY, expected, 'returns expected value' );
330330

331-
caxpy( 0, ca, x, 1, y, 1 );
331+
caxpy( 0, alpha, x, 1, y, 1 );
332332
t.deepEqual( viewY, expected, 'returns expected value' );
333333

334334
t.end();
@@ -337,7 +337,7 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function retu
337337
tape( 'the function supports negative `x` strides', opts, function test( t ) {
338338
var expected;
339339
var viewY;
340-
var ca;
340+
var alpha;
341341
var x;
342342
var y;
343343

@@ -373,9 +373,9 @@ tape( 'the function supports negative `x` strides', opts, function test( t ) {
373373
0.8,
374374
-0.7
375375
]);
376-
ca = new Complex64( 0.4, -0.7 );
376+
alpha = new Complex64( 0.4, -0.7 );
377377

378-
caxpy( 4, ca, x, -2, y, 1 );
378+
caxpy( 4, alpha, x, -2, y, 1 );
379379

380380
viewY = new Float32Array( y.buffer );
381381
expected = new Float32Array([
@@ -401,7 +401,7 @@ tape( 'the function supports negative `x` strides', opts, function test( t ) {
401401
tape( 'the function supports negative `y` strides', opts, function test( t ) {
402402
var expected;
403403
var viewY;
404-
var ca;
404+
var alpha;
405405
var x;
406406
var y;
407407

@@ -437,9 +437,9 @@ tape( 'the function supports negative `y` strides', opts, function test( t ) {
437437
0.8, // 1
438438
-0.7 // 1
439439
]);
440-
ca = new Complex64( 0.4, -0.7 );
440+
alpha = new Complex64( 0.4, -0.7 );
441441

442-
caxpy( 4, ca, x, 2, y, -2 );
442+
caxpy( 4, alpha, x, 2, y, -2 );
443443

444444
viewY = new Float32Array( y.buffer );
445445
expected = new Float32Array([
@@ -465,7 +465,7 @@ tape( 'the function supports negative `y` strides', opts, function test( t ) {
465465
tape( 'the function supports complex access patterns', opts, function test( t ) {
466466
var expected;
467467
var viewY;
468-
var ca;
468+
var alpha;
469469
var x;
470470
var y;
471471

@@ -501,9 +501,9 @@ tape( 'the function supports complex access patterns', opts, function test( t )
501501
0.8, // 1
502502
-0.7 // 1
503503
]);
504-
ca = new Complex64( 0.4, -0.7 );
504+
alpha = new Complex64( 0.4, -0.7 );
505505

506-
caxpy( 4, ca, x, -1, y, -2 );
506+
caxpy( 4, alpha, x, -1, y, -2 );
507507

508508
viewY = new Float32Array( y.buffer );
509509
expected = new Float32Array([
@@ -529,11 +529,11 @@ tape( 'the function supports complex access patterns', opts, function test( t )
529529
tape( 'the function supports view offsets', opts, function test( t ) {
530530
var expected;
531531
var viewY;
532+
var alpha;
532533
var x0;
533534
var y0;
534535
var x1;
535536
var y1;
536-
var ca;
537537

538538
// Initial arrays...
539539
x0 = new Complex64Array([
@@ -554,13 +554,13 @@ tape( 'the function supports view offsets', opts, function test( t ) {
554554
]);
555555

556556
// Define a scalar constant:
557-
ca = new Complex64( 2.0, 2.0 );
557+
alpha = new Complex64( 2.0, 2.0 );
558558

559559
// Create offset views...
560560
x1 = new Complex64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at the 2nd element
561561
y1 = new Complex64Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 ); // begin at the 3rd element
562562

563-
caxpy( 1, ca, x1, 1, y1, 1 );
563+
caxpy( 1, alpha, x1, 1, y1, 1 );
564564

565565
viewY = new Float32Array( y0.buffer );
566566
expected = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, -1.0, 15.0 ] );

0 commit comments

Comments
 (0)