Skip to content

Commit 95c785f

Browse files
committed
Auto-generated commit
1 parent 511f563 commit 95c785f

File tree

6 files changed

+34
-71
lines changed

6 files changed

+34
-71
lines changed

.github/.keepalive

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2024-08-01T03:32:48.229Z

.gitignore

+2
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

+19-56
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-28)
8-
9-
No changes reported for this release.
10-
11-
</section>
5+
<section class="release" id="unreleased">
126

13-
<!-- /.release -->
14-
15-
<section class="release" id="v0.2.1">
16-
17-
## 0.2.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)
62-
63-
<section class="features">
39+
<section class="release" id="v0.2.2">
6440

65-
### Features
41+
## 0.2.2 (2024-07-28)
6642

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.2.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.2.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

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
216216
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-assert-is-single-segment-compatible.svg
217217
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-assert-is-single-segment-compatible
218218

219-
[test-image]: https://github.com/stdlib-js/ndarray-base-assert-is-single-segment-compatible/actions/workflows/test.yml/badge.svg?branch=v0.2.2
220-
[test-url]: https://github.com/stdlib-js/ndarray-base-assert-is-single-segment-compatible/actions/workflows/test.yml?query=branch:v0.2.2
219+
[test-image]: https://github.com/stdlib-js/ndarray-base-assert-is-single-segment-compatible/actions/workflows/test.yml/badge.svg?branch=main
220+
[test-url]: https://github.com/stdlib-js/ndarray-base-assert-is-single-segment-compatible/actions/workflows/test.yml?query=branch:main
221221

222222
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-assert-is-single-segment-compatible/main.svg
223223
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-assert-is-single-segment-compatible?branch=main

benchmark/c/benchmark.c

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

19-
/**
20-
* Benchmark `is_single_segment_compatible`.
21-
*/
2219
#include "stdlib/ndarray/base/assert/is_single_segment_compatible.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;

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
"url": "https://github.com/stdlib-js/stdlib/issues"
4040
},
4141
"dependencies": {
42-
"@stdlib/ndarray-base-bytes-per-element": "^0.2.1",
42+
"@stdlib/ndarray-base-bytes-per-element": "^0.2.2",
4343
"@stdlib/ndarray-base-minmax-view-buffer-index": "^0.2.2",
4444
"@stdlib/ndarray-base-numel": "^0.2.2",
45-
"@stdlib/ndarray-dtypes": "^0.2.1",
45+
"@stdlib/ndarray-dtypes": "^0.3.0",
4646
"@stdlib/types": "^0.3.2",
4747
"@stdlib/utils-library-manifest": "^0.2.2"
4848
},

0 commit comments

Comments
 (0)