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 Jan 8, 2025
1 parent 569670b commit e77ed42
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
13 changes: 12 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 (2025-01-06)
## Unreleased (2025-01-08)

<section class="features">

Expand All @@ -16,12 +16,23 @@

<!-- /.features -->

<section class="bug-fixes">

### Bug Fixes

- [`7e63aad`](https://github.com/stdlib-js/stdlib/commit/7e63aad8c0b42330b0933973bddea8d1c5e84862) - wrap function calls in `API_SUFFIX` in native addons [(#4646)](https://github.com/stdlib-js/stdlib/pull/4646)

</section>

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

<section class="commits">

### Commits

<details>

- [`7e63aad`](https://github.com/stdlib-js/stdlib/commit/7e63aad8c0b42330b0933973bddea8d1c5e84862) - **fix:** wrap function calls in `API_SUFFIX` in native addons [(#4646)](https://github.com/stdlib-js/stdlib/pull/4646) _(by Aayush Khanna)_
- [`6ed3eab`](https://github.com/stdlib-js/stdlib/commit/6ed3eab19add755588af91b44a96a67b1a40d357) - **feat:** add C ndarray interface and refactor implementation for `stats/base/svariancech` [(#4547)](https://github.com/stdlib-js/stdlib/pull/4547) _(by Aayush Khanna)_
- [`e8c2716`](https://github.com/stdlib-js/stdlib/commit/e8c27161f5dc2cb87b690e4abca6ae57a430f3f2) - **refactor:** update `stats/base/svariancech` native addon from C++ to C [(#4229)](https://github.com/stdlib-js/stdlib/pull/4229) _(by Vinit Pandit)_
- [`62364f6`](https://github.com/stdlib-js/stdlib/commit/62364f62ea823a3b52c2ad25660ecd80c71f8f36) - **style:** fix C comment alignment _(by Philipp Burckhardt)_
Expand Down
5 changes: 3 additions & 2 deletions src/addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include "stdlib/stats/base/svariancech.h"
#include "stdlib/blas/base/shared.h"
#include "stdlib/napi/export.h"
#include "stdlib/napi/argv.h"
#include "stdlib/napi/argv_int64.h"
Expand All @@ -38,7 +39,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV_FLOAT( env, correction, argv, 1 );
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 2 )
STDLIB_NAPI_CREATE_DOUBLE( env, (double)stdlib_strided_svariancech( N, correction, X, strideX ), v );
STDLIB_NAPI_CREATE_DOUBLE( env, (double)API_SUFFIX(stdlib_strided_svariancech)( N, correction, X, strideX ), v );
return v;
}

Expand All @@ -56,7 +57,7 @@ static napi_value addon_method( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 2 );
STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 4 );
STDLIB_NAPI_CREATE_DOUBLE( env, (double)stdlib_strided_svariancech_ndarray( N, correction, X, strideX, offsetX ), v );
STDLIB_NAPI_CREATE_DOUBLE( env, (double)API_SUFFIX(stdlib_strided_svariancech_ndarray)( N, correction, X, strideX, offsetX ), v );
return v;
}

Expand Down

0 comments on commit e77ed42

Please sign in to comment.