From 45beca4548d10f8a61d2a359d187607472660bbf Mon Sep 17 00:00:00 2001 From: A Sivasubramanian Manoj Date: Wed, 29 Jul 2026 10:26:53 +0530 Subject: [PATCH 1/7] chore: fix C lint errors (issue #13733) Signed-off-by: A Sivasubramanian Manoj --- lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c b/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c index 76eaf0771166..41c966f001f9 100644 --- a/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c +++ b/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c @@ -28,7 +28,7 @@ static float scale( const float x ) { int main( void ) { // Create an input strided array: - float X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; + const float X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; // Create an output strided array: float Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; From 5dce426a9e4445c13c15b7273bea47b3e1220e1e Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 30 Jul 2026 00:07:49 -0700 Subject: [PATCH 2/7] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/strided/base/smap/examples/c/example.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c b/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c index 41c966f001f9..5248887f7d73 100644 --- a/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c +++ b/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c @@ -34,11 +34,12 @@ int main( void ) { float Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; // Specify the number of elements: - int64_t N = 6; + const int64_t N = 6; // Define the strides: int64_t strideX = 1; - int64_t strideY = -1; +const int64_t strideX = 1; +const int64_t strideY = -1; // Apply the callback: stdlib_strided_smap( N, X, strideX, Y, strideY, scale ); From 8d3d69eb291632fc2393352eb0d0ac8a282de830 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 30 Jul 2026 00:08:08 -0700 Subject: [PATCH 3/7] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/strided/base/smap/examples/c/example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c b/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c index 5248887f7d73..2db8f71343c5 100644 --- a/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c +++ b/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c @@ -38,8 +38,8 @@ int main( void ) { // Define the strides: int64_t strideX = 1; -const int64_t strideX = 1; -const int64_t strideY = -1; + const int64_t strideX = 1; + const int64_t strideY = -1; // Apply the callback: stdlib_strided_smap( N, X, strideX, Y, strideY, scale ); From 95a83f0cf1e3786420460e0262267907587c0a16 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 30 Jul 2026 00:08:35 -0700 Subject: [PATCH 4/7] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c b/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c index 2db8f71343c5..1960cc74a44c 100644 --- a/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c +++ b/lib/node_modules/@stdlib/strided/base/smap/examples/c/example.c @@ -37,7 +37,6 @@ int main( void ) { const int64_t N = 6; // Define the strides: - int64_t strideX = 1; const int64_t strideX = 1; const int64_t strideY = -1; From 1028b1b363092cd9e64b7ef76d395558dbf96ec3 Mon Sep 17 00:00:00 2001 From: A Sivasubramanian Manoj Date: Thu, 30 Jul 2026 23:41:36 +0530 Subject: [PATCH 5/7] docs: propagate const changes to README Signed-off-by: A Sivasubramanian Manoj --- lib/node_modules/@stdlib/strided/base/smap/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/base/smap/README.md b/lib/node_modules/@stdlib/strided/base/smap/README.md index 448cbc549d4d..c3055d737830 100644 --- a/lib/node_modules/@stdlib/strided/base/smap/README.md +++ b/lib/node_modules/@stdlib/strided/base/smap/README.md @@ -257,17 +257,17 @@ static float scale( const float x ) { int main( void ) { // Create an input strided array: - float X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; + const float X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; // Create an output strided array: float Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; // Specify the number of elements: - int64_t N = 6; + const int64_t N = 6; // Define the strides: - int64_t strideX = 1; - int64_t strideY = -1; + const int64_t strideX = 1; + const int64_t strideY = -1; // Apply the callback: stdlib_strided_smap( N, X, strideX, Y, strideY, scale ); From 601d7b03a122672f991f50de704390e09838513f Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 30 Jul 2026 20:08:21 -0700 Subject: [PATCH 6/7] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- lib/node_modules/@stdlib/strided/base/smap/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/strided/base/smap/README.md b/lib/node_modules/@stdlib/strided/base/smap/README.md index c3055d737830..dc1197e51fbd 100644 --- a/lib/node_modules/@stdlib/strided/base/smap/README.md +++ b/lib/node_modules/@stdlib/strided/base/smap/README.md @@ -208,7 +208,10 @@ static float scale( const float x ) { float X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; float Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; -int64_t N = 6; +const float X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; +float Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; + +const int64_t N = 6; stdlib_strided_smap( N, X, 1, Y, 1, scale ); ``` From 795ac5a8bed0abde150a24f3e0a37025821b6734 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 30 Jul 2026 20:09:04 -0700 Subject: [PATCH 7/7] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- lib/node_modules/@stdlib/strided/base/smap/README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/base/smap/README.md b/lib/node_modules/@stdlib/strided/base/smap/README.md index dc1197e51fbd..6ee18eac4c05 100644 --- a/lib/node_modules/@stdlib/strided/base/smap/README.md +++ b/lib/node_modules/@stdlib/strided/base/smap/README.md @@ -205,9 +205,6 @@ static float scale( const float x ) { return x * 10.0f; } -float X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; -float Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; - const float X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; float Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };