Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Apr 19, 2023
1 parent 83131b1 commit 16a753d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@

int main( void ) {
// Create a strided array:
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
const double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };

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

// Specify the stride length:
int64_t stride = 2;
const int64_t stride = 2;

// Compute the sum:
double v = stdlib_strided_dsumkbn( N, x, stride );
Expand Down

0 comments on commit 16a753d

Please sign in to comment.