Skip to content

Commit

Permalink
docs: resolve C lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Apr 19, 2023
1 parent b26e56a commit 42c921a
Show file tree
Hide file tree
Showing 47 changed files with 156 additions and 156 deletions.
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/blas/base/dasum/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,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:
int N = 8;
const int N = 8;

// Specify a stride:
int strideX = 1;
const int strideX = 1;

// Compute the sum of absolute values:
double sum = c_dasum( N, x, strideX );
Expand Down
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/blas/base/daxpy/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@

int main( void ) {
// Create strided arrays:
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 };

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

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

// Compute `a*x + y`:
c_daxpy( N, 5.0, x, strideX, y, strideY );
Expand Down
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/blas/base/ddot/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@

int main( void ) {
// Create strided arrays:
double x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };
double y[] = { 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 };
const double y[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };

// Specify the number of elements:
int N = 8;
const int N = 8;

// Specify strides:
int strideX = 1;
int strideY = -1;
const int strideX = 1;
const int strideY = -1;

// Compute the dot product:
double d = c_ddot( N, x, strideX, y, strideY );
Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/blas/base/dnrm2/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,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:
int N = 8;
const int N = 8;

// Specify a stride:
int strideX = 1;
const int strideX = 1;

// Compute the L2-norm:
double l2 = c_dnrm2( N, x, strideX );
Expand Down
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/blas/base/dsdot/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,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 };
float y[] = { 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 };
const float y[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };

// Specify the number of elements:
int N = 8;
const int N = 8;

// Specify strides:
int strideX = 1;
int strideY = -1;
const int strideX = 1;
const int strideY = -1;

// Compute the dot product:
double d = c_dsdot( N, x, strideX, y, strideY );
Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/blas/base/sasum/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

int main( void ) {
// Create a strided array:
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 };

// Specify the number of elements:
int N = 8;
const int N = 8;

// Specify a stride:
int strideX = 1;
const int strideX = 1;

// Compute the sum of absolute values:
float sum = c_sasum( N, x, strideX );
Expand Down
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/blas/base/saxpy/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,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 indexed elements:
int N = 4;
const int N = 4;

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

// Compute `a*x + y`:
c_saxpy( N, 5.0f, x, strideX, y, strideY );
Expand Down
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/blas/base/sdot/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,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 };
float y[] = { 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 };
const float y[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };

// Specify the number of indexed elements:
int N = 8;
const int N = 8;

// Specify strides:
int strideX = 1;
int strideY = -1;
const int strideX = 1;
const int strideY = -1;

// Compute the dot product:
float d = c_sdot( N, x, strideX, y, strideY );
Expand Down
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/blas/base/sdsdot/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,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 };
float y[] = { 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 };
const float y[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 };

// Specify the number of indexed elements:
int N = 8;
const int N = 8;

// Specify strides:
int strideX = 1;
int strideY = -1;
const int strideX = 1;
const int strideY = -1;

// Compute the dot product:
float d = c_sdsdot( N, 0.0f, x, strideX, y, strideY );
Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/blas/base/snrm2/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

int main( void ) {
// Create a strided array:
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 };

// Specify the number of indexed elements:
int N = 8;
const int N = 8;

// Specify a stride:
int strideX = 1;
const int strideX = 1;

// Compute the L2-norm:
float l2 = c_snrm2( N, x, strideX );
Expand Down
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_dapxsum( N, 5.0, x, stride );
Expand Down
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_dapxsumkbn( N, 5.0, x, stride );
Expand Down
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_dapxsumkbn2( N, 5.0, x, stride );
Expand Down
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_dapxsumors( N, 5.0, x, stride );
Expand Down
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_dapxsumpw( N, 5.0, x, stride );
Expand Down
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_dasumpw( N, x, stride );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@

int main( void ) {
// Create strided arrays:
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 };

// 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_dcusum( N, 0.0, x, strideX, y, strideY );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@

int main( void ) {
// Create strided arrays:
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 };

// 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_dcusumkbn( N, 0.0, x, strideX, y, strideY );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@

int main( void ) {
// Create strided arrays:
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 };

// 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_dcusumkbn2( N, 0.0, x, strideX, y, strideY );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@

int main( void ) {
// Create strided arrays:
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 };

// 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_dcusumors( N, 0.0, x, strideX, y, strideY );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@

int main( void ) {
// Create strided arrays:
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 };

// 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_dcusumpw( N, 0.0, x, strideX, y, strideY );
Expand Down
Loading

0 comments on commit 42c921a

Please sign in to comment.