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 1f7c616 commit 3bb6d3c
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ć <[email protected]>
Philipp Burckhardt <[email protected]>
Pranav Goswami <[email protected]>
Ricky Reusser <[email protected]>
Robert Gislason <[email protected]>
Roman Stetsyk <[email protected]>
Ryan Seal <[email protected]>
Seyyed Parsa Neshaei <[email protected]>
Expand All @@ -37,4 +38,3 @@ Stephannie Jiménez Gacha <[email protected]>
Yernar Yergaziyev <[email protected]>
orimiles5 <[email protected]>
rei2hu <[email protected]>
Robert Gislason <[email protected]>
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ Computes the squared absolute value for each element in a double-precision float
```c
#include <stdint.h>

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 };
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_dabs2( N, X, 2, Y, 2 );
```
Expand Down Expand Up @@ -276,17 +276,17 @@ void stdlib_strided_dabs2( const int64_t N, const double *X, const int64_t strid

int main( void ) {
// Create an input 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 };

// 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 squared absolute value element-wise:
stdlib_strided_dabs2( 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.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 };

// 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 squared absolute value element-wise:
stdlib_strided_dabs2( 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-floor": "^0.1.1",
"@stdlib/math-base-special-pow": "^0.1.0",
Expand Down
8 changes: 4 additions & 4 deletions src/dabs2.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.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 };
*
* // 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 squared absolute value element-wise:
* stdlib_strided_dabs2( N, x, strideX, y, strideY );
Expand Down

0 comments on commit 3bb6d3c

Please sign in to comment.