Skip to content

Commit 4d943eb

Browse files
committed
docs: resolve C lint errors
1 parent 42c921a commit 4d943eb

File tree

29 files changed

+94
-94
lines changed

29 files changed

+94
-94
lines changed

lib/node_modules/@stdlib/blas/base/dcopy/examples/c/example.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121

2222
int main( void ) {
2323
// Create strided arrays:
24-
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
24+
const double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2525
double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
2626

2727
// Specify the number of elements:
28-
int N = 4;
28+
const int N = 4;
2929

3030
// Specify stride lengths:
31-
int strideX = 2;
32-
int strideY = -2;
31+
const int strideX = 2;
32+
const int strideY = -2;
3333

3434
// Copy elements:
3535
c_dcopy( N, x, strideX, y, strideY );

lib/node_modules/@stdlib/blas/base/scopy/examples/c/example.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121

2222
int main( void ) {
2323
// Create strided arrays:
24-
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
24+
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2525
float y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
2626

2727
// Specify the number of indexed elements:
28-
int N = 4;
28+
const int N = 4;
2929

3030
// Specify stride lengths:
31-
int strideX = 2;
32-
int strideY = -2;
31+
const int strideX = 2;
32+
const int strideY = -2;
3333

3434
// Copy elements:
3535
c_scopy( N, x, strideX, y, strideY );

lib/node_modules/@stdlib/blas/ext/base/sapxsum/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
int main( void ) {
2424
// Create a strided array:
25-
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
25+
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2626

2727
// Specify the number of elements:
28-
int64_t N = 4;
28+
const int64_t N = 4;
2929

3030
// Specify the stride length:
31-
int64_t stride = 2;
31+
const int64_t stride = 2;
3232

3333
// Compute the sum:
3434
float v = stdlib_strided_sapxsum( N, 5.0f, x, stride );

lib/node_modules/@stdlib/blas/ext/base/sapxsumkbn/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
int main( void ) {
2424
// Create a strided array:
25-
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
25+
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2626

2727
// Specify the number of elements:
28-
int64_t N = 4;
28+
const int64_t N = 4;
2929

3030
// Specify the stride length:
31-
int64_t stride = 2;
31+
const int64_t stride = 2;
3232

3333
// Compute the sum:
3434
float v = stdlib_strided_sapxsumkbn( N, 5.0f, x, stride );

lib/node_modules/@stdlib/blas/ext/base/sapxsumkbn2/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
int main( void ) {
2424
// Create a strided array:
25-
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
25+
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2626

2727
// Specify the number of elements:
28-
int64_t N = 4;
28+
const int64_t N = 4;
2929

3030
// Specify the stride length:
31-
int64_t stride = 2;
31+
const int64_t stride = 2;
3232

3333
// Compute the sum:
3434
float v = stdlib_strided_sapxsumkbn2( N, 5.0f, x, stride );

lib/node_modules/@stdlib/blas/ext/base/sapxsumors/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
int main( void ) {
2424
// Create a strided array:
25-
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
25+
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2626

2727
// Specify the number of elements:
28-
int64_t N = 4;
28+
const int64_t N = 4;
2929

3030
// Specify the stride length:
31-
int64_t stride = 2;
31+
const int64_t stride = 2;
3232

3333
// Compute the sum:
3434
float v = stdlib_strided_sapxsumors( N, 5.0f, x, stride );

lib/node_modules/@stdlib/blas/ext/base/sapxsumpw/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
int main( void ) {
2424
// Create a strided array:
25-
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
25+
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2626

2727
// Specify the number of elements:
28-
int64_t N = 4;
28+
const int64_t N = 4;
2929

3030
// Specify the stride length:
31-
int64_t stride = 2;
31+
const int64_t stride = 2;
3232

3333
// Compute the sum:
3434
float v = stdlib_strided_sapxsumpw( N, 5.0f, x, stride );

lib/node_modules/@stdlib/blas/ext/base/sasumpw/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
int main( void ) {
2424
// Create a strided array:
25-
float x[] = { -1.0, 2.0, -3.0, 4.0, -5.0, 6.0, -7.0, 8.0 };
25+
const float x[] = { -1.0, 2.0, -3.0, 4.0, -5.0, 6.0, -7.0, 8.0 };
2626

2727
// Specify the number of elements:
28-
int64_t N = 4;
28+
const int64_t N = 4;
2929

3030
// Specify the stride length:
31-
int64_t stride = 2;
31+
const int64_t stride = 2;
3232

3333
// Compute the sum:
3434
float v = stdlib_strided_sasumpw( N, x, stride );

lib/node_modules/@stdlib/blas/ext/base/scusum/examples/c/example.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323

2424
int main( void ) {
2525
// Create strided arrays:
26-
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
26+
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2727
float y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
2828

2929
// Specify the number of elements:
30-
int64_t N = 4;
30+
const int64_t N = 4;
3131

3232
// Specify stride lengths:
33-
int64_t strideX = 2;
34-
int64_t strideY = -2;
33+
const int64_t strideX = 2;
34+
const int64_t strideY = -2;
3535

3636
// Compute the cumulative sum:
3737
stdlib_strided_scusum( N, 0.0f, x, strideX, y, strideY );

lib/node_modules/@stdlib/blas/ext/base/scusumkbn/examples/c/example.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323

2424
int main( void ) {
2525
// Create strided arrays:
26-
float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
26+
const float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2727
float y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
2828

2929
// Specify the number of elements:
30-
int64_t N = 4;
30+
const int64_t N = 4;
3131

3232
// Specify stride lengths:
33-
int64_t strideX = 2;
34-
int64_t strideY = -2;
33+
const int64_t strideX = 2;
34+
const int64_t strideY = -2;
3535

3636
// Compute the cumulative sum:
3737
stdlib_strided_scusumkbn( N, 0.0f, x, strideX, y, strideY );

0 commit comments

Comments
 (0)