From 61b87c0893177eb0e6703e065d9586203ded5a4a Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 28 Jul 2024 21:23:11 +0000 Subject: [PATCH] Release v0.3.0 --- CHANGELOG.md | 10 +++++++--- README.md | 4 ++-- benchmark/c/cephes/benchmark.c | 17 +++++++---------- benchmark/c/native/benchmark.c | 17 +++++++---------- include/stdlib/math/base/special/fresnelc.h | 3 --- package.json | 4 ++-- 6 files changed, 25 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ac7629..ecd0563 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,9 @@ > Package changelog. -
+
-## Unreleased (2024-07-28) +## 0.3.0 (2024-07-28)
@@ -22,6 +22,9 @@
+- [`272ae7a`](https://github.com/stdlib-js/stdlib/commit/272ae7ac5c576c68cfab1b6e304c86407faa20cd) - **docs:** remove comment _(by Athan Reines)_ +- [`55ec8ed`](https://github.com/stdlib-js/stdlib/commit/55ec8edfeb7000bca7478af116e794f20560e922) - **docs:** remove comment _(by Athan Reines)_ +- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_ - [`3264c24`](https://github.com/stdlib-js/stdlib/commit/3264c24815dcbd08eeb4afbf3909a3223bdaf2c1) - **chore:** update package meta data [(#2686)](https://github.com/stdlib-js/stdlib/pull/2686) _(by stdlib-bot, Athan Reines)_ - [`4a2534a`](https://github.com/stdlib-js/stdlib/commit/4a2534a22c2ead42a6318bed2fce221286f9f7a8) - **feat:** add C implementation for `math/base/special/fresnelc` [(#2680)](https://github.com/stdlib-js/stdlib/pull/2680) _(by Gunj Joshi)_ - [`9ed7d0e`](https://github.com/stdlib-js/stdlib/commit/9ed7d0e7d57edb5ad0dfb65c944bed87d475cbf3) - **chore:** add missing trailing newlines _(by Philipp Burckhardt)_ @@ -36,8 +39,9 @@ ### Contributors -A total of 3 people contributed to this release. Thank you to the following contributors: +A total of 4 people contributed to this release. Thank you to the following contributors: +- Athan Reines - Athan Reines - Gunj Joshi - Philipp Burckhardt diff --git a/README.md b/README.md index c4a295b..4f58a47 100644 --- a/README.md +++ b/README.md @@ -270,8 +270,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. [npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-fresnelc.svg [npm-url]: https://npmjs.org/package/@stdlib/math-base-special-fresnelc -[test-image]: https://github.com/stdlib-js/math-base-special-fresnelc/actions/workflows/test.yml/badge.svg?branch=main -[test-url]: https://github.com/stdlib-js/math-base-special-fresnelc/actions/workflows/test.yml?query=branch:main +[test-image]: https://github.com/stdlib-js/math-base-special-fresnelc/actions/workflows/test.yml/badge.svg?branch=v0.3.0 +[test-url]: https://github.com/stdlib-js/math-base-special-fresnelc/actions/workflows/test.yml?query=branch:v0.3.0 [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-fresnelc/main.svg [coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-fresnelc?branch=main diff --git a/benchmark/c/cephes/benchmark.c b/benchmark/c/cephes/benchmark.c index 4007a2a..bc4bd87 100644 --- a/benchmark/c/cephes/benchmark.c +++ b/benchmark/c/cephes/benchmark.c @@ -16,9 +16,6 @@ * limitations under the License. */ -/** -* Benchmark Cephes `fresnl`. -*/ #include #include #include @@ -37,7 +34,7 @@ extern int fresnl( double x, double *S, double *C ); /** * Prints the TAP version. */ -void print_version() { +static void print_version( void ) { printf( "TAP version 13\n" ); } @@ -47,7 +44,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 ); @@ -61,7 +58,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 ); @@ -75,18 +72,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 number on the interval [0,1]. +* Generates a random number on the interval [0,1). * * @return random number */ -double rand_double() { +static double rand_double( void ) { int r = rand(); return (double)r / ( (double)RAND_MAX + 1.0 ); } @@ -96,7 +93,7 @@ double rand_double() { * * @return elapsed time in seconds */ -double benchmark() { +static double benchmark( void ) { double elapsed; double x; double S; diff --git a/benchmark/c/native/benchmark.c b/benchmark/c/native/benchmark.c index 5c2b01d..5af246a 100644 --- a/benchmark/c/native/benchmark.c +++ b/benchmark/c/native/benchmark.c @@ -16,9 +16,6 @@ * limitations under the License. */ -/** -* Benchmark `fresnelc`. -*/ #include "stdlib/math/base/special/fresnelc.h" #include #include @@ -33,7 +30,7 @@ /** * Prints the TAP version. */ -void print_version() { +static void print_version( void ) { printf( "TAP version 13\n" ); } @@ -43,7 +40,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 ); @@ -57,7 +54,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 ); @@ -71,18 +68,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 number on the interval [0,1]. +* Generates a random number on the interval [0,1). * * @return random number */ -double rand_double() { +static double rand_double( void ) { int r = rand(); return (double)r / ( (double)RAND_MAX + 1.0 ); } @@ -92,7 +89,7 @@ double rand_double() { * * @return elapsed time in seconds */ -double benchmark() { +static double benchmark( void ) { double elapsed; double x; double y; diff --git a/include/stdlib/math/base/special/fresnelc.h b/include/stdlib/math/base/special/fresnelc.h index 4d394d5..51023c6 100644 --- a/include/stdlib/math/base/special/fresnelc.h +++ b/include/stdlib/math/base/special/fresnelc.h @@ -16,9 +16,6 @@ * limitations under the License. */ -/** -* Header file containing function declarations. -*/ #ifndef STDLIB_MATH_BASE_SPECIAL_FRESNELC_H #define STDLIB_MATH_BASE_SPECIAL_FRESNELC_H diff --git a/package.json b/package.json index c625b45..40c86b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@stdlib/math-base-special-fresnelc", - "version": "0.2.1", + "version": "0.3.0", "description": "Compute the Fresnel integral C(x).", "license": "Apache-2.0", "author": { @@ -44,7 +44,7 @@ "@stdlib/constants-float64-half-pi": "^0.2.2", "@stdlib/constants-float64-pi": "^0.2.2", "@stdlib/math-base-napi-unary": "^0.2.3", - "@stdlib/math-base-special-abs": "^0.2.1", + "@stdlib/math-base-special-abs": "^0.2.2", "@stdlib/math-base-special-sincos": "^0.2.1", "@stdlib/utils-library-manifest": "^0.2.2" },