Skip to content

Commit fc3d449

Browse files
committed
Auto-generated commit
1 parent ff6b965 commit fc3d449

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 2 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 (2025-12-23)
7+
## Unreleased (2025-12-24)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`2ab4734`](https://github.com/stdlib-js/stdlib/commit/2ab4734984722371281d1a009fced0f6ac286777) - **chore:** clean-up _(by Athan Reines)_
2526
- [`c17e5f2`](https://github.com/stdlib-js/stdlib/commit/c17e5f26a44218e7cc295e5360f681c1d36fee13) - **feat:** add `stats/base/ndarray/stdev` [(#9248)](https://github.com/stdlib-js/stdlib/pull/9248) _(by Pratik, Athan Reines)_
2627

2728
</details>

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ var ndarray = require( '@stdlib/ndarray-base-ctor' );
140140
var scalar2ndarray = require( '@stdlib/ndarray-from-scalar' );
141141

142142
var opts = {
143-
'dtype': 'float64'
143+
'dtype': 'generic'
144144
};
145145

146146
var xbuf = [ 1.0, -2.0, 2.0 ];
@@ -178,7 +178,6 @@ The function has the following parameters:
178178

179179
```javascript
180180
var discreteUniform = require( '@stdlib/random-array-discrete-uniform' );
181-
var Float64Array = require( '@stdlib/array-float64' );
182181
var ndarray = require( '@stdlib/ndarray-base-ctor' );
183182
var scalar2ndarray = require( '@stdlib/ndarray-from-scalar' );
184183
var ndarray2array = require( '@stdlib/ndarray-to-array' );

benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var stdev = require( './../lib' );
3434
// VARIABLES //
3535

3636
var options = {
37-
'dtype': 'float64'
37+
'dtype': 'generic'
3838
};
3939

4040

docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
4444
* var v = stdev( [ x, correction ] );
4545
* // returns ~2.0817
4646
*/
47-
declare function stdev<T extends typedndarray = typedndarray>( arrays: [ T, T ] ): number;
47+
declare function stdev<T extends typedndarray<number> = typedndarray<number>>( arrays: [ T, T ] ): number;
4848

4949

5050
// EXPORTS //

docs/types/test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ import stdev = require( './index' );
3030
const x = zeros( [ 10 ], {
3131
'dtype': 'float64'
3232
});
33-
const correction = scalar2ndarray( 1.0, { 'dtype': 'float64' } );
33+
const correction = scalar2ndarray( 1.0, {
34+
'dtype': 'float64'
35+
});
3436

3537
stdev( [ x, correction ] ); // $ExpectType number
3638
}
@@ -53,7 +55,9 @@ import stdev = require( './index' );
5355
const x = zeros( [ 10 ], {
5456
'dtype': 'float64'
5557
});
56-
const correction = scalar2ndarray( 1.0, { 'dtype': 'float64' } );
58+
const correction = scalar2ndarray( 1.0, {
59+
'dtype': 'float64'
60+
});
5761

5862
stdev(); // $ExpectError
5963
stdev( [ x, correction ], 10 ); // $ExpectError

0 commit comments

Comments
 (0)