Skip to content

Commit 4f21994

Browse files
committed
Auto-generated commit
1 parent 724bb47 commit 4f21994

File tree

6 files changed

+41
-80
lines changed

6 files changed

+41
-80
lines changed

.github/.keepalive

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2024-08-01T01:29:52.003Z

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ docs/**/node_modules/
101101
pids
102102
*.pid
103103
*.seed
104+
yarn.lock
105+
package-lock.json
104106

105107
# Typescript #
106108
##############

CHANGELOG.md

Lines changed: 21 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,17 @@
22

33
> Package changelog.
44
5-
<section class="release" id="v0.2.2">
6-
7-
## 0.2.2 (2024-07-27)
8-
9-
No changes reported for this release.
10-
11-
</section>
12-
13-
<!-- /.release -->
14-
15-
<section class="release" id="v0.2.1">
16-
17-
## 0.2.1 (2024-02-22)
18-
19-
No changes reported for this release.
5+
<section class="release" id="unreleased">
206

21-
</section>
22-
23-
<!-- /.release -->
24-
25-
<section class="release" id="v0.2.0">
26-
27-
## 0.2.0 (2024-02-14)
7+
## Unreleased (2024-08-01)
288

299
<section class="commits">
3010

3111
### Commits
3212

3313
<details>
3414

