Skip to content

Commit 2122379

Browse files
committed
Auto-generated commit
1 parent ff323ec commit 2122379

6 files changed

Lines changed: 52 additions & 102 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:47.425Z

.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 & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +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.
20-
21-
</section>
5+
<section class="release" id="unreleased">
226

23-
<!-- /.release -->
24-
25-
<section class="release" id="v0.2.0">
26-
27-
## 0.2.0 (2024-02-14)
28-
29-
<section class="features">
30-
31-
### Features
32-
33-
- [`5363916`](https://github.com/stdlib-js/stdlib/commit/5363916b97a8b70622fff6d8663760d3582e4336) - add support for `normalize` index mode
34-
35-
</section>
36-
37-
<!-- /.features -->
7+
## Unreleased (2024-08-01)
388

399
<section class="commits">
4010

4111
### Commits
4212

4313
<details>
4414

45-
- [`446b4cb`](https://github.com/stdlib-js/stdlib/commit/446b4cbdd8e1e8099fa66e60e5d680a9bb0e3498) - **bench:** fix value range _(by Athan Reines)_
46-
- [`5363916`](https://github.com/stdlib-js/stdlib/commit/5363916b97a8b70622fff6d8663760d3582e4336) - **feat:** add support for `normalize` index mode _(by Athan Reines)_
47-
- [`453dd85`](https://github.com/stdlib-js/stdlib/commit/453dd85b5dd186d2b4d458256fe84906e1503fe2) - **build:** remove tslint directives _(by Philipp Burckhardt)_
15+
- [`22c4d29`](https://github.com/stdlib-js/stdlib/commit/22c4d29898e2b5bb4cb071a6b7f62536027eaf28) - **docs:** remove blank line _(by Athan Reines)_
4816

4917
</details>
5018

@@ -56,10 +24,9 @@ No changes reported for this release.
5624

5725
### Contributors
5826

59-
A total of 2 people contributed to this release. Thank you to the following contributors:
27+
A total of 1 person contributed to this release. Thank you to this contributor:
6028

6129
- Athan Reines
62-
- Philipp Burckhardt
6330

6431
</section>
6532

@@ -69,68 +36,51 @@ A total of 2 people contributed to this release. Thank you to the following cont
6936

7037
<!-- /.release -->
7138

72-
<section class="release" id="v0.1.1">
39+
<section class="release" id="v0.2.2">
7340

74-
## 0.1.1 (2023-10-04)
41+
## 0.2.2 (2024-07-27)
7542

7643
No changes reported for this release.
7744

7845
</section>
7946

8047
<!-- /.release -->
8148

82-
<section class="release" id="v0.1.0">
83-
84-
## 0.1.0 (2023-09-22)
85-
86-
<section class="features">
49+
<section class="release" id="v0.2.1">
8750

88-
### Features
51+
## 0.2.1 (2024-02-22)
8952

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

9255
</section>
9356

94-
<!-- /.features -->
95-
96-
<section class="breaking-changes">
57+
<!-- /.release -->
9758

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

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

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

10565
</section>
10666

107-
<!-- /.breaking-changes -->
108-
109-
<section class="commits">
110-
111-
### Commits
67+
<!-- /.release -->
11268

113-
<details>
69+
<section class="release" id="v0.1.1">
11470

115-
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_
71+
## 0.1.1 (2023-10-04)
11672

117-
</details>
73+
No changes reported for this release.
11874

11975
</section>
12076

121-
<!-- /.commits -->
122-
123-
<section class="contributors">
124-
125-
### Contributors
126-
127-
A total of 1 person contributed to this release. Thank you to this contributor:
77+
<!-- /.release -->
12878

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

131-
</section>
81+
## 0.1.0 (2023-09-22)
13282

133-
<!-- /.contributors -->
83+
No changes reported for this release.
13484

13585
</section>
13686

README.md

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

321-
[test-image]: https://github.com/stdlib-js/ndarray-base-sub2ind/actions/workflows/test.yml/badge.svg?branch=v0.2.2
322-
[test-url]: https://github.com/stdlib-js/ndarray-base-sub2ind/actions/workflows/test.yml?query=branch:v0.2.2
321+
[test-image]: https://github.com/stdlib-js/ndarray-base-sub2ind/actions/workflows/test.yml/badge.svg?branch=main
322+
[test-url]: https://github.com/stdlib-js/ndarray-base-sub2ind/actions/workflows/test.yml?query=branch:main
323323

324324
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-sub2ind/main.svg
325325
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-sub2ind?branch=main

benchmark/c/benchmark.c

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

19-
/**
20-
* Benchmark `sub2ind`.
21-
*/
2219
#include "stdlib/ndarray/base/sub2ind.h"
2320
#include "stdlib/ndarray/index_modes.h"
2421
#include <stdlib.h>
@@ -35,7 +32,7 @@
3532
/**
3633
* Prints the TAP version.
3734
*/
38-
void print_version( void ) {
35+
static void print_version( void ) {
3936
printf( "TAP version 13\n" );
4037
}
4138

@@ -45,7 +42,7 @@ void print_version( void ) {
4542
* @param total total number of tests
4643
* @param passing total number of passing tests
4744
*/
48-
void print_summary( int total, int passing ) {
45+
static void print_summary( int total, int passing ) {
4946
printf( "#\n" );
5047
printf( "1..%d\n", total ); // TAP plan
5148
printf( "# total %d\n", total );
@@ -59,7 +56,7 @@ void print_summary( int total, int passing ) {
5956
*
6057
* @param elapsed elapsed time in seconds
6158
*/
62-
void print_results( double elapsed ) {
59+
static void print_results( double elapsed ) {
6360
double rate = (double)ITERATIONS / elapsed;
6461
printf( " ---\n" );
6562
printf( " iterations: %d\n", ITERATIONS );
@@ -73,18 +70,18 @@ void print_results( double elapsed ) {
7370
*
7471
* @return clock time
7572
*/
76-
double tic( void ) {
73+
static double tic( void ) {
7774
struct timeval now;
7875
gettimeofday( &now, NULL );
7976
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
8077
}
8178

8279
/**
83-
* Generates a random double on the interval [0,1].
80+
* Generates a random number on the interval [0,1).
8481
*
85-
* @return random double
82+
* @return random number
8683
*/
87-
double rand_double( void ) {
84+
static double rand_double( void ) {
8885
int r = rand();
8986
return (double)r / ( (double)RAND_MAX + 1.0 );
9087
}
@@ -94,7 +91,7 @@ double rand_double( void ) {
9491
*
9592
* @return elapsed time in seconds
9693
*/
97-
double benchmark1( void ) {
94+
static double benchmark1( void ) {
9895
double elapsed;
9996
int64_t idx;
10097
double t;
@@ -133,7 +130,7 @@ double benchmark1( void ) {
133130
*
134131
* @return elapsed time in seconds
135132
*/
136-
double benchmark2( void ) {
133+
static double benchmark2( void ) {
137134
double elapsed;
138135
int64_t idx;
139136
double t;
@@ -172,7 +169,7 @@ double benchmark2( void ) {
172169
*
173170
* @return elapsed time in seconds
174171
*/
175-
double benchmark3( void ) {
172+
static double benchmark3( void ) {
176173
double elapsed;
177174
int64_t idx;
178175
double t;
@@ -211,7 +208,7 @@ double benchmark3( void ) {
211208
*
212209
* @return elapsed time in seconds
213210
*/
214-
double benchmark4( void ) {
211+
static double benchmark4( void ) {
215212
double elapsed;
216213
int64_t idx;
217214
double t;
@@ -250,7 +247,7 @@ double benchmark4( void ) {
250247
*
251248
* @return elapsed time in seconds
252249
*/
253-
double benchmark5( void ) {
250+
static double benchmark5( void ) {
254251
double elapsed;
255252
int64_t idx;
256253
double t;
@@ -289,7 +286,7 @@ double benchmark5( void ) {
289286
*
290287
* @return elapsed time in seconds
291288
*/
292-
double benchmark6( void ) {
289+
static double benchmark6( void ) {
293290
double elapsed;
294291
int64_t idx;
295292
double t;
@@ -328,7 +325,7 @@ double benchmark6( void ) {
328325
*
329326
* @return elapsed time in seconds
330327
*/
331-
double benchmark7( void ) {
328+
static double benchmark7( void ) {
332329
double elapsed;
333330
int64_t idx;
334331
double t;
@@ -368,7 +365,7 @@ double benchmark7( void ) {
368365
*
369366
* @return elapsed time in seconds
370367
*/
371-
double benchmark8( void ) {
368+
static double benchmark8( void ) {
372369
double elapsed;
373370
int64_t idx;
374371
double t;
@@ -409,7 +406,7 @@ double benchmark8( void ) {
409406
*
410407
* @return elapsed time in seconds
411408
*/
412-
double benchmark9( void ) {
409+
static double benchmark9( void ) {
413410
double elapsed;
414411
int64_t idx;
415412
double t;
@@ -449,7 +446,7 @@ double benchmark9( void ) {
449446
*
450447
* @return elapsed time in seconds
451448
*/
452-
double benchmark10( void ) {
449+
static double benchmark10( void ) {
453450
double elapsed;
454451
int64_t idx;
455452
double t;
@@ -490,7 +487,7 @@ double benchmark10( void ) {
490487
*
491488
* @return elapsed time in seconds
492489
*/
493-
double benchmark11( void ) {
490+
static double benchmark11( void ) {
494491
double elapsed;
495492
int64_t idx;
496493
double t;
@@ -529,7 +526,7 @@ double benchmark11( void ) {
529526
*
530527
* @return elapsed time in seconds
531528
*/
532-
double benchmark12( void ) {
529+
static double benchmark12( void ) {
533530
double elapsed;
534531
int64_t idx;
535532
double t;

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,21 @@
4242
"@stdlib/ndarray-index-modes": "^0.2.2",
4343
"@stdlib/string-format": "^0.2.2",
4444
"@stdlib/types": "^0.3.2",
45-
"@stdlib/utils-library-manifest": "^0.2.1",
45+
"@stdlib/utils-library-manifest": "^0.2.2",
4646
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
4747
},
4848
"devDependencies": {
49-
"@stdlib/assert-is-integer": "^0.2.1",
50-
"@stdlib/math-base-special-floor": "^0.2.2",
51-
"@stdlib/ndarray-base-numel": "^0.2.1",
52-
"@stdlib/ndarray-base-shape2strides": "^0.2.1",
53-
"@stdlib/ndarray-base-strides2offset": "^0.2.1",
49+
"@stdlib/assert-is-integer": "^0.2.2",
50+
"@stdlib/math-base-special-floor": "^0.2.3",
51+
"@stdlib/ndarray-base-numel": "^0.2.2",
52+
"@stdlib/ndarray-base-shape2strides": "^0.2.2",
53+
"@stdlib/ndarray-base-strides2offset": "^0.2.2",
5454
"@stdlib/random-base-discrete-uniform": "^0.2.1",
5555
"@stdlib/random-base-randu": "^0.2.1",
5656
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5757
"istanbul": "^0.4.1",
5858
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
59-
"@stdlib/bench-harness": "^0.2.1"
59+
"@stdlib/bench-harness": "^0.2.2"
6060
},
6161
"engines": {
6262
"node": ">=0.10.0",

0 commit comments

Comments
 (0)