From 52b33472afa394da3d7c72676a582638c16a2c38 Mon Sep 17 00:00:00 2001 From: JavaTypedScript Date: Tue, 18 Mar 2025 16:25:13 +0530 Subject: [PATCH 1/3] Update example.c Signed-off-by: JavaTypedScript --- .../@stdlib/strided/base/dmskmap/examples/c/example.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c b/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c index b7f829860183..75efd2700ce1 100644 --- a/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c +++ b/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c @@ -28,13 +28,13 @@ static double scale( const double x ) { int main( void ) { // Create an input strided array: - double X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; + double X[6] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; // Create a mask strided array: - uint8_t M[] = { 0, 0, 1, 0, 0, 1 }; + uint8_t M[6] = { 0, 0, 1, 0, 0, 1 }; // Create an output strided array: - double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; + double Y[6] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; // Specify the number of elements: int64_t N = 6; From 9d52e1da9f6a9fdd50f29479c666f83edad4c377 Mon Sep 17 00:00:00 2001 From: JavaTypedScript Date: Tue, 18 Mar 2025 19:25:50 +0530 Subject: [PATCH 2/3] Update example.c Signed-off-by: JavaTypedScript --- .../@stdlib/strided/base/dmskmap/examples/c/example.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c b/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c index 75efd2700ce1..e91615871552 100644 --- a/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c +++ b/lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c @@ -28,13 +28,13 @@ static double scale( const double x ) { int main( void ) { // Create an input strided array: - double X[6] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; + const double X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 }; // Create a mask strided array: - uint8_t M[6] = { 0, 0, 1, 0, 0, 1 }; + const uint8_t M[] = { 0, 0, 1, 0, 0, 1 }; // Create an output strided array: - double Y[6] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; + double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; // Specify the number of elements: int64_t N = 6; From f7ce803c8d77d39e02f443cd0466d709d8d83bd1 Mon Sep 17 00:00:00 2001 From: JavaTypedScript Date: Tue, 18 Mar 2025 19:32:26 +0530 Subject: [PATCH 3/3] Update benchmark.length.c Signed-off-by: JavaTypedScript --- .../@stdlib/stats/base/smeanors/benchmark/c/benchmark.length.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/base/smeanors/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/stats/base/smeanors/benchmark/c/benchmark.length.c index 6d0d385a7436..18ec7a511a6f 100644 --- a/lib/node_modules/@stdlib/stats/base/smeanors/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/stats/base/smeanors/benchmark/c/benchmark.length.c @@ -96,7 +96,7 @@ static float rand_float( void ) { */ static double benchmark( int iterations, int len ) { double elapsed; - float x[ len ]; + double x[ len ]; float v; double t; int i;