Skip to content

Commit

Permalink
style: resolve C lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Nov 13, 2023
1 parent c000185 commit eb38ba4
Show file tree
Hide file tree
Showing 132 changed files with 770 additions and 770 deletions.
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/math/strided/special/dabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ Computes the absolute value for each element in a double-precision floating-poin
```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_dabs( N, X, 2, Y, 2 );
```
Expand Down Expand Up @@ -245,17 +245,17 @@ void stdlib_strided_dabs( const int64_t N, const double *X, const int64_t stride

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 absolute value element-wise:
stdlib_strided_dabs( N, X, strideX, Y, strideY );
Expand Down
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 absolute value element-wise:
stdlib_strided_dabs( N, x, strideX, y, strideY );
Expand Down
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/math/strided/special/dabs/src/dabs.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 absolute value element-wise:
* stdlib_strided_dabs( N, x, strideX, y, strideY );
Expand Down
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/math/strided/special/dabs2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,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 @@ -245,17 +245,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
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
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
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/math/strided/special/dcbrt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ Computes the cube root of each element in a double-precision floating-point stri
```c
#include <stdint.h>

double X[] = { 0.0, 1.0, 8.0, 27.0, 64.0, 125.0, 216.0, 343.0 };
const double X[] = { 0.0, 1.0, 8.0, 27.0, 64.0, 125.0, 216.0, 343.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_dcbrt( N, X, 2, Y, 2 );
```
Expand Down Expand Up @@ -235,17 +235,17 @@ void stdlib_strided_dcbrt( const int64_t N, const double *X, const int64_t strid

int main( void ) {
// Create an input strided array:
double X[] = { 0.0, 1.0, 8.0, 27.0, 64.0, 125.0, 216.0, 343.0 };
const double X[] = { 0.0, 1.0, 8.0, 27.0, 64.0, 125.0, 216.0, 343.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 results:
stdlib_strided_dcbrt( N, X, strideX, Y, strideY );
Expand Down
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[] = { 0.0, 1.0, 8.0, 27.0, 64.0, 125.0, 216.0, 343.0 };
const double x[] = { 0.0, 1.0, 8.0, 27.0, 64.0, 125.0, 216.0, 343.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 results:
stdlib_strided_dcbrt( N, x, strideX, y, strideY );
Expand Down
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[] = { 0.0, 1.0, 8.0, 27.0, 64.0, 125.0, 216.0, 343.0 };
* const double x[] = { 0.0, 1.0, 8.0, 27.0, 64.0, 125.0, 216.0, 343.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 results:
* stdlib_strided_dcbrt( N, x, strideX, y, strideY );
Expand Down
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/math/strided/special/dceil/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ Rounds each element in a double-precision floating-point strided array `X` towar
```c
#include <stdint.h>

double X[] = { 1.1, 2.5, -3.5, 4.0, -5.9, 6.4, -7.0, 8.2 };
const double X[] = { 1.1, 2.5, -3.5, 4.0, -5.9, 6.4, -7.0, 8.2 };
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_dceil( N, X, 2, Y, 2 );
```
Expand Down Expand Up @@ -235,17 +235,17 @@ void stdlib_strided_dceil( const int64_t N, const double *X, const int64_t strid

int main( void ) {
// Create an input strided array:
double X[] = { 1.1, 2.5, -3.5, 4.0, -5.9, 6.4, -7.0, 8.2 };
const double X[] = { 1.1, 2.5, -3.5, 4.0, -5.9, 6.4, -7.0, 8.2 };

// 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_dceil( N, X, strideX, Y, strideY );
Expand Down
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.1, 2.5, -3.5, 4.0, -5.9, 6.4, -7.0, 8.2 };
const double x[] = { 1.1, 2.5, -3.5, 4.0, -5.9, 6.4, -7.0, 8.2 };

// 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_dceil( N, x, strideX, y, strideY );
Expand Down
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.1, 2.5, -3.5, 4.0, -5.9, 6.4, -7.0, 8.2 };
* const double x[] = { 1.1, 2.5, -3.5, 4.0, -5.9, 6.4, -7.0, 8.2 };
*
* // 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_dceil( N, x, strideX, y, strideY );
Expand Down
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/math/strided/special/ddeg2rad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ Converts each element in a double-precision floating-point strided array `x` fro
```c
#include <stdint.h>

double X[] = { 0.0, 30.0, 45.0, 60.0, 90.0, 120.0, 150.0, 180.0 };
const double X[] = { 0.0, 30.0, 45.0, 60.0, 90.0, 120.0, 150.0, 180.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_ddeg2rad( N, X, 2, Y, 2 );
```
Expand Down Expand Up @@ -235,17 +235,17 @@ void stdlib_strided_ddeg2rad( const int64_t N, const double *X, const int64_t st

int main( void ) {
// Create an input strided array:
double X[] = { 0.0, 30.0, 45.0, 60.0, 90.0, 120.0, 150.0, 180.0 };
const double X[] = { 0.0, 30.0, 45.0, 60.0, 90.0, 120.0, 150.0, 180.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 results:
stdlib_strided_ddeg2rad( N, X, strideX, Y, strideY );
Expand Down
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[] = { 0.0, 30.0, 45.0, 60.0, 90.0, 120.0, 150.0, 180.0 };
const double x[] = { 0.0, 30.0, 45.0, 60.0, 90.0, 120.0, 150.0, 180.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 results:
stdlib_strided_ddeg2rad( N, x, strideX, y, strideY );
Expand Down
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[] = { 0.0, 30.0, 45.0, 60.0, 90.0, 120.0, 150.0, 180.0 };
* const double x[] = { 0.0, 30.0, 45.0, 60.0, 90.0, 120.0, 150.0, 180.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 results:
* stdlib_strided_ddeg2rad( N, x, strideX, y, strideY );
Expand Down
Loading

0 comments on commit eb38ba4

Please sign in to comment.