We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b35d7f commit f99c12eCopy full SHA for f99c12e
lib/node_modules/@stdlib/blas/base/cscal/examples/c/example.c
@@ -30,14 +30,14 @@ int main( void ) {
30
// Specify the number of elements:
31
const int N = 4;
32
33
- // Specify stride lengths:
+ // Specify stride length:
34
const int strideX = 1;
35
36
- // Copy elements:
+ // Scale the elements of the array:
37
c_cscal( N, ca, (void *)cx, strideX );
38
39
// Print the result:
40
for ( int i = 0; i < N; i++ ) {
41
- printf( "y[ %i ] = %f + %fj\n", i, cx[ i*2 ], cx[ (i*2)+1 ] );
+ printf( "cx[ %i ] = %f + %fj\n", i, cx[ i*2 ], cx[ (i*2)+1 ] );
42
}
43
0 commit comments