Skip to content

Commit 8ce4612

Browse files
chore: update copyright years
1 parent 306ce69 commit 8ce4612

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

lib/node_modules/@stdlib/stats/base/dnanmeanors/benchmark/c/benchmark.length.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ static double benchmark1( int iterations, int len ) {
102102
int i;
103103

104104
for ( i = 0; i < len; i++ ) {
105-
x[ i ] = ( rand_double() * 20000.0 ) - 10000.0;
105+
if ( rand_double() < 0.2 ) {
106+
x[ i ] = 0.0 / 0.0; // NaN
107+
} else {
108+
x[ i ] = ( rand_double() * 20000.0 ) - 10000.0;
109+
}
106110
}
107111
v = 0.0;
108112
t = tic();
@@ -136,7 +140,11 @@ static double benchmark2( int iterations, int len ) {
136140
int i;
137141

138142
for ( i = 0; i < len; i++ ) {
139-
x[ i ] = ( rand_double() * 20000.0 ) - 10000.0;
143+
if ( rand_double() < 0.2 ) {
144+
x[ i ] = 0.0 / 0.0; // NaN
145+
} else {
146+
x[ i ] = ( rand_double() * 20000.0 ) - 10000.0;
147+
}
140148
}
141149
v = 0.0;
142150
t = tic();

lib/node_modules/@stdlib/stats/base/dnanmeanors/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2025 The Stdlib Authors.
4+
* Copyright (c) 2020 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)