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, 2024
1 parent 00f19b7 commit a1586a3
Show file tree
Hide file tree
Showing 40 changed files with 2,962 additions and 43 deletions.
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Copyright (c) 2016-2023 The Stdlib Authors.
Copyright (c) 2016-2024 The Stdlib Authors.
6 changes: 3 additions & 3 deletions array/bernoulli/benchmark/benchmark.float32.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var pow = require( '@stdlib/math/base/special/pow' );
var zeros = require( '@stdlib/array/zeros' );
var pkg = require( './../package.json' ).name;
Expand Down Expand Up @@ -56,12 +56,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
o = random.assign( 0.5, out );
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
6 changes: 3 additions & 3 deletions array/chi/benchmark/benchmark.float32.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var pow = require( '@stdlib/math/base/special/pow' );
var zeros = require( '@stdlib/array/zeros' );
var pkg = require( './../package.json' ).name;
Expand Down Expand Up @@ -56,12 +56,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
o = random.assign( 2.0, out );
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
6 changes: 3 additions & 3 deletions array/chisquare/benchmark/benchmark.float32.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var pow = require( '@stdlib/math/base/special/pow' );
var zeros = require( '@stdlib/array/zeros' );
var pkg = require( './../package.json' ).name;
Expand Down Expand Up @@ -56,12 +56,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
o = random.assign( 2.0, out );
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
6 changes: 3 additions & 3 deletions array/exponential/benchmark/benchmark.float32.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var pow = require( '@stdlib/math/base/special/pow' );
var zeros = require( '@stdlib/array/zeros' );
var pkg = require( './../package.json' ).name;
Expand Down Expand Up @@ -56,12 +56,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
o = random.assign( 2.0, out );
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
6 changes: 3 additions & 3 deletions array/geometric/benchmark/benchmark.float32.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var pow = require( '@stdlib/math/base/special/pow' );
var zeros = require( '@stdlib/array/zeros' );
var pkg = require( './../package.json' ).name;
Expand Down Expand Up @@ -56,12 +56,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
o = random.assign( 0.01, out );
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
6 changes: 3 additions & 3 deletions array/poisson/benchmark/benchmark.float32.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var pow = require( '@stdlib/math/base/special/pow' );
var zeros = require( '@stdlib/array/zeros' );
var pkg = require( './../package.json' ).name;
Expand Down Expand Up @@ -56,12 +56,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
o = random.assign( 2.0, out );
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
6 changes: 3 additions & 3 deletions array/rayleigh/benchmark/benchmark.float32.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var pow = require( '@stdlib/math/base/special/pow' );
var zeros = require( '@stdlib/array/zeros' );
var pkg = require( './../package.json' ).name;
Expand Down Expand Up @@ -56,12 +56,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
o = random.assign( 2.0, out );
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
6 changes: 3 additions & 3 deletions array/t/benchmark/benchmark.float32.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var bench = require( '@stdlib/bench' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var pow = require( '@stdlib/math/base/special/pow' );
var zeros = require( '@stdlib/array/zeros' );
var pkg = require( './../package.json' ).name;
Expand Down Expand Up @@ -56,12 +56,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
o = random.assign( 2.0, out );
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( o[ i%len ] ) ) {
if ( isnanf( o[ i%len ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Loading

0 comments on commit a1586a3

Please sign in to comment.