35-
- [`bf2cf8b`](https://github.com/stdlib-js/stdlib/commit/bf2cf8b0424e608a4e3abb6d18a8b44d790aa99c) - **build:** remove tslint directives _(by Philipp Burckhardt)_
15+
- [`22c4d29`](https://github.com/stdlib-js/stdlib/commit/22c4d29898e2b5bb4cb071a6b7f62536027eaf28) - **docs:** remove blank line _(by Athan Reines)_
3616

3717
</details>
3818

@@ -46,7 +26,7 @@ No changes reported for this release.
4626

4727
A total of 1 person contributed to this release. Thank you to this contributor:
4828

49-
- Philipp Burckhardt
29+
- Athan Reines
5030

5131
</section>
5232

@@ -56,70 +36,51 @@ A total of 1 person contributed to this release. Thank you to this contributor:
5636

5737
<!-- /.release -->
5838

59-
<section class="release" id="v0.1.1">
39+
<section class="release" id="v0.2.2">
6040

61-
## 0.1.1 (2023-10-04)
41+
## 0.2.2 (2024-07-27)
6242

6343
No changes reported for this release.
6444

6545
</section>
6646

6747
<!-- /.release -->
6848

69-
<section class="release" id="v0.1.0">
70-
71-
## 0.1.0 (2023-09-22)
72-
73-
<section class="features">
49+
<section class="release" id="v0.2.1">
7450

75-
### Features
51+
## 0.2.1 (2024-02-22)
7652

77-
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0) - update minimum TypeScript version
53+
No changes reported for this release.
7854

7955
</section>
8056

81-
<!-- /.features -->
82-
83-
<section class="breaking-changes">
57+
<!-- /.release -->
8458

85-
### BREAKING CHANGES
59+
<section class="release" id="v0.2.0">
8660

87-
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version
88-
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1
61+
## 0.2.0 (2024-02-14)
8962

90-
- To migrate, users should upgrade their TypeScript version to at least version 4.1.
63+
No changes reported for this release.
9164

9265
</section>
9366

94-
<!-- /.breaking-changes -->
95-
96-
<section class="commits">
97-
98-
### Commits
67+
<!-- /.release -->
9968

100-
<details>
69+
<section class="release" id="v0.1.1">
10170

102-
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_
103-
- [`28e1c84`](https://github.com/stdlib-js/stdlib/commit/28e1c84390d88044883c9ef940a12f38d66ea3ef) - **docs:** resolve C lint errors _(by Athan Reines)_
71+
## 0.1.1 (2023-10-04)
10472

105-
</details>
73+
No changes reported for this release.
10674

10775
</section>
10876

109-
<!-- /.commits -->
110-
111-
<section class="contributors">
112-
113-
### Contributors
114-
115-
A total of 2 people contributed to this release. Thank you to the following contributors:
77+
<!-- /.release -->
11678

117-
- Athan Reines
118-
- Philipp Burckhardt
79+
<section class="release" id="v0.1.0">
11980

120-
</section>
81+
## 0.1.0 (2023-09-22)
12182

122-
<!-- /.contributors -->
83+
No changes reported for this release.
12384

12485
</section>
12586

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
469469
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-broadcast-shapes.svg
470470
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-broadcast-shapes
471471

472-
[test-image]: https://github.com/stdlib-js/ndarray-base-broadcast-shapes/actions/workflows/test.yml/badge.svg?branch=v0.2.2
473-
[test-url]: https://github.com/stdlib-js/ndarray-base-broadcast-shapes/actions/workflows/test.yml?query=branch:v0.2.2
472+
[test-image]: https://github.com/stdlib-js/ndarray-base-broadcast-shapes/actions/workflows/test.yml/badge.svg?branch=main
473+
[test-url]: https://github.com/stdlib-js/ndarray-base-broadcast-shapes/actions/workflows/test.yml?query=branch:main
474474

475475
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-broadcast-shapes/main.svg
476476
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-broadcast-shapes?branch=main

benchmark/c/benchmark.c

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

19-
/**
20-
* Benchmark `broadcast_shapes`.
21-
*/
2219
#include "stdlib/ndarray/base/broadcast_shapes.h"
2320
#include <stdlib.h>
2421
#include <stdio.h>
@@ -34,7 +31,7 @@
3431
/**
3532
* Prints the TAP version.
3633
*/
37-
void print_version() {
34+
static void print_version( void ) {
3835
printf( "TAP version 13\n" );
3936
}
4037

@@ -44,7 +41,7 @@ void print_version() {
4441
* @param total total number of tests
4542
* @param passing total number of passing tests
4643
*/
47-
void print_summary( int total, int passing ) {
44+
static void print_summary( int total, int passing ) {
4845
printf( "#\n" );
4946
printf( "1..%d\n", total ); // TAP plan
5047
printf( "# total %d\n", total );
@@ -58,7 +55,7 @@ void print_summary( int total, int passing ) {
5855
*
5956
* @param elapsed elapsed time in seconds
6057
*/
61-
void print_results( double elapsed ) {
58+
static void print_results( double elapsed ) {
6259
double rate = (double)ITERATIONS / elapsed;
6360
printf( " ---\n" );
6461
printf( " iterations: %d\n", ITERATIONS );
@@ -72,18 +69,18 @@ void print_results( double elapsed ) {
7269
*
7370
* @return clock time
7471
*/
75-
double tic() {
72+
static double tic( void ) {
7673
struct timeval now;
7774
gettimeofday( &now, NULL );
7875
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
7976
}
8077

8178
/**
82-
* Generates a random double on the interval [0,1].
79+
* Generates a random number on the interval [0,1).
8380
*
84-
* @return random double
81+
* @return random number
8582
*/
86-
double rand_double() {
83+
static double rand_double( void ) {
8784
int r = rand();
8885
return (double)r / ( (double)RAND_MAX + 1.0 );
8986
}
@@ -93,17 +90,17 @@ double rand_double() {
9390
*
9491
* @return elapsed time in seconds
9592
*/
96-
double benchmark() {
93+
static double benchmark( void ) {
9794
double elapsed;
9895
int8_t status;
9996
double t;
10097
int i;
10198

102-
int64_t sh1[] = { 8, 1, 6, 1 };
103-
int64_t sh2[] = { 7, 1, 5 };
99+
const int64_t sh1[] = { 8, 1, 6, 1 };
100+
const int64_t sh2[] = { 7, 1, 5 };
104101

105-
int64_t ndims[] = { 4, 3 };
106-
int64_t *shapes[] = { sh1, sh2 };
102+
const int64_t ndims[] = { 4, 3 };
103+
const int64_t *shapes[] = { sh1, sh2 };
107104

108105
int64_t out[] = { 0, 0, 0, 0 };
109106

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
},
4141
"dependencies": {
4242
"@stdlib/types": "^0.3.2",
43-
"@stdlib/utils-library-manifest": "^0.2.1"
43+
"@stdlib/utils-library-manifest": "^0.2.2"
4444
},
4545
"devDependencies": {
46-
"@stdlib/string-left-pad": "^0.2.1",
46+
"@stdlib/string-left-pad": "^0.2.2",
4747
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
4848
"istanbul": "^0.4.1",
4949
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
50-
"@stdlib/bench-harness": "^0.2.1"
50+
"@stdlib/bench-harness": "^0.2.2"
5151
},
5252
"engines": {
5353
"node": ">=0.10.0",

0 commit comments

Comments
 (0)