Skip to content

Commit 514ea09

Browse files
committed
Auto-generated commit
1 parent 7b8d658 commit 514ea09

6 files changed

Lines changed: 37 additions & 74 deletions

File tree

.github/.keepalive

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

.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: 20 additions & 57 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-
- [`d57a9aa`](https://github.com/stdlib-js/stdlib/commit/d57a9aa0e900bde98c302a7ee711aed8be127056) - **docs:** update heading _(by Athan Reines)_
15+
- [`22c4d29`](https://github.com/stdlib-js/stdlib/commit/22c4d29898e2b5bb4cb071a6b7f62536027eaf28) - **docs:** remove blank line _(by Athan Reines)_
3616

3717
</details>
3818

@@ -56,68 +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)_
71+
## 0.1.1 (2023-10-04)
10372

104-
</details>
73+
No changes reported for this release.
10574

10675
</section>
10776

108-
<!-- /.commits -->
109-
110-
<section class="contributors">
111-
112-
### Contributors
113-
114-
A total of 1 person contributed to this release. Thank you to this contributor:
77+
<!-- /.release -->
11578

116-
- Philipp Burckhardt
79+
<section class="release" id="v0.1.0">
11780

118-
</section>
81+
## 0.1.0 (2023-09-22)
11982

120-
<!-- /.contributors -->
83+
No changes reported for this release.
12184

12285
</section>
12386

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
182182
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-wrap-index.svg
183183
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-wrap-index
184184

185-
[test-image]: https://github.com/stdlib-js/ndarray-base-wrap-index/actions/workflows/test.yml/badge.svg?branch=v0.2.2
186-
[test-url]: https://github.com/stdlib-js/ndarray-base-wrap-index/actions/workflows/test.yml?query=branch:v0.2.2
185+
[test-image]: https://github.com/stdlib-js/ndarray-base-wrap-index/actions/workflows/test.yml/badge.svg?branch=main
186+
[test-url]: https://github.com/stdlib-js/ndarray-base-wrap-index/actions/workflows/test.yml?query=branch:main
187187

188188
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-wrap-index/main.svg
189189
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-wrap-index?branch=main

benchmark/c/benchmark.c

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

19-
/**
20-
* Benchmark `wrap_index`.
21-
*/
2219
#include <stdlib.h>
2320
#include <stdio.h>
2421
#include <stdint.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,7 +90,7 @@ double rand_double() {
9390
*
9491
* @return elapsed time in seconds
9592
*/
96-
double benchmark() {
93+
static double benchmark( void ) {
9794
double elapsed;
9895
int64_t idx;
9996
int64_t max;

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939
"url": "https://github.com/stdlib-js/stdlib/issues"
4040
},
4141
"dependencies": {
42-
"@stdlib/utils-library-manifest": "^0.2.1"
42+
"@stdlib/utils-library-manifest": "^0.2.2"
4343
},
4444
"devDependencies": {
45-
"@stdlib/assert-is-nonnegative-integer": "^0.2.1",
46-
"@stdlib/math-base-special-floor": "^0.2.2",
45+
"@stdlib/assert-is-nonnegative-integer": "^0.2.2",
46+
"@stdlib/math-base-special-floor": "^0.2.3",
4747
"@stdlib/random-base-discrete-uniform": "^0.2.1",
4848
"@stdlib/random-base-randu": "^0.2.1",
4949
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5050
"istanbul": "^0.4.1",
5151
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
52-
"@stdlib/bench-harness": "^0.2.1"
52+
"@stdlib/bench-harness": "^0.2.2"
5353
},
5454
"engines": {
5555
"node": ">=0.10.0",

0 commit comments

Comments
 (0)