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 42c921a commit 4d943eb
Show file tree
Hide file tree
Showing 29 changed files with 94 additions and 94 deletions.
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/blas/base/dcopy/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;

// Copy elements:
c_dcopy( N, x, strideX, y, strideY );
Expand Down
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/blas/base/scopy/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;

// Copy elements:
c_scopy( N, x, strideX, y, strideY );
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:
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:
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:
float v = stdlib_strided_sapxsum( N, 5.0f, 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:
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:
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:
float v = stdlib_strided_sapxsumkbn( N, 5.0f, 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:
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:
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:
float v = stdlib_strided_sapxsumkbn2( N, 5.0f, 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:
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:
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:
float v = stdlib_strided_sapxsumors( N, 5.0f, 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:
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:
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:
float v = stdlib_strided_sapxsumpw( N, 5.0f, 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:
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:
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:
float v = stdlib_strided_sasumpw( 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:
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_scusum( N, 0.0f, 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:
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
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_scusumkbn2( N, 0.0f, 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:
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_scusumors( N, 0.0f, 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:
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_scusumpw( N, 0.0f, x, strideX, y, strideY );
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:
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:
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:
float v = stdlib_strided_sdsapxsum( N, 5.0f, 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:
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:
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:
float v = stdlib_strided_sdsapxsumpw( N, 5.0f, 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:
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };

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

// Specify the stride length:
int64_t stride = 2;
const int64_t stride = 2;

// Compute the sum:
float v = stdlib_strided_sdsnansum( N, 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:
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };

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

// Specify the stride length:
int64_t stride = 2;
const int64_t stride = 2;

// Compute the sum:
float v = stdlib_strided_sdsnansumpw( N, 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:
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:
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:
float v = stdlib_strided_sdssum( N, 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:
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:
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:
float v = stdlib_strided_sdssumpw( N, 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:
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };

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

// Specify the stride length:
int64_t stride = 2;
const int64_t stride = 2;

// Compute the sum:
float v = stdlib_strided_snansum( N, 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:
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };

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

// Specify the stride length:
int64_t stride = 2;
const int64_t stride = 2;

// Compute the sum:
float v = stdlib_strided_snansumkbn( N, 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:
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };

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

// Specify the stride length:
int64_t stride = 2;
const int64_t stride = 2;

// Compute the sum:
float v = stdlib_strided_snansumkbn2( N, x, stride );
Expand Down
Loading

0 comments on commit 4d943eb

Please sign in to comment.