@@ -224,9 +224,9 @@ Multiplies elements of a double-precision complex floating-point strided array `
224224``` c
225225#include " stdlib/complex/float64/ctor.h"
226226
227- const float x[] = { 1.0f , 2.0f , 3.0f , 4.0f , 5.0f , 6.0f , 7.0f , 8.0f };
228- const float y[ ] = { 2.0f , 3.0f , 4.0f , 5.0f , 6.0f , 7.0f , 8.0f , 9.0f };
229- float w[ ] = { 0.0f , 0.0f , 0.0f , 0.0f , 0.0f , 0.0f , 0.0f , 0.0f };
227+ const double x[] = { 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 };
228+ const double y[ ] = { 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 , 9.0 };
229+ double w[ ] = { 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 };
230230
231231stdlib_strided_zwxmy ( 4, (const stdlib_complex128_t * )x, 1, (const stdlib_complex128_t * )y, 1, (stdlib_complex128_t * )w, 1 );
232232```
@@ -256,9 +256,9 @@ Multiplies elements of a double-precision complex floating-point strided array `
256256``` c
257257#include " stdlib/complex/float64/ctor.h"
258258
259- const float x[] = { 1.0f , 2.0f , 3.0f , 4.0f , 5.0f , 6.0f , 7.0f , 8.0f };
260- const float y[ ] = { 2.0f , 3.0f , 4.0f , 5.0f , 6.0f , 7.0f , 8.0f , 9.0f };
261- float w[ ] = { 0.0f , 0.0f , 0.0f , 0.0f , 0.0f , 0.0f , 0.0f , 0.0f };
259+ const double x[] = { 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 };
260+ const double y[ ] = { 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 , 9.0 };
261+ double w[ ] = { 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 };
262262
263263stdlib_strided_zwxmy_ndarray ( 4, (const stdlib_complex128_t * )x, 1, 0, (const stdlib_complex128_t * )y, 1, 0, (stdlib_complex128_t * )w, 1, 0 );
264264```
@@ -308,22 +308,22 @@ void stdlib_strided_zwxmy_ndarray( const CBLAS_INT N, const stdlib_complex128_t
308308int main ( void ) {
309309 // Create strided arrays:
310310 const stdlib_complex128_t x[ ] = {
311- stdlib_complex128( 1.0f , 2.0f ),
312- stdlib_complex128( 3.0f , 4.0f ),
313- stdlib_complex128( 5.0f , 6.0f ),
314- stdlib_complex128( 7.0f , 8.0f )
311+ stdlib_complex128( 1.0 , 2.0 ),
312+ stdlib_complex128( 3.0 , 4.0 ),
313+ stdlib_complex128( 5.0 , 6.0 ),
314+ stdlib_complex128( 7.0 , 8.0 )
315315 };
316316 const stdlib_complex128_t y[ ] = {
317- stdlib_complex128( 2.0f , 3.0f ),
318- stdlib_complex128( 4.0f , 5.0f ),
319- stdlib_complex128( 6.0f , 7.0f ),
320- stdlib_complex128( 8.0f , 9.0f )
317+ stdlib_complex128( 2.0 , 3.0 ),
318+ stdlib_complex128( 4.0 , 5.0 ),
319+ stdlib_complex128( 6.0 , 7.0 ),
320+ stdlib_complex128( 8.0 , 9.0 )
321321 };
322322 stdlib_complex128_t w[ ] = {
323- stdlib_complex128( 0.0f , 0.0f ),
324- stdlib_complex128( 0.0f , 0.0f ),
325- stdlib_complex128( 0.0f , 0.0f ),
326- stdlib_complex128( 0.0f , 0.0f )
323+ stdlib_complex128( 0.0 , 0.0 ),
324+ stdlib_complex128( 0.0 , 0.0 ),
325+ stdlib_complex128( 0.0 , 0.0 ),
326+ stdlib_complex128( 0.0 , 0.0 )
327327 };
328328
329329 // Specify the number of indexed elements:
@@ -339,7 +339,7 @@ int main( void ) {
339339
340340 // Print the result:
341341 for ( int i = 0; i < N; i++ ) {
342- printf( "w[ %i ] = %f + %fi \n", i, stdlib_complex128_real( w[ i ] ), stdlib_complex128_imag( w[ i ] ) );
342+ printf( "w[ %i ] = %lf + %lfi \n", i, stdlib_complex128_real( w[ i ] ), stdlib_complex128_imag( w[ i ] ) );
343343 }
344344}
345345```
0 commit comments