diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.dnansumkbn.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.dnansumkbn.js index 787847da5a3..e44839f4455 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.dnansumkbn.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.dnansumkbn.js @@ -38,6 +38,17 @@ tape( 'the function has an arity of 3', function test( t ) { t.end(); }); +tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) { + var x; + var v; + + x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] ); + + v = dnansumkbn( x.length, x, 0 ); + t.strictEqual( v, 0.0, 'returns expected Value' ); + t.end(); +}); + tape( 'the function calculates the sum of strided array elements (ignoring NaN values)', function test( t ) { var x; var v; diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.dnansumkbn.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.dnansumkbn.native.js index a50c347c351..6cbc88f6ca7 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.dnansumkbn.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.dnansumkbn.native.js @@ -47,6 +47,16 @@ tape( 'the function has an arity of 3', opts, function test( t ) { t.end(); }); +tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) { + var x; + var v; + + x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] ); + + v = dnansumkbn( x.length, x, 0 ); + t.strictEqual( v, 0.0, 'returns expected Value' ); + t.end(); +}); tape( 'the functions throws an error if provided a first argument which is not a number', opts, function test( t ) { var values; var i; diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.ndarray.js index 021dbcf0e93..0f5808fd041 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.ndarray.js @@ -38,6 +38,17 @@ tape( 'the function has an arity of 4', function test( t ) { t.end(); }); +tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) { + var x; + var v; + + x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] ); + + v = dnansumkbn( x.length, x, 0 ); + t.strictEqual( v, 0.0, 'returns expected Value' ); + t.end(); +}); + tape( 'the function calculates the sum of strided array elements (ignoring NaN values)', function test( t ) { var x; var v; diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.ndarray.native.js index 4bcafdbdb00..86816694557 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn/test/test.ndarray.native.js @@ -47,6 +47,17 @@ tape( 'the function has an arity of 4', opts, function test( t ) { t.end(); }); +tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) { + var x; + var v; + + x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] ); + + v = dnansumkbn( x.length, x, 0 ); + t.strictEqual( v, 0.0, 'returns expected Value' ); + t.end(); +}); + tape( 'the function calculates the sum of strided array elements (ignoring NaN values)', opts, function test( t ) { var x; var v; diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.dnansumkbn2.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.dnansumkbn2.js index 74b611671bf..f43b61bc889 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.dnansumkbn2.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.dnansumkbn2.js @@ -38,6 +38,17 @@ tape( 'the function has an arity of 3', function test( t ) { t.end(); }); +tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) { + var x; + var v; + + x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] ); + + v = dnansumkbn2( x.length, x, 0 ); + t.strictEqual( v, 0.0, 'returns expected Value' ); + t.end(); +}); + tape( 'the function calculates the sum of strided array elements (ignoring NaN values)', function test( t ) { var x; var v; diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.dnansumkbn2.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.dnansumkbn2.native.js index 3ac27f39c02..bb3f837491c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.dnansumkbn2.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.dnansumkbn2.native.js @@ -47,6 +47,17 @@ tape( 'the function has an arity of 3', opts, function test( t ) { t.end(); }); +tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) { + var x; + var v; + + x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] ); + + v = dnansumkbn2( x.length, x, 0 ); + t.strictEqual( v, 0.0, 'returns expected Value' ); + t.end(); +}); + tape( 'the functions throws an error if provided a first argument which is not a number', opts, function test( t ) { var values; var i; diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.ndarray.js index cd0ffaf0e2f..9175aaf4e51 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.ndarray.js @@ -33,6 +33,17 @@ tape( 'main export is a function', function test( t ) { t.end(); }); +tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) { + var x; + var v; + + x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] ); + + v = dnansumkbn2( x.length, x, 0 ); + t.strictEqual( v, 0.0, 'returns expected Value' ); + t.end(); +}); + tape( 'the function has an arity of 4', function test( t ) { t.strictEqual( dnansumkbn2.length, 4, 'returns expected value' ); t.end(); diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.ndarray.native.js index 4d6f82d79de..6c6f913517f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.ndarray.native.js @@ -42,6 +42,17 @@ tape( 'main export is a function', opts, function test( t ) { t.end(); }); +tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) { + var x; + var v; + + x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] ); + + v = dnansumkbn2( x.length, x, 0 ); + t.strictEqual( v, 0.0, 'returns expected Value' ); + t.end(); +}); + tape( 'the function has an arity of 4', opts, function test( t ) { t.strictEqual( dnansumkbn2.length, 4, 'returns expected value' ); t.end();