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 Nov 14, 2023
1 parent 3bde1f7 commit 72c29ac
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
Philipp Burckhardt <pburckhardt@outlook.com>
Pranav Goswami <goswami.4@iitj.ac.in>
Ricky Reusser <rsreusser@gmail.com>
Robert Gislason <gztown2216@yahoo.com>
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
Ryan Seal <splrk@users.noreply.github.com>
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
Expand All @@ -37,4 +38,3 @@ Stephannie Jiménez Gacha <steff456@hotmail.com>
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
orimiles5 <97595296+orimiles5@users.noreply.github.com>
rei2hu <reimu@reimu.ws>
Robert Gislason <gztown2216@yahoo.com>
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ Rounds each element in a double-precision floating-point strided array `X` towar
```c
#include <stdint.h>

double X[] = { -1.5, 2.3, -3.9, 4.2, -5.0, -6.0, 7.9, -8.1 };
const double X[] = { -1.5, 2.3, -3.9, 4.2, -5.0, -6.0, 7.9, -8.1 };
double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

int64_t N = 4;
const int64_t N = 4;

stdlib_strided_dfloor( N, X, 2, Y, 2 );
```
Expand Down Expand Up @@ -266,17 +266,17 @@ void stdlib_strided_dfloor( const int64_t N, const double *X, const int64_t stri

int main( void ) {
// Create an input strided array:
double X[] = { -1.5, 2.3, -3.9, 4.2, -5.0, -6.0, 7.9, -8.1 };
const double X[] = { -1.5, 2.3, -3.9, 4.2, -5.0, -6.0, 7.9, -8.1 };

// Create an output strided array:
double 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 the stride lengths:
int64_t strideX = 2;
int64_t strideY = 2;
const int64_t strideX = 2;
const int64_t strideY = 2;

// Compute the results:
stdlib_strided_dfloor( N, X, strideX, Y, strideY );
Expand Down
8 changes: 4 additions & 4 deletions examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@

int main( void ) {
// Create an input strided array:
double x[] = { -1.5, 2.3, -3.9, 4.2, -5.0, -6.0, 7.9, -8.1 };
const double x[] = { -1.5, 2.3, -3.9, 4.2, -5.0, -6.0, 7.9, -8.1 };

// Create an output strided array:
double 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 the stride lengths:
int64_t strideX = 2;
int64_t strideY = 2;
const int64_t strideX = 2;
const int64_t strideY = 2;

// Compute the results:
stdlib_strided_dfloor( N, x, strideX, y, strideY );
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"devDependencies": {
"@stdlib/array-float64": "^0.1.1",
"@stdlib/assert-is-browser": "^0.1.1",
"@stdlib/bench": "^0.1.0",
"@stdlib/bench": "^0.2.0",
"@stdlib/math-base-assert-is-nan": "^0.1.1",
"@stdlib/math-base-special-pow": "^0.1.0",
"@stdlib/random-base-uniform": "^0.1.0",
Expand Down
8 changes: 4 additions & 4 deletions src/dfloor.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
* #include <stdint.h>
*
* // Create an input strided array:
* double x[] = { -1.5, 2.3, -3.9, 4.2, -5.0, -6.0, 7.9, -8.1 };
* const double x[] = { -1.5, 2.3, -3.9, 4.2, -5.0, -6.0, 7.9, -8.1 };
*
* // Create an output strided array:
* double 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 the stride lengths:
* int64_t strideX = 2;
* int64_t strideY = 2;
* const int64_t strideX = 2;
* const int64_t strideY = 2;
*
* // Compute the results:
* stdlib_strided_dfloor( N, x, strideX, y, strideY );
Expand Down

0 comments on commit 72c29ac

Please sign in to comment.