File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 44
55<section class =" release " id =" unreleased " >
66
7- ## Unreleased (2025-04-23 )
7+ ## Unreleased (2025-04-25 )
88
99<section class =" features " >
1010
2222
2323<details >
2424
25+ - [ ` b455b55 ` ] ( https://github.com/stdlib-js/stdlib/commit/b455b550546bb22da11b94d0213bc54a74a08bed ) - ** bench:** use single-precision assertion utility _ (by Athan Reines)_
2526- [ ` 9911f30 ` ] ( https://github.com/stdlib-js/stdlib/commit/9911f30a5b84c02396de8bab5df59c322f48c63b ) - ** test:** fix test case _ (by Athan Reines)_
2627- [ ` 876adb0 ` ] ( https://github.com/stdlib-js/stdlib/commit/876adb06cf3397bc3da540cbbcc794f51bca5fef ) - ** feat:** add ` stats/base/ndarray/smax ` _ (by Athan Reines)_
2728
Original file line number Diff line number Diff line change 2222
2323var bench = require ( '@stdlib/bench-harness' ) ;
2424var uniform = require ( '@stdlib/random-array-uniform' ) ;
25- var isnan = require ( '@stdlib/math-base-assert-is-nan ' ) ;
25+ var isnanf = require ( '@stdlib/math-base-assert-is-nanf ' ) ;
2626var pow = require ( '@stdlib/math-base-special-pow' ) ;
2727var ndarray = require ( '@stdlib/ndarray-base-ctor' ) ;
2828var pkg = require ( './../package.json' ) . name ;
@@ -61,12 +61,12 @@ function createBenchmark( len ) {
6161 b . tic ( ) ;
6262 for ( i = 0 ; i < b . iterations ; i ++ ) {
6363 v = smax ( [ x ] ) ;
64- if ( isnan ( v ) ) {
64+ if ( isnanf ( v ) ) {
6565 b . fail ( 'should not return NaN' ) ;
6666 }
6767 }
6868 b . toc ( ) ;
69- if ( isnan ( v ) ) {
69+ if ( isnanf ( v ) ) {
7070 b . fail ( 'should not return NaN' ) ;
7171 }
7272 b . pass ( 'benchmark finished' ) ;
Original file line number Diff line number Diff line change 4646 },
4747 "devDependencies" : {
4848 "@stdlib/array-float32" : " ^0.2.2" ,
49- "@stdlib/math-base-assert-is-nan" : " ^0.2.2" ,
5049 "@stdlib/math-base-assert-is-nanf" : " ^0.2.2" ,
5150 "@stdlib/math-base-assert-is-positive-zerof" : " ^0.1.3" ,
5251 "@stdlib/math-base-special-pow" : " ^0.3.0" ,
You can’t perform that action at this time.
0 commit comments