Skip to content

Commit 8460f29

Browse files
committed
Auto-generated commit
1 parent 18b82ac commit 8460f29

File tree

7 files changed

+153
-81
lines changed

7 files changed

+153
-81
lines changed

.github/.keepalive

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2024-08-01T04:02:00.100Z

.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: 19 additions & 56 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.0">
6-
7-
## 0.2.0 (2024-07-28)
8-
9-
No changes reported for this release.
10-
11-
</section>
12-
13-
<!-- /.release -->
14-
15-
<section class="release" id="v0.1.1">
5+
<section class="release" id="unreleased">
166

17-
## 0.1.1 (2024-02-24)
18-
19-
No changes reported for this release.
20-
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-
- [`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)_
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,58 +36,41 @@ 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.0">
60-
61-
## 0.1.0 (2023-09-23)
39+
<section class="release" id="v0.2.1">
6240

63-
<section class="features">
41+
## 0.2.1 (2024-07-28)
6442

65-
### Features
66-
67-
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0) - update minimum TypeScript version
43+
No changes reported for this release.
6844

6945
</section>
7046

71-
<!-- /.features -->
72-
73-
<section class="breaking-changes">
47+
<!-- /.release -->
7448

75-
### BREAKING CHANGES
49+
<section class="release" id="v0.1.1">
7650

77-
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version
78-
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1
51+
## 0.1.1 (2024-02-24)
7952

80-
- To migrate, users should upgrade their TypeScript version to at least version 4.1.
53+
No changes reported for this release.
8154

8255
</section>
8356

84-
<!-- /.breaking-changes -->
85-
86-
<section class="commits">
87-
88-
### Commits
57+
<!-- /.release -->
8958

90-
<details>
59+
<section class="release" id="v0.2.0">
9160

92-
- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_
61+
## 0.2.0 (2024-02-14)
9362

94-
</details>
63+
No changes reported for this release.
9564

9665
</section>
9766

98-
<!-- /.commits -->
99-
100-
<section class="contributors">
101-
102-
### Contributors
103-
104-
A total of 1 person contributed to this release. Thank you to this contributor:
67+
<!-- /.release -->
10568

106-
- Philipp Burckhardt
69+
<section class="release" id="v0.1.0">
10770

108-
</section>
71+
## 0.1.0 (2023-09-23)
10972

110-
<!-- /.contributors -->
73+
No changes reported for this release.
11174

11275
</section>
11376

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,6 @@ For more information on the project, filing bug reports and feature requests, an
196196

197197
---
198198

199-
## License
200-
201-
See [LICENSE][stdlib-license].
202-
203-
204199
## Copyright
205200

206201
Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
@@ -216,11 +211,11 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
216211
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-assert-is-row-major-contiguous.svg
217212
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-assert-is-row-major-contiguous
218213

219-
[test-image]: https://github.com/stdlib-js/ndarray-base-assert-is-row-major-contiguous/actions/workflows/test.yml/badge.svg?branch=v0.2.1
220-
[test-url]: https://github.com/stdlib-js/ndarray-base-assert-is-row-major-contiguous/actions/workflows/test.yml?query=branch:v0.2.1
214+
[test-image]: https://github.com/stdlib-js/ndarray-base-assert-is-row-major-contiguous/actions/workflows/test.yml/badge.svg?branch=main
215+
[test-url]: https://github.com/stdlib-js/ndarray-base-assert-is-row-major-contiguous/actions/workflows/test.yml?query=branch:main
221216

222217
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-assert-is-row-major-contiguous/main.svg
223-
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-assert-is-row-major-contiguous?branch=v0.2.1
218+
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-assert-is-row-major-contiguous?branch=main
224219

225220
<!--
226221
@@ -247,8 +242,6 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
247242
[esm-readme]: https://github.com/stdlib-js/ndarray-base-assert-is-row-major-contiguous/blob/esm/README.md
248243
[branches-url]: https://github.com/stdlib-js/ndarray-base-assert-is-row-major-contiguous/blob/main/branches.md
249244

250-
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/ndarray-base-assert-is-row-major-contiguous/main/LICENSE
251-
252245
</section>
253246

254247
<!-- /.links -->

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 `is_row_major_contiguous`.
21-
*/
2219
#include "stdlib/ndarray/base/assert/is_row_major_contiguous.h"
2320
#include "stdlib/ndarray/dtypes.h"
2421
#include <stdlib.h>
@@ -35,7 +32,7 @@
3532
/**
3633
* Prints the TAP version.
3734
*/
38-
void print_version() {
35+
static void print_version( void ) {
3936
printf( "TAP version 13\n" );
4037
}
4138

@@ -45,7 +42,7 @@ void print_version() {
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() {
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() {
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() {
9491
*
9592
* @return elapsed time in seconds
9693
*/
97-
double benchmark() {
94+
static double benchmark( void ) {
9895
double elapsed;
9996
int8_t b;
10097
double t;

dist/index.js

Lines changed: 47 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.js

Lines changed: 73 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)