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 Jul 31, 2024
1 parent 79c57e4 commit 4e6009c
Show file tree
Hide file tree
Showing 38 changed files with 418 additions and 506 deletions.
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
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<section class="release" id="unreleased">

## Unreleased (2024-07-27)
## Unreleased (2024-07-31)

<section class="packages">

Expand Down Expand Up @@ -260,6 +260,16 @@

<!-- /.features -->

<section class="bug-fixes">

##### Bug Fixes

- [`c57d1d8`](https://github.com/stdlib-js/stdlib/commit/c57d1d880a32cfaff0c57744c81ef641640cddef) - return subscripts from perspective of ndarray view, not buffer

</section>

<!-- /.bug-fixes -->

</details>

</section>
Expand Down Expand Up @@ -805,6 +815,8 @@ A total of 4 people contributed to this release. Thank you to the following cont

<details>

- [`c57d1d8`](https://github.com/stdlib-js/stdlib/commit/c57d1d880a32cfaff0c57744c81ef641640cddef) - **fix:** return subscripts from perspective of ndarray view, not buffer _(by Athan Reines)_
- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_
- [`6e4b9eb`](https://github.com/stdlib-js/stdlib/commit/6e4b9ebc31d9629446019e37e31bfe9b180b675c) - **feat:** update namespace TypeScript declarations [(#2681)](https://github.com/stdlib-js/stdlib/pull/2681) _(by stdlib-bot, Philipp Burckhardt)_
- [`7ee91a5`](https://github.com/stdlib-js/stdlib/commit/7ee91a531462ec823da632c6ae8ff65a8d16549e) - **docs:** update namespace table of contents [(#2674)](https://github.com/stdlib-js/stdlib/pull/2674) _(by stdlib-bot, Athan Reines)_
- [`d31e751`](https://github.com/stdlib-js/stdlib/commit/d31e7515b71dc5b76751173c7724d73d943b1473) - **feat:** add `forEach` to namespace _(by Athan Reines)_
Expand Down
19 changes: 8 additions & 11 deletions base/assert/is-allowed-data-type-cast/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_allowed_data_type_cast`.
*/
#include "stdlib/ndarray/base/assert/is_allowed_data_type_cast.h"
#include "stdlib/ndarray/casting_modes.h"
#include "stdlib/ndarray/dtypes.h"
Expand All @@ -36,7 +33,7 @@
/**
* Prints the TAP version.
*/
void print_version() {
static void print_version( void ) {
printf( "TAP version 13\n" );
}

Expand All @@ -46,7 +43,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 @@ -60,7 +57,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 @@ -74,18 +71,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 @@ -95,7 +92,7 @@ double rand_double() {
*
* @return elapsed time in seconds
*/
double benchmark() {
static double benchmark( void ) {
double elapsed;
int8_t b;
double t;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
* limitations under the License.
*/

/**
* Benchmark `is_buffer_length_compatible_shape`.
*/
#include "stdlib/ndarray/base/assert/is_buffer_length_compatible_shape.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
19 changes: 8 additions & 11 deletions base/assert/is-buffer-length-compatible/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_buffer_length_compatible`.
*/
#include "stdlib/ndarray/base/assert/is_buffer_length_compatible.h"
#include "stdlib/ndarray/dtypes.h"
#include <stdlib.h>
Expand All @@ -35,7 +32,7 @@
/**
* Prints the TAP version.
*/
void print_version() {
static void print_version( void ) {
printf( "TAP version 13\n" );
}

Expand All @@ -45,7 +42,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 @@ -59,7 +56,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 @@ -73,18 +70,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 @@ -94,7 +91,7 @@ double rand_double() {
*
* @return elapsed time in seconds
*/
double benchmark() {
static double benchmark( void ) {
double elapsed;
int8_t b;
double t;
Expand Down
19 changes: 8 additions & 11 deletions base/assert/is-column-major-contiguous/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_column_major_contiguous`.
*/
#include "stdlib/ndarray/base/assert/is_column_major_contiguous.h"
#include "stdlib/ndarray/dtypes.h"
#include <stdlib.h>
Expand All @@ -35,7 +32,7 @@
/**
* Prints the TAP version.
*/
void print_version() {
static void print_version( void ) {
printf( "TAP version 13\n" );
}

Expand All @@ -45,7 +42,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 @@ -59,7 +56,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 @@ -73,18 +70,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 @@ -94,7 +91,7 @@ double rand_double() {
*
* @return elapsed time in seconds
*/
double benchmark() {
static double benchmark( void ) {
double elapsed;
int8_t b;
double t;
Expand Down
19 changes: 8 additions & 11 deletions base/assert/is-column-major/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_column_major`.
*/
#include "stdlib/ndarray/base/assert/is_column_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
Loading

0 comments on commit 4e6009c

Please sign in to comment.