Skip to content

Commit 7f287b0

Browse files
committed
lint
1 parent e060a81 commit 7f287b0

File tree

7 files changed

+155
-156
lines changed

7 files changed

+155
-156
lines changed

lib/node_modules/@stdlib/blas/ext/base/ndarray/dsumkbn2/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ limitations under the License.
2020

2121
# dsumkbn2
2222

23-
> Compute the sum of all elements in a one-dimensional double-precision
24-
floating-point ndarray using a second-order iterative Kahan–Babuška algorithm.
23+
> Compute the sum of all elements in a one-dimensional double-precision floating-point ndarray using a second-order iterative Kahan–Babuška algorithm.
2524
2625
<section class="intro">
2726

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020

2121
// MODULES //
2222

23-
var bench = require('@stdlib/bench');
24-
var uniform = require('@stdlib/random/array/uniform');
25-
var isnan = require('@stdlib/math/base/assert/is-nan');
26-
var pow = require('@stdlib/math/base/special/pow');
27-
var ndarray = require('@stdlib/ndarray/base/ctor');
28-
var pkg = require('./../package.json').name;
29-
var dsumkbn2 = require('./../lib');
23+
var bench = require( '@stdlib/bench' );
24+
var uniform = require( '@stdlib/random/array/uniform' );
25+
var isnan = require( '@stdlib/math/base/assert/is-nan' );
26+
var pow = require( '@stdlib/math/base/special/pow' );
27+
var ndarray = require( '@stdlib/ndarray/base/ctor' );
28+
var pkg = require( './../package.json' ).name;
29+
var dsumkbn2 = require( './../lib' );
3030

3131

