diff --git a/.github/.keepalive b/.github/.keepalive
new file mode 100644
index 0000000..000aaab
--- /dev/null
+++ b/.github/.keepalive
@@ -0,0 +1 @@
+2024-08-01T03:35:43.171Z
diff --git a/.gitignore b/.gitignore
index 49b206b..4fdc97c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -101,6 +101,8 @@ docs/**/node_modules/
pids
*.pid
*.seed
+yarn.lock
+package-lock.json
# Typescript #
##############
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8dbb4a5..e006405 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,29 +2,9 @@
> Package changelog.
-
-
-## 0.2.2 (2024-07-28)
-
-No changes reported for this release.
-
-
+
-
-
-
-
-## 0.2.1 (2024-02-24)
-
-No changes reported for this release.
-
-
-
-
-
-
-
-## 0.2.0 (2024-02-14)
+## Unreleased (2024-08-01)
@@ -32,8 +12,7 @@ No changes reported for this release.
-- [`dea49e0`](https://github.com/stdlib-js/stdlib/commit/dea49e03ab5571233e3da26835a6a6d3256d5737) - **docs:** use single quotes in require calls instead of backticks _(by Philipp Burckhardt)_
-- [`f9c75ce`](https://github.com/stdlib-js/stdlib/commit/f9c75ce726ed4e5fade8622315bb98094dad8561) - **build:** remove tslint directives _(by Philipp Burckhardt)_
+- [`22c4d29`](https://github.com/stdlib-js/stdlib/commit/22c4d29898e2b5bb4cb071a6b7f62536027eaf28) - **docs:** remove blank line _(by Athan Reines)_
@@ -47,7 +26,7 @@ No changes reported for this release.
A total of 1 person contributed to this release. Thank you to this contributor:
-- Philipp Burckhardt
+- Athan Reines
@@ -57,61 +36,41 @@ A total of 1 person contributed to this release. Thank you to this contributor:
-
-
-## 0.1.0 (2023-09-23)
-
-
+
-### Features
+## 0.2.2 (2024-07-28)
-- [`a6edab8`](https://github.com/stdlib-js/stdlib/commit/a6edab846285d46ea65f51eac800b458b777b8bb) - update minimum TypeScript version
+No changes reported for this release.
-
-
-
+
-### BREAKING CHANGES
+
-- [`a6edab8`](https://github.com/stdlib-js/stdlib/commit/a6edab846285d46ea65f51eac800b458b777b8bb): update minimum TypeScript version
-- [`a6edab8`](https://github.com/stdlib-js/stdlib/commit/a6edab846285d46ea65f51eac800b458b777b8bb): 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.
-
-
-
-
-### Commits
+
-
+
-- [`a6edab8`](https://github.com/stdlib-js/stdlib/commit/a6edab846285d46ea65f51eac800b458b777b8bb) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_
-- [`28e1c84`](https://github.com/stdlib-js/stdlib/commit/28e1c84390d88044883c9ef940a12f38d66ea3ef) - **docs:** resolve C lint errors _(by Athan Reines)_
-- [`2771d58`](https://github.com/stdlib-js/stdlib/commit/2771d5835cdfd49de9ee17a00117b9d90749e821) - **docs:** render equations via math code blocks _(by Philipp Burckhardt)_
+## 0.2.0 (2024-02-14)
-
+No changes reported for this release.
-
-
-
-
-### Contributors
-
-A total of 2 people contributed to this release. Thank you to the following contributors:
+
-- Athan Reines
-- Philipp Burckhardt
+
+## 0.1.0 (2023-09-23)
-
+No changes reported for this release.
diff --git a/README.md b/README.md
index f4190ed..fe23db8 100644
--- a/README.md
+++ b/README.md
@@ -327,8 +327,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
[npm-image]: http://img.shields.io/npm/v/@stdlib/stats-base-sstdevpn.svg
[npm-url]: https://npmjs.org/package/@stdlib/stats-base-sstdevpn
-[test-image]: https://github.com/stdlib-js/stats-base-sstdevpn/actions/workflows/test.yml/badge.svg?branch=v0.2.2
-[test-url]: https://github.com/stdlib-js/stats-base-sstdevpn/actions/workflows/test.yml?query=branch:v0.2.2
+[test-image]: https://github.com/stdlib-js/stats-base-sstdevpn/actions/workflows/test.yml/badge.svg?branch=main
+[test-url]: https://github.com/stdlib-js/stats-base-sstdevpn/actions/workflows/test.yml?query=branch:main
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/stats-base-sstdevpn/main.svg
[coverage-url]: https://codecov.io/github/stdlib-js/stats-base-sstdevpn?branch=main
diff --git a/benchmark/c/benchmark.length.c b/benchmark/c/benchmark.length.c
index 21209b4..e502959 100644
--- a/benchmark/c/benchmark.length.c
+++ b/benchmark/c/benchmark.length.c
@@ -16,9 +16,6 @@
* limitations under the License.
*/
-/**
-* Benchmark `sstdevpn`.
-*/
#include "stdlib/stats/base/sstdevpn.h"
#include
#include
@@ -35,7 +32,7 @@
/**
* Prints the TAP version.
*/
-void print_version() {
+static void print_version( void ) {
printf( "TAP version 13\n" );
}
@@ -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 );
@@ -60,7 +57,7 @@ void print_summary( int total, int passing ) {
* @param iterations number of iterations
* @param elapsed elapsed time in seconds
*/
-void print_results( int iterations, double elapsed ) {
+static void print_results( int iterations, double elapsed ) {
double rate = (double)iterations / elapsed;
printf( " ---\n" );
printf( " iterations: %d\n", iterations );
@@ -74,30 +71,30 @@ void print_results( int iterations, 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
*/
-float rand_float() {
+static float rand_float( void ) {
int r = rand();
return (float)r / ( (float)RAND_MAX + 1.0f );
}
-/*
+/**
* Runs a benchmark.
*
* @param iterations number of iterations
* @param len array length
* @return elapsed time in seconds
*/
-double benchmark( int iterations, int len ) {
+static double benchmark( int iterations, int len ) {
double elapsed;
float x[ len ];
float v;
diff --git a/include/stdlib/stats/base/sstdevpn.h b/include/stdlib/stats/base/sstdevpn.h
index 7836c48..672fea1 100644
--- a/include/stdlib/stats/base/sstdevpn.h
+++ b/include/stdlib/stats/base/sstdevpn.h
@@ -16,9 +16,6 @@
* limitations under the License.
*/
-/**
-* Header file containing function declarations.
-*/
#ifndef STDLIB_STATS_BASE_SSTDEVPN_H
#define STDLIB_STATS_BASE_SSTDEVPN_H
diff --git a/package.json b/package.json
index 8186070..8dbb3ce 100644
--- a/package.json
+++ b/package.json
@@ -44,7 +44,7 @@
"@stdlib/assert-is-error": "^0.2.2",
"@stdlib/math-base-special-sqrt": "^0.2.2",
"@stdlib/number-float64-base-to-float32": "^0.2.2",
- "@stdlib/stats-base-svariancepn": "^0.2.1",
+ "@stdlib/stats-base-svariancepn": "^0.2.2",
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.2",
"@stdlib/utils-library-manifest": "^0.2.2",
"@stdlib/utils-try-require": "^0.2.2"
@@ -54,9 +54,9 @@
"@stdlib/assert-is-browser": "^0.2.2",
"@stdlib/constants-float32-eps": "^0.2.2",
"@stdlib/math-base-assert-is-nan": "^0.2.2",
- "@stdlib/math-base-special-abs": "^0.2.1",
+ "@stdlib/math-base-special-abs": "^0.2.2",
"@stdlib/math-base-special-floor": "^0.2.3",
- "@stdlib/math-base-special-pow": "^0.2.1",
+ "@stdlib/math-base-special-pow": "^0.3.0",
"@stdlib/math-base-special-round": "^0.3.0",
"@stdlib/random-base-randu": "^0.2.1",
"proxyquire": "^2.0.0",