Skip to content

Commit 95e3a15

Browse files
committed
chore: minor clean-up
--- 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: passed - task: lint_package_json status: na - task: lint_repl_help status: na - 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: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: passed - 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 5ff8528 commit 95e3a15

File tree

10 files changed

+127
-125
lines changed

10 files changed

+127
-125
lines changed

lib/node_modules/@stdlib/blas/ext/base/ndarray/ssum/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var opts = {
4343
* Returns a one-dimensional ndarray.
4444
*
4545
* @private
46-
* @param {Float64Array} buffer - underlying data buffer
46+
* @param {Float32Array} buffer - underlying data buffer
4747
* @param {NonNegativeInteger} length - number of indexed elements
4848
* @param {integer} stride - stride length
4949
* @param {NonNegativeInteger} offset - index offset

lib/node_modules/@stdlib/math/strided/special/ahavercos-by/test/test.main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ tape( 'the function computes the inverse half-value versed cosine via a callback
7474
ahavercosBy( x.length, x, 1, y, 1, accessor );
7575
t.deepEqual( y, expected, 'deep equal' );
7676

77+
// eslint-disable-next-line stdlib/no-new-array
7778
x = new Array( 5 ); // sparse array
7879
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
7980

@@ -82,6 +83,7 @@ tape( 'the function computes the inverse half-value versed cosine via a callback
8283
ahavercosBy( x.length, x, 1, y, 1, accessor );
8384
t.deepEqual( y, expected, 'deep equal' );
8485

86+
// eslint-disable-next-line stdlib/no-new-array
8587
x = new Array( 5 ); // sparse array
8688
x[ 2 ] = rand();
8789
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
Lines changed: 107 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,110 @@
11
{
2-
"options": {
3-
"task": "build",
4-
"wasm": false
2+
"options": {
3+
"task": "build",
4+
"wasm": false
5+
},
6+
"fields": [
7+
{
8+
"field": "src",
9+
"resolve": true,
10+
"relative": true
511
},
6-
"fields": [
7-
{
8-
"field": "src",
9-
"resolve": true,
10-
"relative": true
11-
},
12-
{
13-
"field": "include",
14-
"resolve": true,
15-
"relative": true
16-
},
17-
{
18-
"field": "libraries",
19-
"resolve": false,
20-
"relative": false
21-
},
22-
{
23-
"field": "libpath",
24-
"resolve": true,
25-
"relative": false
26-
}
27-
],
28-
"confs": [
29-
{
30-
"task": "build",
31-
"wasm": false,
32-
"src": [
33-
"./src/main.c"
34-
],
35-
"include": [
36-
"./include"
37-
],
38-
"libraries": [],
39-
"libpath": [],
40-
"dependencies": [
41-
"@stdlib/blas/base/shared",
42-
"@stdlib/stats/strided/smaxabs",
43-
"@stdlib/ndarray/ctor",
44-
"@stdlib/ndarray/base/napi/addon-arguments",
45-
"@stdlib/napi/export",
46-
"@stdlib/napi/argv",
47-
"@stdlib/napi/create-double"
48-
]
49-
},
50-
{
51-
"task": "benchmark",
52-
"wasm": false,
53-
"src": [
54-
"./src/main.c"
55-
],
56-
"include": [
57-
"./include"
58-
],
59-
"libraries": [],
60-
"libpath": [],
61-
"dependencies": [
62-
"@stdlib/blas/base/shared",
63-
"@stdlib/stats/strided/smaxabs",
64-
"@stdlib/ndarray/ctor",
65-
"@stdlib/ndarray/dtypes",
66-
"@stdlib/ndarray/index-modes",
67-
"@stdlib/ndarray/orders",
68-
"@stdlib/ndarray/base/bytes-per-element"
69-
]
70-
},
71-
{
72-
"task": "examples",
73-
"wasm": false,
74-
"src": [
75-
"./src/main.c"
76-
],
77-
"include": [
78-
"./include"
79-
],
80-
"libraries": [],
81-
"libpath": [],
82-
"dependencies": [
83-
"@stdlib/blas/base/shared",
84-
"@stdlib/stats/strided/smaxabs",
85-
"@stdlib/ndarray/ctor",
86-
"@stdlib/ndarray/dtypes",
87-
"@stdlib/ndarray/index-modes",
88-
"@stdlib/ndarray/orders",
89-
"@stdlib/ndarray/base/bytes-per-element"
90-
]
91-
},
92-
{
93-
"task": "",
94-
"wasm": true,
95-
"src": [
96-
"./src/main.c"
97-
],
98-
"include": [
99-
"./include"
100-
],
101-
"libraries": [],
102-
"libpath": [],
103-
"dependencies": [
104-
"@stdlib/blas/base/shared",
105-
"@stdlib/stats/strided/smaxabs",
106-
"@stdlib/ndarray/ctor"
107-
]
108-
}
109-
]
12+
{
13+
"field": "include",
14+
"resolve": true,
15+
"relative": true
16+
},
17+
{
18+
"field": "libraries",
19+
"resolve": false,
20+
"relative": false
21+
},
22+
{
23+
"field": "libpath",
24+
"resolve": true,
25+
"relative": false
26+
}
27+
],
28+
"confs": [
29+
{
30+
"task": "build",
31+
"wasm": false,
32+
"src": [
33+
"./src/main.c"
34+
],
35+
"include": [
36+
"./include"
37+
],
38+
"libraries": [],
39+
"libpath": [],
40+
"dependencies": [
41+
"@stdlib/blas/base/shared",
42+
"@stdlib/stats/strided/smaxabs",
43+
"@stdlib/ndarray/ctor",
44+
"@stdlib/ndarray/base/napi/addon-arguments",
45+
"@stdlib/napi/export",
46+
"@stdlib/napi/argv",
47+
"@stdlib/napi/create-double"
48+
]
49+
},
50+
{
51+
"task": "benchmark",
52+
"wasm": false,
53+
"src": [
54+
"./src/main.c"
55+
],
56+
"include": [
57+
"./include"
58+
],
59+
"libraries": [],
60+
"libpath": [],
61+
"dependencies": [
62+
"@stdlib/blas/base/shared",
63+
"@stdlib/stats/strided/smaxabs",
64+
"@stdlib/ndarray/ctor",
65+
"@stdlib/ndarray/dtypes",
66+
"@stdlib/ndarray/index-modes",
67+
"@stdlib/ndarray/orders",
68+
"@stdlib/ndarray/base/bytes-per-element"
69+
]
70+
},
71+
{
72+
"task": "examples",
73+
"wasm": false,
74+
"src": [
75+
"./src/main.c"
76+
],
77+
"include": [
78+
"./include"
79+
],
80+
"libraries": [],
81+
"libpath": [],
82+
"dependencies": [
83+
"@stdlib/blas/base/shared",
84+
"@stdlib/stats/strided/smaxabs",
85+
"@stdlib/ndarray/ctor",
86+
"@stdlib/ndarray/dtypes",
87+
"@stdlib/ndarray/index-modes",
88+
"@stdlib/ndarray/orders",
89+
"@stdlib/ndarray/base/bytes-per-element"
90+
]
91+
},
92+
{
93+
"task": "",
94+
"wasm": true,
95+
"src": [
96+
"./src/main.c"
97+
],
98+
"include": [
99+
"./include"
100+
],
101+
"libraries": [],
102+
"libpath": [],
103+
"dependencies": [
104+
"@stdlib/blas/base/shared",
105+
"@stdlib/stats/strided/smaxabs",
106+
"@stdlib/ndarray/ctor"
107+
]
108+
}
109+
]
110110
}

lib/node_modules/@stdlib/stats/base/ndarray/smaxabs/test/test.main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ tape( 'if provided an empty ndarray, the function returns `NaN`', function test(
9797
t.end();
9898
});
9999

100-
tape( 'if provided an ndarray containing a single element, the function returns that element', function test( t ) {
100+
tape( 'if provided an ndarray containing a single element, the function returns its absolute value', function test( t ) {
101101
var x;
102102
var v;
103103

104-
x = new Float32Array( [ 1.0 ] );
104+
x = new Float32Array( [ -3.0 ] );
105105

106106
v = smaxabs( [ vector( x, 1, 1, 0 ) ] );
107-
t.strictEqual( v, 1.0, 'returns expected value' );
107+
t.strictEqual( v, 3.0, 'returns expected value' );
108108

109109
t.end();
110110
});

lib/node_modules/@stdlib/stats/base/ndarray/smaxabs/test/test.native.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var resolve = require( 'path' ).resolve;
2424
var tape = require( 'tape' );
2525
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
26-
var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );
26+
var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' );
2727
var Float32Array = require( '@stdlib/array/float32' );
2828
var ndarray = require( '@stdlib/ndarray/base/ctor' );
2929
var tryRequire = require( '@stdlib/utils/try-require' );
@@ -81,7 +81,7 @@ tape( 'the function calculates the maximum absolute value of a one-dimensional n
8181

8282
x = new Float32Array( [ -0.0, 0.0, -0.0 ] );
8383
v = smaxabs( [ vector( x, 3, 1, 0 ) ] );
84-
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
84+
t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' );
8585

8686
x = new Float32Array( [ NaN ] );
8787
v = smaxabs( [ vector( x, 1, 1, 0 ) ] );
@@ -106,14 +106,14 @@ tape( 'if provided an empty ndarray, the function returns `NaN`', opts, function
106106
t.end();
107107
});
108108

109-
tape( 'if provided an ndarray containing a single element, the function returns that element', opts, function test( t ) {
109+
tape( 'if provided an ndarray containing a single element, the function returns its absolute value', opts, function test( t ) {
110110
var x;
111111
var v;
112112

113-
x = new Float32Array( [ 1.0 ] );
113+
x = new Float32Array( [ -3.0 ] );
114114

115115
v = smaxabs( [ vector( x, 1, 1, 0 ) ] );
116-
t.strictEqual( v, 1.0, 'returns expected value' );
116+
t.strictEqual( v, 3.0, 'returns expected value' );
117117

118118
t.end();
119119
});

lib/node_modules/@stdlib/stats/base/ndarray/sminabs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int main( void ) {
227227
float v = stdlib_stats_sminabs( arrays );
228228

229229
// Print the result:
230-
printf( "min: %f\n", v );
230+
printf( "minabs: %f\n", v );
231231

232232
// Free allocated memory:
233233
stdlib_ndarray_free( x );

lib/node_modules/@stdlib/stats/base/ndarray/sminabs/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int main( void ) {
6767
float v = stdlib_stats_sminabs( arrays );
6868

6969
// Print the result:
70-
printf( "min: %f\n", v );
70+
printf( "minabs: %f\n", v );
7171

7272
// Free allocated memory:
7373
stdlib_ndarray_free( x );

lib/node_modules/@stdlib/stats/base/ndarray/sminabs/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* Computes the minimum absolute value of a one-dimensional single-precision floating-point ndarray.
2626
*
2727
* @param arrays list containing an input ndarray
28-
* @return minimum value
28+
* @return minimum absolute value
2929
*/
3030
float stdlib_stats_sminabs( const struct ndarray *arrays[] ) {
3131
const struct ndarray *x = arrays[ 0 ];

lib/node_modules/@stdlib/stats/base/ndarray/sminabs/test/test.main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ tape( 'if provided an empty ndarray, the function returns `NaN`', function test(
9797
t.end();
9898
});
9999

100-
tape( 'if provided an ndarray containing a single element, the function returns that element', function test( t ) {
100+
tape( 'if provided an ndarray containing a single element, the function returns its absolute value', function test( t ) {
101101
var x;
102102
var v;
103103

104-
x = new Float32Array( [ 1.0 ] );
104+
x = new Float32Array( [ -3.0 ] );
105105

106106
v = sminabs( [ vector( x, 1, 1, 0 ) ] );
107-
t.strictEqual( v, 1.0, 'returns expected value' );
107+
t.strictEqual( v, 3.0, 'returns expected value' );
108108

109109
t.end();
110110
});

lib/node_modules/@stdlib/stats/base/ndarray/sminabs/test/test.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ tape( 'if provided an empty ndarray, the function returns `NaN`', opts, function
106106
t.end();
107107
});
108108

109-
tape( 'if provided an ndarray containing a single element, the function returns that element', opts, function test( t ) {
109+
tape( 'if provided an ndarray containing a single element, the function returns its absolute value', opts, function test( t ) {
110110
var x;
111111
var v;
112112

113-
x = new Float32Array( [ 1.0 ] );
113+
x = new Float32Array( [ -3.0 ] );
114114

115115
v = sminabs( [ vector( x, 1, 1, 0 ) ] );
116-
t.strictEqual( v, 1.0, 'returns expected value' );
116+
t.strictEqual( v, 3.0, 'returns expected value' );
117117

118118
t.end();
119119
});

0 commit comments

Comments
 (0)