Skip to content

Commit 7552616

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: na - 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 b8d7f54 commit 7552616

File tree

1 file changed

+15
-15
lines changed
  • lib/node_modules/@stdlib/blas/base/caxpy

1 file changed

+15
-15
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -207,16 +207,16 @@ logEach( '(%s)*(%s) + (%s) = %s', alpha, x, yc, y );
207207

208208
#### c_caxpy( N, alpha, \*X, strideX, \*Y, strideY )
209209

210-
Scales values from `x` by `alpha` and adds the result to `y`.
210+
Scales values from `X` by `alpha` and adds the result to `y`.
211211

212212
```c
213213
#include "stdlib/complex/float32/ctor.h"
214214

215-
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f };
215+
float X[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f };
216216
float y[] = { -1.0f, -2.0f, -3.0f, -4.0f, -5.0f, -6.0f, -7.0f, -8.0f };
217217
const stdlib_complex64_t alpha = stdlib_complex64( 2.0f, 2.0f );
218218

219-
c_caxpy( 4, alpha, (void *)x, 1, (void *)y, 1 );
219+
c_caxpy( 4, alpha, (void *)X, 1, (void *)y, 1 );
220220
```
221221
222222
The function accepts the following arguments:
@@ -234,16 +234,16 @@ void c_caxpy( const CBLAS_INT N, const stdlib_complex64_t alpha, const void *X,
234234

235235
#### c_caxpy_ndarray( N, alpha, \*X, strideX, offsetX, \*Y, strideY, offsetY )
236236

237-
Scales values from `x` by `alpha` and adds the result to `y` using alternative indexing semantics.
237+
Scales values from `X` by `alpha` and adds the result to `Y` using alternative indexing semantics.
238238

239239
```c
240240
#include "stdlib/complex/float32/ctor.h"
241241

242-
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f };
243-
float y[] = { -1.0f, -2.0f, -3.0f, -4.0f, -5.0f, -6.0f, -7.0f, -8.0f }
242+
float X[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f };
243+
float Y[] = { -1.0f, -2.0f, -3.0f, -4.0f, -5.0f, -6.0f, -7.0f, -8.0f }
244244
const stdlib_complex64_t alpha = stdlib_complex64( 2.0f, 2.0f );
245245

246-
c_caxpy_ndarray( 4, alpha, (void *)x, 1, 0, (void *)y, 1, 0 );
246+
c_caxpy_ndarray( 4, alpha, (void *)X, 1, 0, (void *)Y, 1, 0 );
247247
```
248248
249249
The function accepts the following arguments:
@@ -286,8 +286,8 @@ void c_caxpy_ndarray( const CBLAS_INT N, const stdlib_complex64_t alpha, const v
286286

287287
int main( void ) {
288288
// Create strided arrays of interleaved real and imaginary components...
289-
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f };
290-
float y[] = { -1.0f, -2.0f, -3.0f, -4.0f, -5.0f, -6.0f, -7.0f, -8.0f };
289+
float X[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f };
290+
float Y[] = { -1.0f, -2.0f, -3.0f, -4.0f, -5.0f, -6.0f, -7.0f, -8.0f };
291291

292292
// Create a complex scalar:
293293
const stdlib_complex64_t alpha = stdlib_complex64( 2.0f, 2.0f );
@@ -299,20 +299,20 @@ int main( void ) {
299299
const int strideX = 1;
300300
const int strideY = 1;
301301

302-
// Scale values from `x` by `alpha` and adds the result to `y`:
303-
c_caxpy( N, alpha, (void *)x, strideX, (void *)y, strideY );
302+
// Scale values from `X` by `alpha` and adds the result to `Y`:
303+
c_caxpy( N, alpha, (void *)X, strideX, (void *)Y, strideY );
304304

305305
// Print the result:
306306
for ( int i = 0; i < N; i++ ) {
307-
printf( "y[ %i ] = %f + %fj\n", i, y[ i*2 ], y[ (i*2)+1 ] );
307+
printf( "Y[ %i ] = %f + %fj\n", i, Y[ i*2 ], Y[ (i*2)+1 ] );
308308
}
309309

310-
// Scales values from `x` by `alpha` and adds the result to `y` using alternative indexing semantics:
311-
c_caxpy_ndarray( N, alpha, (void *)x, -strideX, 3, (void *)y, -strideY, 3 );
310+
// Scales values from `X` by `alpha` and adds the result to `Y` using alternative indexing semantics:
311+
c_caxpy_ndarray( N, alpha, (void *)X, -strideX, 3, (void *)Y, -strideY, 3 );
312312

313313
// Print the result:
314314
for ( int i = 0; i < N; i++ ) {
315-
printf( "y[ %i ] = %f + %fj\n", i, y[ i*2 ], y[ (i*2)+1 ] );
315+
printf( "Y[ %i ] = %f + %fj\n", i, Y[ i*2 ], Y[ (i*2)+1 ] );
316316
}
317317
}
318318
```

0 commit comments

Comments
 (0)