Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
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 Complex64Array = require( '@stdlib/array/complex64' );
var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
Expand Down Expand Up @@ -75,12 +75,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
ccopy( x.length, x, 1, y, 1 );
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
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 Complex64Array = require( '@stdlib/array/complex64' );
var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
Expand Down Expand Up @@ -80,12 +80,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
ccopy( x.length, x, 1, y, 1 );
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
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 Complex64Array = require( '@stdlib/array/complex64' );
var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
Expand Down Expand Up @@ -75,12 +75,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
ccopy( x.length, x, 1, 0, y, 1, 0 );
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
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 Complex64Array = require( '@stdlib/array/complex64' );
var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
Expand Down Expand Up @@ -80,12 +80,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
ccopy( x.length, x, 1, 0, y, 1, 0 );
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
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 Complex64Array = require( '@stdlib/array/complex64' );
var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
Expand Down Expand Up @@ -75,12 +75,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
cswap( x.length, x, 1, y, 1 );
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
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 Complex64Array = require( '@stdlib/array/complex64' );
var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
Expand Down Expand Up @@ -80,12 +80,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
cswap( x.length, x, 1, y, 1 );
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
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 Complex64Array = require( '@stdlib/array/complex64' );
var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
Expand Down Expand Up @@ -75,12 +75,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
cswap( x.length, x, 1, 0, y, 1, 0 );
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
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 Complex64Array = require( '@stdlib/array/complex64' );
var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
Expand Down Expand Up @@ -80,12 +80,12 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
cswap( x.length, x, 1, 0, y, 1, 0 );
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( viewY[ i%(len*2) ] ) ) {
if ( isnanf( viewY[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ tape( 'attached to the main function is an `enum` method to return an object map
];
for ( i = 0; i < o.length; i++ ) {
t.strictEqual( hasOwnProp( obj, o[ i ] ), true, 'has property `' + o[ i ] + '`' );
t.strictEqual( isNonNegativeInteger( obj[ o[i] ] ), true, 'returns expected value' );
t.strictEqual( isNonNegativeInteger( obj[ o[ i ] ] ), true, 'returns expected value' );
}

t.end();
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/layouts/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ tape( 'attached to the main function is an `enum` method to return an object map
];
for ( i = 0; i < o.length; i++ ) {
t.strictEqual( hasOwnProp( obj, o[ i ] ), true, 'has property `' + o[ i ] + '`' );
t.strictEqual( isNonNegativeInteger( obj[ o[i] ] ), true, 'returns expected value' );
t.strictEqual( isNonNegativeInteger( obj[ o[ i ] ] ), true, 'returns expected value' );
}

t.end();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ tape( 'attached to the main function is an `enum` method to return an object map
];
for ( i = 0; i < o.length; i++ ) {
t.strictEqual( hasOwnProp( obj, o[ i ] ), true, 'has property `' + o[ i ] + '`' );
t.strictEqual( isNonNegativeInteger( obj[ o[i] ] ), true, 'returns expected value' );
t.strictEqual( isNonNegativeInteger( obj[ o[ i ] ] ), true, 'returns expected value' );
}

t.end();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ tape( 'attached to the main function is an `enum` method to return an object map
];
for ( i = 0; i < o.length; i++ ) {
t.strictEqual( hasOwnProp( obj, o[ i ] ), true, 'has property `' + o[ i ] + '`' );
t.strictEqual( isNonNegativeInteger( obj[ o[i] ] ), true, 'returns expected value' );
t.strictEqual( isNonNegativeInteger( obj[ o[ i ] ] ), true, 'returns expected value' );
}

t.end();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ tape( 'attached to the main function is an `enum` method to return an object map
];
for ( i = 0; i < o.length; i++ ) {
t.strictEqual( hasOwnProp( obj, o[ i ] ), true, 'has property `' + o[ i ] + '`' );
t.strictEqual( isNonNegativeInteger( obj[ o[i] ] ), true, 'returns expected value' );
t.strictEqual( isNonNegativeInteger( obj[ o[ i ] ] ), true, 'returns expected value' );
}

t.end();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ tape( 'attached to the main function is an `enum` method to return an object map
];
for ( i = 0; i < o.length; i++ ) {
t.strictEqual( hasOwnProp( obj, o[ i ] ), true, 'has property `' + o[ i ] + '`' );
t.strictEqual( isNonNegativeInteger( obj[ o[i] ] ), true, 'returns expected value' );
t.strictEqual( isNonNegativeInteger( obj[ o[ i ] ] ), true, 'returns expected value' );
}

t.end();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ tape( 'attached to the main function is an `enum` method to return an object map
];
for ( i = 0; i < o.length; i++ ) {
t.strictEqual( hasOwnProp( obj, o[ i ] ), true, 'has property `' + o[ i ] + '`' );
t.strictEqual( isNonNegativeInteger( obj[ o[i] ] ), true, 'returns expected value' );
t.strictEqual( isNonNegativeInteger( obj[ o[ i ] ] ), true, 'returns expected value' );
}

t.end();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ tape( 'attached to the main function is an `enum` method to return an object map
];
for ( i = 0; i < o.length; i++ ) {
t.strictEqual( hasOwnProp( obj, o[ i ] ), true, 'has property `' + o[ i ] + '`' );
t.strictEqual( isNonNegativeInteger( obj[ o[i] ] ), true, 'returns expected value' );
t.strictEqual( isNonNegativeInteger( obj[ o[ i ] ] ), true, 'returns expected value' );
}

t.end();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ tape( 'attached to the main function is an `enum` method to return an object map
];
for ( i = 0; i < o.length; i++ ) {
t.strictEqual( hasOwnProp( obj, o[ i ] ), true, 'has property `' + o[ i ] + '`' );
t.strictEqual( isNonNegativeInteger( obj[ o[i] ] ), true, 'returns expected value' );
t.strictEqual( isNonNegativeInteger( obj[ o[ i ] ] ), true, 'returns expected value' );
}

t.end();
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/ndarray/orders/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ tape( 'attached to the main function is an `enum` method to return an object map
];
for ( i = 0; i < o.length; i++ ) {
t.strictEqual( hasOwnProp( obj, o[ i ] ), true, 'has property `' + o[ i ] + '`' );
t.strictEqual( isNonNegativeInteger( obj[ o[i] ] ), true, 'returns expected value' );
t.strictEqual( isNonNegativeInteger( obj[ o[ i ] ] ), true, 'returns expected value' );
}

t.end();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ tape( 'attached to the main function is an `enum` method to return an object map
];
for ( i = 0; i < o.length; i++ ) {
t.strictEqual( hasOwnProp( obj, o[ i ] ), true, 'has property `' + o[ i ] + '`' );
t.strictEqual( isNonNegativeInteger( obj[ o[i] ] ), true, 'returns expected value' );
t.strictEqual( isNonNegativeInteger( obj[ o[ i ] ] ), true, 'returns expected value' );
}

t.end();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/base/uniform' ).factory;
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 cidentityf = require( '@stdlib/complex/float32/base/identity' );
var real = require( '@stdlib/complex/float32/real' );
Expand Down Expand Up @@ -69,12 +69,12 @@ function createBenchmark( len ) {
for ( i = 0; i < b.iterations; i++ ) {
out = cmap( x.length, x, 1, y, 1, cidentityf );
v = out.get( i%len );
if ( isnan( real( v ) ) || isnan( imag( v ) ) ) {
if ( isnanf( real( v ) ) || isnanf( imag( v ) ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( real( v ) ) || isnan( imag( v ) ) ) {
if ( isnanf( real( v ) ) || isnanf( imag( v ) ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/base/uniform' ).factory;
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 cidentityf = require( '@stdlib/complex/float32/base/identity' );
var real = require( '@stdlib/complex/float32/real' );
Expand Down Expand Up @@ -69,12 +69,12 @@ function createBenchmark( len ) {
for ( i = 0; i < b.iterations; i++ ) {
out = cmap( x.length, x, 1, 0, y, 1, 0, cidentityf );
v = out.get( i%len );
if ( isnan( real( v ) ) || isnan( imag( v ) ) ) {
if ( isnanf( real( v ) ) || isnanf( imag( v ) ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
if ( isnan( real( v ) ) || isnan( imag( v ) ) ) {
if ( isnanf( real( v ) ) || isnanf( imag( v ) ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var bernoulli = require( '@stdlib/random/base/bernoulli' ).factory;
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 cidentityf = require( '@stdlib/complex/float32/base/identity' );
var filledarray = require( '@stdlib/array/filled' );
Expand Down Expand Up @@ -82,13 +82,13 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
mskunary( arrays, shape, strides, cidentityf );
if ( isnan( ybuf[ i%(len*2) ] ) ) {
if ( isnanf( ybuf[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
v = arrays[ 2 ].get( i%len );
if ( isnan( realf( v ) ) || isnan( imagf( v ) ) ) {
if ( isnanf( realf( v ) ) || isnanf( imagf( v ) ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var bernoulli = require( '@stdlib/random/base/bernoulli' ).factory;
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 cidentityf = require( '@stdlib/complex/float32/base/identity' );
var filledarray = require( '@stdlib/array/filled' );
Expand Down Expand Up @@ -84,13 +84,13 @@ function createBenchmark( len ) {
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
mskunary( arrays, shape, strides, offsets, cidentityf );
if ( isnan( ybuf[ i%(len*2) ] ) ) {
if ( isnanf( ybuf[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
}
b.toc();
v = arrays[ 2 ].get( i%len );
if ( isnan( realf( v ) ) || isnan( imagf( v ) ) ) {
if ( isnanf( realf( v ) ) || isnanf( imagf( v ) ) ) {
b.fail( 'should not return NaN' );
}
b.pass( 'benchmark finished' );
Expand Down
Loading