@@ -221,7 +221,7 @@ Scales values from `X` by `alpha` and adds the result to `Y`.
221
221
``` c
222
222
#include " stdlib/complex/float32/ctor.h"
223
223
224
- float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
224
+ const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
225
225
float y[ ] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
226
226
const stdlib_complex128_t alpha = stdlib_complex128( 2.0, 2.0 );
227
227
@@ -248,7 +248,7 @@ Scales values from `X` by `alpha` and adds the result to `Y` using alternative i
248
248
``` c
249
249
#include " stdlib/complex/float32/ctor.h"
250
250
251
- float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
251
+ const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
252
252
float y[ ] = { -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0 };
253
253
const stdlib_complex128_t alpha = stdlib_complex128( 2.0, 2.0 );
254
254
@@ -295,7 +295,7 @@ void c_zaxpy_ndarray( const CBLAS_INT N, const stdlib_complex128_t alpha, const
295
295
296
296
int main ( void ) {
297
297
// Create strided arrays:
298
- double x[ ] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
298
+ const double x[ ] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
299
299
double y[ ] = { 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 };
300
300
301
301
// Create a complex scalar:
0 commit comments