File tree Expand file tree Collapse file tree 5 files changed +10
-6
lines changed
Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -3529,6 +3529,7 @@ A total of 559 issues were closed in this release:
35293529
35303530<details>
35313531
3532+ - [`2ab4734`](https://github.com/stdlib-js/stdlib/commit/2ab4734984722371281d1a009fced0f6ac286777) - **chore:** clean-up _(by Athan Reines)_
35323533- [`ffee9eb`](https://github.com/stdlib-js/stdlib/commit/ffee9eb167e2f3b1750163bf9f9937f7e9db48d3) - **feat:** add `stats/strided/mskmidrange` [(#9331)](https://github.com/stdlib-js/stdlib/pull/9331) _(by Sachin Pangal, Athan Reines)_
35333534- [`b6b70c7`](https://github.com/stdlib-js/stdlib/commit/b6b70c7fd270b902706e1870933f97f1ae95a0e1) - **feat:** add `stats/base/ndarray/midrange` [(#9332)](https://github.com/stdlib-js/stdlib/pull/9332) _(by Sachin Pangal, Athan Reines)_
35343535- [`0d237ed`](https://github.com/stdlib-js/stdlib/commit/0d237ed24ae4362f4d31ebdf742b0b3901ada59b) - **feat:** add `stats/strided/nanmidrange` [(#9323)](https://github.com/stdlib-js/stdlib/pull/9323) _(by Sachin Pangal, Athan Reines)_
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ var ndarray = require( '@stdlib/ndarray/base/ctor' );
107107var scalar2ndarray = require ( ' @stdlib/ndarray/from-scalar' );
108108
109109var opts = {
110- ' dtype' : ' float64 '
110+ ' dtype' : ' generic '
111111};
112112
113113var xbuf = [ 1.0 , - 2.0 , 2.0 ];
@@ -145,7 +145,6 @@ The function has the following parameters:
145145
146146``` javascript
147147var discreteUniform = require ( ' @stdlib/random/array/discrete-uniform' );
148- var Float64Array = require ( ' @stdlib/array/float64' );
149148var ndarray = require ( ' @stdlib/ndarray/base/ctor' );
150149var scalar2ndarray = require ( ' @stdlib/ndarray/from-scalar' );
151150var ndarray2array = require ( ' @stdlib/ndarray/to-array' );
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ var stdev = require( './../lib' );
3434// VARIABLES //
3535
3636var options = {
37- 'dtype' : 'float64 '
37+ 'dtype' : 'generic '
3838} ;
3939
4040
Original file line number Diff line number Diff 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 //
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments