Skip to content

Commit 4654f1c

Browse files
committed
Auto-generated commit
1 parent d58f1c8 commit 4654f1c

4 files changed

Lines changed: 14 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2026-03-07)
7+
## Unreleased (2026-03-08)
88

99
<section class="features">
1010

@@ -34,6 +34,8 @@ This release closes the following issue:
3434

3535
<details>
3636

37+
- [`c07de96`](https://github.com/stdlib-js/stdlib/commit/c07de963b0116d680060bb12d271fd8bf0bb26c1) - **chore:** minor clean-up _(by Philipp Burckhardt)_
38+
- [`800e5c6`](https://github.com/stdlib-js/stdlib/commit/800e5c63152409e524ba972c331f3656103adebd) - **bench:** minor clean-up _(by Philipp Burckhardt)_
3739
- [`d11f1f1`](https://github.com/stdlib-js/stdlib/commit/d11f1f1157bf77fbfdc00663f410f41a1ba18a0c) - **feat:** add C implementation for `stats/base/dists/chisquare/logpdf` [(#10778)](https://github.com/stdlib-js/stdlib/pull/10778) _(by Siddhartha Mondal, Philipp Burckhardt, stdlib-bot)_
3840
- [`12c2cee`](https://github.com/stdlib-js/stdlib/commit/12c2cee21de81594436e583fc379339cf5ac89c1) - **bench:** refactor to use string interpolation in `stats/base/dists/chisquare` [(#10325)](https://github.com/stdlib-js/stdlib/pull/10325) _(by Vishal Gaikwad)_
3941

benchmark/benchmark.native.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222

2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench-harness' );
25-
var Float64Array = require( '@stdlib/array-float64' );
26-
var uniform = require( '@stdlib/random-base-uniform' );
27-
var format = require( '@stdlib/string-format' );
25+
var uniform = require( '@stdlib/random-array-uniform' );
2826
var isnan = require( '@stdlib/math-base-assert-is-nan' );
27+
var format = require( '@stdlib/string-format' );
2928
var tryRequire = require( '@stdlib/utils-try-require' );
3029
var pkg = require( './../package.json' ).name;
3130

@@ -41,23 +40,21 @@ var opts = {
4140
// MAIN //
4241

4342
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
44-
var len;
45-
var k;
4643
var x;
44+
var k;
4745
var y;
4846
var i;
4947

50-
len = 100;
51-
x = new Float64Array( len );
52-
k = new Float64Array( len );
53-
for ( i = 0; i < len; i++ ) {
54-
x[ i ] = uniform( -10.0, 10.0 );
55-
k[ i ] = uniform( 0.1, 20.1 );
56-
}
48+
x = uniform( 100, 0.0, 100.0, {
49+
'dtype': 'float64'
50+
});
51+
k = uniform( 100, 0.1, 20.1, {
52+
'dtype': 'float64'
53+
});
5754

5855
b.tic();
5956
for ( i = 0; i < b.iterations; i++ ) {
60-
y = logpdf( x[ i % len ], k[ i % len ] );
57+
y = logpdf( x[ i % x.length ], k[ i % k.length ] );
6158
if ( isnan( y ) ) {
6259
b.fail( 'should not return NaN' );
6360
}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"@stdlib/utils-library-manifest": "^0.2.4"
4747
},
4848
"devDependencies": {
49-
"@stdlib/array-float64": "^0.2.3",
5049
"@stdlib/console-log-each-map": "^0.1.1",
5150
"@stdlib/constants-float64-eps": "^0.2.3",
5251
"@stdlib/constants-float64-ninf": "^0.2.3",
@@ -56,7 +55,6 @@
5655
"@stdlib/random-array-discrete-uniform": "^0.2.2",
5756
"@stdlib/random-array-uniform": "^0.2.2",
5857
"@stdlib/random-base-randu": "^0.2.3",
59-
"@stdlib/random-base-uniform": "^0.2.3",
6058
"@stdlib/string-format": "^0.2.3",
6159
"@stdlib/utils-try-require": "^0.2.3",
6260
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",

test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ tape( 'the function evaluates the logpdf for `x` given degrees of freedom `k`',
139139
for ( i = 0; i < x.length; i++ ) {
140140
y = logpdf( x[ i ], k[ i ] );
141141
if ( y === expected[ i ] ) {
142-
t.strictEqual( y, expected[ i ], 'x: '+x[ i ]+'. k:'+k[ i ]+', y: '+y+', expected: '+expected[ i ] );
142+
t.strictEqual( y, expected[ i ], 'x: '+x[ i ]+', k: '+k[ i ]+', y: '+y+', expected: '+expected[ i ] );
143143
} else {
144144
delta = abs( y - expected[ i ] );
145145
tol = 10.0 * EPS * abs( expected[ i ] );

0 commit comments

Comments
 (0)