Skip to content

Commit 152684f

Browse files
committed
Auto-generated commit
1 parent 5da8c30 commit 152684f

File tree

5 files changed

+48
-16
lines changed

5 files changed

+48
-16
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2024-07-28)
8+
9+
<section class="commits">
10+
11+
### Commits
12+
13+
<details>
14+
15+
- [`272ae7a`](https://github.com/stdlib-js/stdlib/commit/272ae7ac5c576c68cfab1b6e304c86407faa20cd) - **docs:** remove comment _(by Athan Reines)_
16+
- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_
17+
18+
</details>
19+
20+
</section>
21+
22+
<!-- /.commits -->
23+
24+
<section class="contributors">
25+
26+
### Contributors
27+
28+
A total of 1 person contributed to this release. Thank you to this contributor:
29+
30+
- Athan Reines
31+
32+
</section>
33+
34+
<!-- /.contributors -->
35+
36+
</section>
37+
38+
<!-- /.release -->
39+
540
<section class="release" id="v0.2.2">
641

742
## 0.2.2 (2024-07-27)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
243243
[npm-image]: http://img.shields.io/npm/v/@stdlib/blas-ext-base-dsnansumors.svg
244244
[npm-url]: https://npmjs.org/package/@stdlib/blas-ext-base-dsnansumors
245245

246-
[test-image]: https://github.com/stdlib-js/blas-ext-base-dsnansumors/actions/workflows/test.yml/badge.svg?branch=v0.2.2
247-
[test-url]: https://github.com/stdlib-js/blas-ext-base-dsnansumors/actions/workflows/test.yml?query=branch:v0.2.2
246+
[test-image]: https://github.com/stdlib-js/blas-ext-base-dsnansumors/actions/workflows/test.yml/badge.svg?branch=main
247+
[test-url]: https://github.com/stdlib-js/blas-ext-base-dsnansumors/actions/workflows/test.yml?query=branch:main
248248

249249
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/blas-ext-base-dsnansumors/main.svg
250250
[coverage-url]: https://codecov.io/github/stdlib-js/blas-ext-base-dsnansumors?branch=main

benchmark/c/benchmark.length.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/**
3333
* Prints the TAP version.
3434
*/
35-
void print_version( void ) {
35+
static void print_version( void ) {
3636
printf( "TAP version 13\n" );
3737
}
3838

@@ -42,7 +42,7 @@ void print_version( void ) {
4242
* @param total total number of tests
4343
* @param passing total number of passing tests
4444
*/
45-
void print_summary( int total, int passing ) {
45+
static void print_summary( int total, int passing ) {
4646
printf( "#\n" );
4747
printf( "1..%d\n", total ); // TAP plan
4848
printf( "# total %d\n", total );
@@ -57,7 +57,7 @@ void print_summary( int total, int passing ) {
5757
* @param iterations number of iterations
5858
* @param elapsed elapsed time in seconds
5959
*/
60-
void print_results( int iterations, double elapsed ) {
60+
static void print_results( int iterations, double elapsed ) {
6161
double rate = (double)iterations / elapsed;
6262
printf( " ---\n" );
6363
printf( " iterations: %d\n", iterations );
@@ -71,30 +71,30 @@ void print_results( int iterations, double elapsed ) {
7171
*
7272
* @return clock time
7373
*/
74-
double tic( void ) {
74+
static double tic( void ) {
7575
struct timeval now;
7676
gettimeofday( &now, NULL );
7777
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
7878
}
7979

8080
/**
81-
* Generates a random number on the interval [0,1].
81+
* Generates a random number on the interval [0,1).
8282
*
8383
* @return random number
8484
*/
85-
float rand_float( void ) {
85+
static float rand_float( void ) {
8686
int r = rand();
8787
return (float)r / ( (float)RAND_MAX + 1.0f );
8888
}
8989

90-
/*
90+
/**
9191
* Runs a benchmark.
9292
*
9393
* @param iterations number of iterations
9494
* @param len array length
9595
* @return elapsed time in seconds
9696
*/
97-
double benchmark( int iterations, int len ) {
97+
static double benchmark( int iterations, int len ) {
9898
double elapsed;
9999
float x[ len ];
100100
double v;

include/stdlib/blas/ext/base/dsnansumors.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
/**
20-
* Header file containing function declarations.
21-
*/
2219
#ifndef STDLIB_BLAS_EXT_BASE_DSNANSUMORS_H
2320
#define STDLIB_BLAS_EXT_BASE_DSNANSUMORS_H
2421

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@
4646
"@stdlib/math-base-assert-is-nanf": "^0.2.2",
4747
"@stdlib/napi-argv": "^0.2.2",
4848
"@stdlib/napi-argv-int64": "^0.2.2",
49-
"@stdlib/napi-argv-strided-float32array": "^0.2.1",
49+
"@stdlib/napi-argv-strided-float32array": "^0.2.2",
5050
"@stdlib/napi-export": "^0.2.2",
5151
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.2",
5252
"@stdlib/utils-library-manifest": "^0.2.2",
5353
"@stdlib/utils-try-require": "^0.2.2"
5454
},
5555
"devDependencies": {
5656
"@stdlib/array-filled-by": "^0.2.1",
57-
"@stdlib/array-float32": "^0.2.1",
57+
"@stdlib/array-float32": "^0.2.2",
5858
"@stdlib/assert-is-browser": "^0.2.2",
5959
"@stdlib/math-base-special-pow": "^0.2.1",
6060
"@stdlib/random-base-bernoulli": "^0.2.1",
@@ -66,7 +66,7 @@
6666
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
6767
"istanbul": "^0.4.1",
6868
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
69-
"@stdlib/bench-harness": "^0.2.1"
69+
"@stdlib/bench-harness": "^0.2.2"
7070
},
7171
"engines": {
7272
"node": ">=0.10.0",

0 commit comments

Comments
 (0)