Skip to content

Commit 0077af2

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: passed - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - 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: na - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent fdec09e commit 0077af2

File tree

9 files changed

+36
-36
lines changed

9 files changed

+36
-36
lines changed

lib/node_modules/@stdlib/blas/ext/base/wasm/dapxsumkbn/docs/types/test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ import dapxsumkbn = require( './index' );
2626

2727
// Attached to the main export is a `main` method which returns a number...
2828
{
29-
const x = new Float64Array( 10 );
29+
const x = new float32Array( 10 );
3030

3131
dapxsumkbn.main( x.length, 5.0, x, 1 ); // $ExpectType number
3232
}
3333

3434
// The compiler throws an error if the `main` method is provided a first argument which is not a number...
3535
{
36-
const x = new Float64Array( 10 );
36+
const x = new float32Array( 10 );
3737

3838
dapxsumkbn.main( '10', 5.0, x, 1 ); // $ExpectError
3939
dapxsumkbn.main( true, 5.0, x, 1 ); // $ExpectError
@@ -47,7 +47,7 @@ import dapxsumkbn = require( './index' );
4747

4848
// The compiler throws an error if the `main` method is provided a second argument which is not a number...
4949
{
50-
const x = new Float64Array( 10 );
50+
const x = new float32Array( 10 );
5151

5252
dapxsumkbn.main( x.length, '10', x, 1 ); // $ExpectError
5353
dapxsumkbn.main( x.length, true, x, 1 ); // $ExpectError
@@ -59,9 +59,9 @@ import dapxsumkbn = require( './index' );
5959
dapxsumkbn.main( x.length, ( x: number ): number => x, x, 1 ); // $ExpectError
6060
}
6161

62-
// The compiler throws an error if the `main` method is provided a third argument which is not a Float64Array...
62+
// The compiler throws an error if the `main` method is provided a third argument which is not a float32Array...
6363
{
64-
const x = new Float64Array( 10 );
64+
const x = new float32Array( 10 );
6565

6666
dapxsumkbn.main( x.length, 5.0, 10, 1 ); // $ExpectError
6767
dapxsumkbn.main( x.length, 5.0, '10', 1 ); // $ExpectError
@@ -76,7 +76,7 @@ import dapxsumkbn = require( './index' );
7676

7777
// The compiler throws an error if the `main` method is provided a fourth argument which is not a number...
7878
{
79-
const x = new Float64Array( 10 );
79+
const x = new float32Array( 10 );
8080

8181
dapxsumkbn.main( x.length, 5.0, x, '10' ); // $ExpectError
8282
dapxsumkbn.main( x.length, 5.0, x, true ); // $ExpectError
@@ -90,7 +90,7 @@ import dapxsumkbn = require( './index' );
9090

9191
// The compiler throws an error if the `main` method is provided an unsupported number of arguments...
9292
{
93-
const x = new Float64Array( 10 );
93+
const x = new float32Array( 10 );
9494

9595
dapxsumkbn.main(); // $ExpectError
9696
dapxsumkbn.main( x.length ); // $ExpectError
@@ -101,14 +101,14 @@ import dapxsumkbn = require( './index' );
101101

102102
// Attached to main export is an `ndarray` method which returns a number...
103103
{
104-
const x = new Float64Array( 10 );
104+
const x = new float32Array( 10 );
105105

106106
dapxsumkbn.ndarray( x.length, 5.0, x, 1, 0 ); // $ExpectType number
107107
}
108108

109109
// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number...
110110
{
111-
const x = new Float64Array( 10 );
111+
const x = new float32Array( 10 );
112112

113113
dapxsumkbn.ndarray( '10', 5.0, x, 1, 0 ); // $ExpectError
114114
dapxsumkbn.ndarray( true, 5.0, x, 1, 0 ); // $ExpectError
@@ -122,7 +122,7 @@ import dapxsumkbn = require( './index' );
122122

123123
// The compiler throws an error if the `ndarray` method is provided a second argument which is not a number...
124124
{
125-
const x = new Float64Array( 10 );
125+
const x = new float32Array( 10 );
126126

127127
dapxsumkbn.ndarray( x.length, '10', x, 1, 0 ); // $ExpectError
128128
dapxsumkbn.ndarray( x.length, true, x, 1, 0 ); // $ExpectError
@@ -134,9 +134,9 @@ import dapxsumkbn = require( './index' );
134134
dapxsumkbn.ndarray( x.length, ( x: number ): number => x, x, 1, 0 ); // $ExpectError
135135
}
136136

137-
// The compiler throws an error if the `ndarray` method is provided a third argument which is not a Float64Array...
137+
// The compiler throws an error if the `ndarray` method is provided a third argument which is not a float32Array...
138138
{
139-
const x = new Float64Array( 10 );
139+
const x = new float32Array( 10 );
140140

141141
dapxsumkbn.ndarray( x.length, 5.0, 10, 1, 0 ); // $ExpectError
142142
dapxsumkbn.ndarray( x.length, 5.0, '10', 1, 0 ); // $ExpectError
@@ -151,7 +151,7 @@ import dapxsumkbn = require( './index' );
151151

152152
// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number...
153153
{
154-
const x = new Float64Array( 10 );
154+
const x = new float32Array( 10 );
155155

156156
dapxsumkbn.ndarray( x.length, 5.0, x, '10', 0 ); // $ExpectError
157157
dapxsumkbn.ndarray( x.length, 5.0, x, true, 0 ); // $ExpectError
@@ -165,7 +165,7 @@ import dapxsumkbn = require( './index' );
165165

166166
// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a number...
167167
{
168-
const x = new Float64Array( 10 );
168+
const x = new float32Array( 10 );
169169

170170
dapxsumkbn.ndarray( x.length, 5.0, x, 1, '10' ); // $ExpectError
171171
dapxsumkbn.ndarray( x.length, 5.0, x, 1, true ); // $ExpectError
@@ -179,7 +179,7 @@ import dapxsumkbn = require( './index' );
179179

180180
// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments...
181181
{
182-
const x = new Float64Array( 10 );
182+
const x = new float32Array( 10 );
183183

184184
dapxsumkbn.ndarray(); // $ExpectError
185185
dapxsumkbn.ndarray( x.length ); // $ExpectError

lib/node_modules/@stdlib/blas/ext/base/wasm/sapxsumkbn/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-nan' );
2727
var pow = require( '@stdlib/math/base/special/pow' );
2828
var pkg = require( './../package.json' ).name;
2929
var sapxsumkbn = require( './../lib' );
@@ -65,12 +65,12 @@ function createBenchmark( len ) {
6565
b.tic();
6666
for ( i = 0; i < b.iterations; i++ ) {
6767
sum = sapxsumkbn.main( x.length, 5.0, 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/sapxsumkbn/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-nan' );
2929
var pow = require( '@stdlib/math/base/special/pow' );
3030
var pkg = require( './../package.json' ).name;
3131
var sapxsumkbn = 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, 5.0, 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/sapxsumkbn/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-nan' );
2929
var pow = require( '@stdlib/math/base/special/pow' );
3030
var pkg = require( './../package.json' ).name;
3131
var sapxsumkbn = 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, 5.0, 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/sapxsumkbn/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-nan' );
2727
var pow = require( '@stdlib/math/base/special/pow' );
2828
var pkg = require( './../package.json' ).name;
2929
var sapxsumkbn = require( './../lib' );
@@ -65,12 +65,12 @@ function createBenchmark( len ) {
6565
b.tic();
6666
for ( i = 0; i < b.iterations; i++ ) {
6767
sum = sapxsumkbn.ndarray( x.length, 5.0, 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/sapxsumkbn/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function main() {
3131
var N = 3;
3232

3333
// Create an input array:
34-
var x = oneTo( N, 'float64' );
34+
var x = oneTo( N, 'float32' );
3535

3636
// Perform computation:
3737
var sum = sapxsumkbn.ndarray( N, 5.0, x, 1, 0 );

lib/node_modules/@stdlib/blas/ext/base/wasm/sapxsumkbn/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@
6060
"math",
6161
"blas",
6262
"level 1",
63-
"dasum",
63+
"sasum",
6464
"linear",
6565
"algebra",
6666
"subroutines",
6767
"sum",
6868
"vector",
6969
"array",
7070
"ndarray",
71-
"float64",
72-
"double",
73-
"float64array",
71+
"float32",
72+
"single",
73+
"float32array",
7474
"webassembly",
7575
"wasm"
7676
],

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
24+
var isnanf = require( '@stdlib/math/base/assert/is-nan' );
2525
var Float32Array = require( '@stdlib/array/float32' );
2626
var sapxsumkbn = require( './../lib' );
2727

@@ -57,7 +57,7 @@ tape( 'the `main` method adds a constant and calculates the sum of all strided a
5757

5858
x = new Float32Array( [ NaN, 4.0 ] );
5959
v = sapxsumkbn.main( x.length, 5.0, x, 1 );
60-
t.strictEqual( isnan( v ), true, 'returns expected value' );
60+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
6161

6262
t.end();
6363
});

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
24+
var isnanf = require( '@stdlib/math/base/assert/is-nan' );
2525
var Float32Array = require( '@stdlib/array/float32' );
2626
var sapxsumkbn = require( './../lib' );
2727

@@ -57,7 +57,7 @@ tape( 'the `ndarray` method adds a constant and calculates the sum of all stride
5757

5858
x = new Float32Array( [ NaN, 4.0 ] );
5959
v = sapxsumkbn.ndarray( x.length, 5.0, x, 1, 0 );
60-
t.strictEqual( isnan( v ), true, 'returns expected value' );
60+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
6161

6262
t.end();
6363
});

0 commit comments

Comments
 (0)