@@ -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 };
216216float y[ ] = { -1.0f, -2.0f, -3.0f, -4.0f, -5.0f, -6.0f, -7.0f, -8.0f };
217217const 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
222222The 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 }
244244const 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
249249The 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
287287int 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