Skip to content

Commit 8d9f132

Browse files
chore: clean up and self review changes
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 4d2ccdb commit 8d9f132

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

lib/node_modules/@stdlib/blas/ext/base/wasm/snansum/benchmark/benchmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' );
2525
var uniform = require( '@stdlib/random/array/uniform' );
26-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
26+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2727
var pow = require( '@stdlib/math/base/special/pow' );
2828
var pkg = require( './../package.json' ).name;
2929
var snansum = require( './../lib' );
@@ -65,12 +65,12 @@ function createBenchmark( len ) {
6565
b.tic();
6666
for ( i = 0; i < b.iterations; i++ ) {
6767
sum = snansum.main( x.length, x, 1 );
68-
if ( isnan( sum ) ) {
68+
if ( isnanf( sum ) ) {
6969
b.fail( 'should not return NaN' );
7070
}
7171
}
7272
b.toc();
73-
if ( isnan( sum ) ) {
73+
if ( isnanf( sum ) ) {
7474
b.fail( 'should not return NaN' );
7575
}
7676
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/ext/base/wasm/snansum/benchmark/benchmark.module.main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' );
2525
var Memory = require( '@stdlib/wasm/memory' );
2626
var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' );
2727
var uniform = require( '@stdlib/random/array/uniform' );
28-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
28+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2929
var pow = require( '@stdlib/math/base/special/pow' );
3030
var pkg = require( './../package.json' ).name;
3131
var snansum = require( './../lib' );
@@ -89,12 +89,12 @@ function createBenchmark( len ) {
8989
b.tic();
9090
for ( i = 0; i < b.iterations; i++ ) {
9191
sum = mod.main( len, xptr, 1 );
92-
if ( isnan( sum ) ) {
92+
if ( isnanf( sum ) ) {
9393
b.fail( 'should not return NaN' );
9494
}
9595
}
9696
b.toc();
97-
if ( isnan( sum ) ) {
97+
if ( isnanf( sum ) ) {
9898
b.fail( 'should not return NaN' );
9999
}
100100
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/ext/base/wasm/snansum/benchmark/benchmark.module.ndarray.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' );
2525
var Memory = require( '@stdlib/wasm/memory' );
2626
var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' );
2727
var uniform = require( '@stdlib/random/array/uniform' );
28-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
28+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2929
var pow = require( '@stdlib/math/base/special/pow' );
3030
var pkg = require( './../package.json' ).name;
3131
var snansum = require( './../lib' );
@@ -89,12 +89,12 @@ function createBenchmark( len ) {
8989
b.tic();
9090
for ( i = 0; i < b.iterations; i++ ) {
9191
sum = mod.ndarray( len, xptr, 1, 0 );
92-
if ( isnan( sum ) ) {
92+
if ( isnanf( sum ) ) {
9393
b.fail( 'should not return NaN' );
9494
}
9595
}
9696
b.toc();
97-
if ( isnan( sum ) ) {
97+
if ( isnanf( sum ) ) {
9898
b.fail( 'should not return NaN' );
9999
}
100100
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/ext/base/wasm/snansum/benchmark/benchmark.ndarray.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' );
2525
var uniform = require( '@stdlib/random/array/uniform' );
26-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
26+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2727
var pow = require( '@stdlib/math/base/special/pow' );
2828
var pkg = require( './../package.json' ).name;
2929
var snansum = require( './../lib' );
@@ -65,12 +65,12 @@ function createBenchmark( len ) {
6565
b.tic();
6666
for ( i = 0; i < b.iterations; i++ ) {
6767
sum = snansum.ndarray( x.length, x, 1, 0 );
68-
if ( isnan( sum ) ) {
68+
if ( isnanf( sum ) ) {
6969
b.fail( 'should not return NaN' );
7070
}
7171
}
7272
b.toc();
73-
if ( isnan( sum ) ) {
73+
if ( isnanf( sum ) ) {
7474
b.fail( 'should not return NaN' );
7575
}
7676
b.pass( 'benchmark finished' );

lib/node_modules/@stdlib/blas/ext/base/wasm/snansum/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
Int32Array before passing the values to this method.
351351

352352
If provided an array having an unknown or "generic" data type, elements are
353-
written as double-precision floating-point numbers.
353+
written as single-precision floating-point numbers.
354354

355355
Parameters
356356
----------
@@ -389,7 +389,7 @@
389389
after reading memory values using this method.
390390

391391
If provided an output array having an unknown or "generic" data type,
392-
elements are read as double-precision floating-point numbers.
392+
elements are read as single-precision floating-point numbers.
393393

394394
Parameters
395395
----------

lib/node_modules/@stdlib/blas/ext/base/wasm/snansum/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ interface Routine extends ModuleWrapper {
216216
* @example
217217
* var Float32Array = require( '@stdlib/array/float32' );
218218
*
219-
* var x = new Float32Array( [ 1.0, -2.0, NaN 2.0 ] );
219+
* var x = new Float32Array( [ 1.0, -2.0, NaN, 2.0 ] );
220220
*
221221
* var out = snansum.main( 4, x, 1 );
222222
* // returns 1.0

lib/node_modules/@stdlib/blas/ext/base/wasm/snansum/test/test.module.main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ tape( 'a module instance has a `main` method which returns the sum of the first
211211
t.end();
212212
});
213213

214-
tape( 'if provided a `stride` parameter equal to `0` and the first element, a module instance has a `main` method which returns `0.0`', function test( t ) {
214+
tape( 'if provided a `stride` parameter equal to `0` and the first element is `NaN`, a module instance has a `main` method which returns `0.0`', function test( t ) {
215215
var mem;
216216
var mod;
217217
var xp;

lib/node_modules/@stdlib/blas/ext/base/wasm/snansum/test/test.module.ndarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ tape( 'if provided a `stride` parameter equal to `0`, a module instance has an `
211211
t.end();
212212
});
213213

214-
tape( 'if provided a `stride` parameter equal to `0`, a module instance has an `ndarray` method which returns the first element is NaN, the function returns `0.0`', function test( t ) {
214+
tape( 'if provided a `stride` parameter equal to `0` and the first element is `NaN`, a module instance has an `ndarray` method which returns `0.0`', function test( t ) {
215215
var mem;
216216
var mod;
217217
var xp;

0 commit comments

Comments
 (0)