Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Aug 1, 2024
1 parent 45b0db7 commit 9214fdb
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 58 deletions.
1 change: 1 addition & 0 deletions .github/.keepalive
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2024-08-01T04:01:49.104Z
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ docs/**/node_modules/
pids
*.pid
*.seed
yarn.lock
package-lock.json

# Typescript #
##############
Expand Down
75 changes: 31 additions & 44 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,88 +2,75 @@

> Package changelog.
<section class="release" id="v0.2.2">

## 0.2.2 (2024-07-28)
<section class="release" id="unreleased">

No changes reported for this release.
## Unreleased (2024-08-01)

</section>
<section class="commits">

<!-- /.release -->
### Commits

<section class="release" id="v0.2.1">
<details>

## 0.2.1 (2024-02-24)
- [`22c4d29`](https://github.com/stdlib-js/stdlib/commit/22c4d29898e2b5bb4cb071a6b7f62536027eaf28) - **docs:** remove blank line _(by Athan Reines)_

No changes reported for this release.
</details>

</section>

<!-- /.release -->
<!-- /.commits -->

<section class="release" id="v0.2.0">
<section class="contributors">

## 0.2.0 (2024-02-14)
### Contributors

No changes reported for this release.
A total of 1 person contributed to this release. Thank you to this contributor:

- Athan Reines

</section>

<!-- /.release -->
<!-- /.contributors -->

<section class="release" id="v0.1.0">
</section>

## 0.1.0 (2023-09-23)
<!-- /.release -->

<section class="features">
<section class="release" id="v0.2.2">

### Features
## 0.2.2 (2024-07-28)

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

</section>

<!-- /.features -->

<section class="breaking-changes">
<!-- /.release -->

### BREAKING CHANGES
<section class="release" id="v0.2.1">

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

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

</section>

<!-- /.breaking-changes -->

<section class="commits">

### Commits
<!-- /.release -->

<details>
<section class="release" id="v0.2.0">

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

</details>
No changes reported for this release.

</section>

<!-- /.commits -->

<section class="contributors">

### Contributors

A total of 1 person contributed to this release. Thank you to this contributor:
<!-- /.release -->

- Philipp Burckhardt
<section class="release" id="v0.1.0">

</section>
## 0.1.0 (2023-09-23)

<!-- /.contributors -->
No changes reported for this release.

</section>

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-assert-is-row-major.svg
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-assert-is-row-major

[test-image]: https://github.com/stdlib-js/ndarray-base-assert-is-row-major/actions/workflows/test.yml/badge.svg?branch=v0.2.2
[test-url]: https://github.com/stdlib-js/ndarray-base-assert-is-row-major/actions/workflows/test.yml?query=branch:v0.2.2
[test-image]: https://github.com/stdlib-js/ndarray-base-assert-is-row-major/actions/workflows/test.yml/badge.svg?branch=main
[test-url]: https://github.com/stdlib-js/ndarray-base-assert-is-row-major/actions/workflows/test.yml?query=branch:main

[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-assert-is-row-major/main.svg
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-assert-is-row-major?branch=main
Expand Down
19 changes: 8 additions & 11 deletions benchmark/c/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
* limitations under the License.
*/

/**
* Benchmark `is_row_major`.
*/
#include "stdlib/ndarray/base/assert/is_row_major.h"
#include <stdlib.h>
#include <stdio.h>
Expand All @@ -34,7 +31,7 @@
/**
* Prints the TAP version.
*/
void print_version() {
static void print_version( void ) {
printf( "TAP version 13\n" );
}

Expand All @@ -44,7 +41,7 @@ void print_version() {
* @param total total number of tests
* @param passing total number of passing tests
*/
void print_summary( int total, int passing ) {
static void print_summary( int total, int passing ) {
printf( "#\n" );
printf( "1..%d\n", total ); // TAP plan
printf( "# total %d\n", total );
Expand All @@ -58,7 +55,7 @@ void print_summary( int total, int passing ) {
*
* @param elapsed elapsed time in seconds
*/
void print_results( double elapsed ) {
static void print_results( double elapsed ) {
double rate = (double)ITERATIONS / elapsed;
printf( " ---\n" );
printf( " iterations: %d\n", ITERATIONS );
Expand All @@ -72,18 +69,18 @@ void print_results( double elapsed ) {
*
* @return clock time
*/
double tic() {
static double tic( void ) {
struct timeval now;
gettimeofday( &now, NULL );
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
}

/**
* Generates a random double on the interval [0,1].
* Generates a random number on the interval [0,1).
*
* @return random double
* @return random number
*/
double rand_double() {
static double rand_double( void ) {
int r = rand();
return (double)r / ( (double)RAND_MAX + 1.0 );
}
Expand All @@ -93,7 +90,7 @@ double rand_double() {
*
* @return elapsed time in seconds
*/
double benchmark() {
static double benchmark( void ) {
double elapsed;
int8_t b;
double t;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"url": "https://github.com/stdlib-js/stdlib/issues"
},
"dependencies": {
"@stdlib/math-base-special-abs": "^0.2.1",
"@stdlib/math-base-special-abs": "^0.2.2",
"@stdlib/types": "^0.3.2",
"@stdlib/utils-library-manifest": "^0.2.2"
},
Expand Down

0 comments on commit 9214fdb

Please sign in to comment.