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 @@ -63,15 +63,15 @@ tape( 'the function calculates the maximum value of a one-dimensional ndarray',
var v;

x = new Float64Array( [ 1.0, -2.0, -4.0, NaN, 5.0, 0.0, 3.0 ] );
v = dnanmax( [ vector( x, 6, 1, 0 ) ] );
v = dnanmax( [ vector( x, 7, 1, 0 ) ] );
t.strictEqual( v, 5.0, 'returns expected value' );

x = new Float64Array( [ -4.0, NaN, -5.0 ] );
v = dnanmax( [ vector( x, 2, 1, 0 ) ] );
v = dnanmax( [ vector( x, 3, 1, 0 ) ] );
t.strictEqual( v, -4.0, 'returns expected value' );

x = new Float64Array( [-0.0, 0.0, NaN, -0.0 ] );
v = dnanmax( [ vector( x, 3, 1, 0 ) ] );
v = dnanmax( [ vector( x, 4, 1, 0 ) ] );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );

x = new Float64Array( [ NaN ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ tape( 'the function calculates the maximum value of a one-dimensional ndarray',
var v;

x = [ 1.0, -2.0, -4.0, NaN, 5.0, 0.0, 3.0 ];
v = nanmax( [ vector( x, 6, 1, 0 ) ] );
v = nanmax( [ vector( x, 7, 1, 0 ) ] );
t.strictEqual( v, 5.0, 'returns expected value' );

x = [ -4.0, NaN, -5.0 ];
v = nanmax( [ vector( x, 2, 1, 0 ) ] );
v = nanmax( [ vector( x, 3, 1, 0 ) ] );
t.strictEqual( v, -4.0, 'returns expected value' );

x = [-0.0, 0.0, NaN, -0.0 ];
v = nanmax( [ vector( x, 3, 1, 0 ) ] );
v = nanmax( [ vector( x, 4, 1, 0 ) ] );
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );

x = [ NaN ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ tape( 'the function calculates the maximum value of a one-dimensional ndarray',
var v;

x = new Float32Array( [ 1.0, -2.0, -4.0, NaN, 5.0, 0.0, 3.0 ] );
v = snanmax( [ vector( x, 6, 1, 0 ) ] );
v = snanmax( [ vector( x, 7, 1, 0 ) ] );
t.strictEqual( v, 5.0, 'returns expected value' );

x = new Float32Array( [ -4.0, NaN, -5.0 ] );
v = snanmax( [ vector( x, 2, 1, 0 ) ] );
v = snanmax( [ vector( x, 3, 1, 0 ) ] );
t.strictEqual( v, -4.0, 'returns expected value' );

x = new Float32Array( [-0.0, 0.0, NaN, -0.0 ] );
v = snanmax( [ vector( x, 3, 1, 0 ) ] );
v = snanmax( [ vector( x, 4, 1, 0 ) ] );
t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' );

x = new Float32Array( [ NaN ] );
Expand Down