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 363f141 commit b4b2f58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@

int main( void ) {
// Create strided arrays:
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
float y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

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

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

// Compute the cumulative sum:
stdlib_strided_scusumkbn( N, 0.0f, x, strideX, y, strideY );
Expand Down

0 comments on commit b4b2f58

Please sign in to comment.