3232
// VARIABLES //
@@ -45,31 +45,31 @@ var options = {
4545
* @param {PositiveInteger} len - array length
4646
* @returns {Function} benchmark function
4747
*/
48-
function createBenchmark(len) {
48+
function createBenchmark( len ) {
4949
var xbuf;
5050
var x;
5151

52-
xbuf = uniform(len, -10.0, 10.0, options);
53-
x = new ndarray(options.dtype, xbuf, [len], [1], 0, 'row-major');
52+
xbuf = uniform( len, -10.0, 10.0, options );
53+
x = new ndarray( options.dtype, xbuf, [len], [1], 0, 'row-major' );
5454

5555
return benchmark;
5656

57-
function benchmark(b) {
57+
function benchmark( b ) {
5858
var v;
5959
var i;
6060

6161
b.tic();
62-
for (i = 0; i < b.iterations; i++) {
63-
v = dsumkbn2([x]);
64-
if (isnan(v)) {
65-
b.fail('should not return NaN');
62+
for ( i = 0; i < b.iterations; i++ ) {
63+
v = dsumkbn2( [x] );
64+
if ( isnan( v ) ) {
65+
b.fail( 'should not return NaN' );
6666
}
6767
}
6868
b.toc();
69-
if (isnan(v)) {
70-
b.fail('should not return NaN');
69+
if ( isnan( v ) ) {
70+
b.fail( 'should not return NaN' );
7171
}
72-
b.pass('benchmark finished');
72+
b.pass( 'benchmark finished' );
7373
b.end();
7474
}
7575
}
@@ -92,10 +92,10 @@ function main() {
9292
min = 1; // 10^min
9393
max = 6; // 10^max
9494

95-
for (i = min; i <= max; i++) {
96-
len = pow(10, i);
97-
f = createBenchmark(len);
98-
bench(pkg + ':len=' + len, f);
95+
for ( i = min; i <= max; i++ ) {
96+
len = pow( 10, i );
97+
f = createBenchmark( len );
98+
bench( pkg + ':len=' + len, f );
9999
}
100100
}
101101

lib/node_modules/@stdlib/blas/ext/base/ndarray/dsumkbn2/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { float64ndarray } from '@stdlib/types/ndarray';
3838
* var v = dsumkbn2( [ x ] );
3939
* // returns 1.0
4040
*/
41-
declare function dsumkbn2(arrays: [float64ndarray]): number;
41+
declare function dsumkbn2( arrays: [float64ndarray] ): number;
4242

4343

4444
// EXPORTS //

lib/node_modules/@stdlib/blas/ext/base/ndarray/dsumkbn2/examples/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818

1919
'use strict';
2020

21-
var discreteUniform = require('@stdlib/random/array/discrete-uniform');
22-
var ndarray = require('@stdlib/ndarray/base/ctor');
23-
var ndarray2array = require('@stdlib/ndarray/to-array');
24-
var dsumkbn2 = require('./../lib');
21+
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
22+
var ndarray = require( '@stdlib/ndarray/base/ctor' );
23+
var ndarray2array = require( '@stdlib/ndarray/to-array' );
24+
var dsumkbn2 = require( './../lib' );
2525

26-
var xbuf = discreteUniform(10, -50, 50, {
26+
var xbuf = discreteUniform( 10, -50, 50, {
2727
'dtype': 'float64'
2828
});
29-
var x = new ndarray('float64', xbuf, [xbuf.length], [1], 0, 'row-major');
30-
console.log(ndarray2array(x));
29+
var x = new ndarray( 'float64', xbuf, [xbuf.length], [1], 0, 'row-major' );
30+
console.log( ndarray2array( x ) );
3131

32-
var v = dsumkbn2([x]);
33-
console.log(v);
32+
var v = dsumkbn2( [x] );
33+
console.log( v );

lib/node_modules/@stdlib/blas/ext/base/ndarray/dsumkbn2/lib/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
// MODULES //
2222

23-
var numelDimension = require('@stdlib/ndarray/base/numel-dimension');
24-
var getStride = require('@stdlib/ndarray/base/stride');
25-
var getOffset = require('@stdlib/ndarray/base/offset');
26-
var getData = require('@stdlib/ndarray/base/data-buffer');
27-
var strided = require('@stdlib/blas/ext/base/dsumkbn2').ndarray;
23+
var numelDimension = require( '@stdlib/ndarray/base/numel-dimension' );
24+
var getStride = require( '@stdlib/ndarray/base/stride' );
25+
var getOffset = require( '@stdlib/ndarray/base/offset' );
26+
var getData = require( '@stdlib/ndarray/base/data-buffer' );
27+
var strided = require( '@stdlib/blas/ext/base/dsumkbn2' ).ndarray;
2828

2929

3030
// MAIN //
Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
11
{
2-
"name": "@stdlib/blas/ext/base/ndarray/dsumkbn2",
3-
"version": "0.0.0",
4-
"description": "Compute the sum of all elements in a one-dimensional double-precision floating-point ndarray using a second-order iterative Kahan–Babuška algorithm.",
5-
"license": "Apache-2.0",
6-
"author": {
7-
"name": "The Stdlib Authors",
8-
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
9-
},
10-
"contributors": [
11-
{
12-
"name": "The Stdlib Authors",
13-
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
14-
}
15-
],
16-
"main": "./lib",
17-
"directories": {
18-
"benchmark": "./benchmark",
19-
"doc": "./docs",
20-
"example": "./examples",
21-
"lib": "./lib",
22-
"test": "./test"
23-
},
24-
"types": "./docs/types",
25-
"scripts": {},
26-
"homepage": "https://github.com/stdlib-js/stdlib",
27-
"repository": {
28-
"type": "git",
29-
"url": "git://github.com/stdlib-js/stdlib.git"
30-
},
31-
"bugs": {
32-
"url": "https://github.com/stdlib-js/stdlib/issues"
33-
},
34-
"dependencies": {},
35-
"devDependencies": {},
36-
"engines": {
37-
"node": ">=0.10.0",
38-
"npm": ">2.7.0"
39-
},
40-
"os": [
41-
"aix",
42-
"darwin",
43-
"freebsd",
44-
"linux",
45-
"macos",
46-
"openbsd",
47-
"sunos",
48-
"win32",
49-
"windows"
50-
],
51-
"keywords": [
52-
"stdlib",
53-
"stdmath",
54-
"statistics",
55-
"stats",
56-
"mathematics",
57-
"math",
58-
"blas",
59-
"extended",
60-
"sum",
61-
"total",
62-
"summation",
63-
"compensated",
64-
"kahan",
65-
"kbn2",
66-
"ndarray",
67-
"float64",
68-
"double",
69-
"float64array"
70-
],
71-
"__stdlib__": {}
72-
}
2+
"name": "@stdlib/blas/ext/base/ndarray/dsumkbn2",
3+
"version": "0.0.0",
4+
"description": "Compute the sum of all elements in a one-dimensional double-precision floating-point ndarray using a second-order iterative Kahan–Babuška algorithm.",
5+
"license": "Apache-2.0",
6+
"author": {
7+
"name": "The Stdlib Authors",
8+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
9+
},
10+
"contributors": [
11+
{
12+
"name": "The Stdlib Authors",
13+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
14+
}
15+
],
16+
"main": "./lib",
17+
"directories": {
18+
"benchmark": "./benchmark",
19+
"doc": "./docs",
20+
"example": "./examples",
21+
"lib": "./lib",
22+
"test": "./test"
23+
},
24+
"types": "./docs/types",
25+
"scripts": {},
26+
"homepage": "https://github.com/stdlib-js/stdlib",
27+
"repository": {
28+
"type": "git",
29+
"url": "git://github.com/stdlib-js/stdlib.git"
30+
},
31+
"bugs": {
32+
"url": "https://github.com/stdlib-js/stdlib/issues"
33+
},
34+
"dependencies": {},
35+
"devDependencies": {},
36+
"engines": {
37+
"node": ">=0.10.0",
38+
"npm": ">2.7.0"
39+
},
40+
"os": [
41+
"aix",
42+
"darwin",
43+
"freebsd",
44+
"linux",
45+
"macos",
46+
"openbsd",
47+
"sunos",
48+
"win32",
49+
"windows"
50+
],
51+
"keywords": [
52+
"stdlib",
53+
"stdmath",
54+
"statistics",
55+
"stats",
56+
"mathematics",
57+
"math",
58+
"blas",
59+
"extended",
60+
"sum",
61+
"total",
62+
"summation",
63+
"compensated",
64+
"kahan",
65+
"kbn2",
66+
"ndarray",
67+
"float64",
68+
"double",
69+
"float64array"
70+
],
71+
"__stdlib__": {}
72+
}

0 commit comments

Comments
 (0)