Skip to content

Commit bcfcf6a

Browse files
chore: update readme examples
--- 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: passed - 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: na - task: lint_javascript_benchmarks status: na - 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: na - task: lint_license_headers status: passed ---
1 parent 02fcf07 commit bcfcf6a

File tree

2 files changed

+81
-83
lines changed

2 files changed

+81
-83
lines changed

lib/node_modules/@stdlib/blas/ext/base/wasm/dapxsumors/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var Float64Array = require( '@stdlib/array/float64' );
4545

4646
var x = new Float64Array( [ 1.0, -2.0, 2.0 ] );
4747

48-
var v = dapxsumors( x.length, 5.0, x, 1 );
48+
var sum = dapxsumors.main( x.length, 5.0, x, 1 );
4949
// returns 16.0
5050
```
5151

@@ -63,7 +63,7 @@ var Float64Array = require( '@stdlib/array/float64' );
6363

6464
var x = new Float64Array( [ 1.0, 2.0, 2.0, -7.0, -2.0, 3.0, 4.0, 2.0 ] );
6565

66-
var v = dapxsumors( 4, 5.0, x, 2 );
66+
var sum = dapxsumors.main( 4, 5.0, x, 2 );
6767
// returns 25.0
6868
```
6969

@@ -77,7 +77,7 @@ var Float64Array = require( '@stdlib/array/float64' );
7777
var x0 = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] );
7878
var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
7979

80-
var v = dapxsumors( 4, 5.0, x1, 2 );
80+
var sum = dapxsumors.main( 4, 5.0, x1, 2 );
8181
// returns 25.0
8282
```
8383

@@ -90,7 +90,7 @@ var Float64Array = require( '@stdlib/array/float64' );
9090

9191
var x = new Float64Array( [ 1.0, -2.0, 2.0 ] );
9292

93-
var v = dapxsumors.ndarray( x.length, 5.0, x, 1, 0 );
93+
var sum = dapxsumors.ndarray( x.length, 5.0, x, 1, 0 );
9494
// returns 16.0
9595
```
9696

@@ -264,7 +264,7 @@ var opts = {
264264
var x = discreteUniform( 10, 0, 100, opts );
265265
console.log( x );
266266

267-
var sum = dapxsumkbn.ndarray( x.length, 5.0, x, 1, 0 );
267+
var sum = dapxsumors.ndarray( x.length, 5.0, x, 1, 0 );
268268
console.log( sum );
269269
```
270270

@@ -294,8 +294,6 @@ console.log( sum );
294294

295295
[@stdlib/blas/ext/base/dapxsumors]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/dapxsumors
296296

297-
[l1norm]: https://en.wikipedia.org/wiki/Norm_%28mathematics%29
298-
299297
</section>
300298

301-
<!-- /.links -->
299+
<!-- /.links -->
Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,80 @@
11
{
2-
"name": "@stdlib/blas/ext/base/wasm/dapxsumors",
3-
"version": "0.0.0",
4-
"description": "Add a constant to each double-precision floating-point strided array element and compute the sum using an improved Kahan–Babuška algorithm.",
5-
"license": "Apache-2.0",
6-
"author": {
2+
"name": "@stdlib/blas/base/ext/wasm/dapxsumors",
3+
"version": "0.0.0",
4+
"description": "Add a constant to each double-precision floating-point strided array element and compute the sum using ordinary recursive summation.",
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+
{
712
"name": "The Stdlib Authors",
813
"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-
"browser": {
18-
"./lib/binary.js": "./lib/binary.browser.js"
19-
},
20-
"directories": {
21-
"benchmark": "./benchmark",
22-
"doc": "./docs",
23-
"example": "./examples",
24-
"lib": "./lib",
25-
"scripts": "./scripts",
26-
"src": "./src",
27-
"test": "./test"
28-
},
29-
"types": "./docs/types",
30-
"scripts": {},
31-
"homepage": "https://github.com/stdlib-js/stdlib",
32-
"repository": {
33-
"type": "git",
34-
"url": "git://github.com/stdlib-js/stdlib.git"
35-
},
36-
"bugs": {
37-
"url": "https://github.com/stdlib-js/stdlib/issues"
38-
},
39-
"dependencies": {},
40-
"devDependencies": {},
41-
"engines": {
42-
"node": ">=0.10.0",
43-
"npm": ">2.7.0"
44-
},
45-
"os": [
46-
"aix",
47-
"darwin",
48-
"freebsd",
49-
"linux",
50-
"macos",
51-
"openbsd",
52-
"sunos",
53-
"win32",
54-
"windows"
55-
],
56-
"keywords": [
57-
"stdlib",
58-
"stdmath",
59-
"mathematics",
60-
"math",
61-
"blas",
62-
"level 1",
63-
"dasum",
64-
"linear",
65-
"algebra",
66-
"subroutines",
67-
"sum",
68-
"vector",
69-
"array",
70-
"ndarray",
71-
"float64",
72-
"double",
73-
"float64array",
74-
"webassembly",
75-
"wasm"
76-
],
77-
"__stdlib__": {
78-
"wasm": true
7914
}
15+
],
16+
"main": "./lib",
17+
"browser": {
18+
"./lib/binary.js": "./lib/binary.browser.js"
19+
},
20+
"directories": {
21+
"benchmark": "./benchmark",
22+
"doc": "./docs",
23+
"example": "./examples",
24+
"lib": "./lib",
25+
"scripts": "./scripts",
26+
"src": "./src",
27+
"test": "./test"
28+
},
29+
"types": "./docs/types",
30+
"scripts": {},
31+
"homepage": "https://github.com/stdlib-js/stdlib",
32+
"repository": {
33+
"type": "git",
34+
"url": "git://github.com/stdlib-js/stdlib.git"
35+
},
36+
"bugs": {
37+
"url": "https://github.com/stdlib-js/stdlib/issues"
38+
},
39+
"dependencies": {},
40+
"devDependencies": {},
41+
"engines": {
42+
"node": ">=0.10.0",
43+
"npm": ">2.7.0"
44+
},
45+
"os": [
46+
"aix",
47+
"darwin",
48+
"freebsd",
49+
"linux",
50+
"macos",
51+
"openbsd",
52+
"sunos",
53+
"win32",
54+
"windows"
55+
],
56+
"keywords": [
57+
"stdlib",
58+
"stdmath",
59+
"mathematics",
60+
"math",
61+
"blas",
62+
"level 1",
63+
"dasum",
64+
"linear",
65+
"algebra",
66+
"subroutines",
67+
"sum",
68+
"vector",
69+
"array",
70+
"ndarray",
71+
"float64",
72+
"double",
73+
"float64array",
74+
"webassembly",
75+
"wasm"
76+
],
77+
"__stdlib__": {
78+
"wasm": true
79+
}
8080
}

0 commit comments

Comments
 (0)