Skip to content

Commit

Permalink
docs: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Dec 2, 2023
1 parent cbee5b7 commit e14f9fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/blas/base/dswap/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ int main( void ) {
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

// Specify the number of elements:
int N = 4;
const int N = 4;

// Specify stride lengths:
int strideX = 2;
int strideY = -2;
const int strideX = 2;
const int strideY = -2;

// Interchange elements:
c_dswap( N, x, strideX, y, strideY );
Expand Down

0 comments on commit e14f9fe

Please sign in to comment.