Skip to content

Commit b7b286d

Browse files
committed
chore: 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: 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 aa42d59 commit b7b286d

File tree

6 files changed

+21
-19
lines changed

6 files changed

+21
-19
lines changed

lib/node_modules/@stdlib/blas/base/wasm/scasum/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ var Complex64Array = require( '@stdlib/array/complex64' );
101101

102102
var x = new Complex64Array( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ] );
103103

104-
var sum = scasum.ndarray( 3, x, 1, x.length-2 );
104+
var sum = scasum.ndarray( 3, x, 1, x.length-3 );
105105
// returns 16.0
106106
```
107107

@@ -134,7 +134,7 @@ mod.initializeSync();
134134

135135
#### scasum.Module.prototype.main( N, xp, sx )
136136

137-
Computes the sum of absolute values.
137+
Computes the sum of the absolute values of the real and imaginary components of a single-precision complex floating-point vector.
138138

139139
<!-- eslint-disable node/no-sync -->
140140

@@ -180,7 +180,7 @@ The function has the following parameters:
180180

181181
#### scasum.Module.prototype.ndarray( N, xp, sx, ox )
182182

183-
Computes the sum of absolute values using alternative indexing semantics.
183+
Computes the sum of the absolute values of the real and imaginary components of a single-precision complex floating-point vector using alternative indexing semantics.
184184

185185
<!-- eslint-disable node/no-sync -->
186186

@@ -283,7 +283,7 @@ console.log( out );
283283

284284
[blas]: http://www.netlib.org/blas
285285

286-
[scasum]: https://www.netlib.org/lapack/explore-html/d5/d72/group__asum_ga5fb1932fad7d47868a711867e4f2c804.html#ga5fb1932fad7d47868a711867e4f2c804
286+
[scasum]: https://www.netlib.org/lapack/explore-html-3.6.1/df/d28/group__single__blas__level1_gadd7d12f994e4868ca9998b054707d934.html
287287

288288
[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
289289

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,12 @@ function createBenchmark( len ) {
8383

8484
// Reallocate the underlying memory to allow storing one vector:
8585
nb = bytesPerElement( options.dtype );
86-
mod.realloc( (N*nb)+nb );
86+
mod.realloc( N*nb );
8787

8888
// Define a pointer (i.e., byte offset) for storing the input vector:
8989
xptr = 0;
9090

91+
// Generate an array of random complex numbers:
9192
x = new Complex64Array( uniform( N, -10.0, 10.0, options ) );
9293

9394
// Write random values to module memory:

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,12 @@ function createBenchmark( len ) {
8383

8484
// Reallocate the underlying memory to allow storing one vector:
8585
nb = bytesPerElement( options.dtype );
86-
mod.realloc( (N*nb)+nb );
86+
mod.realloc( N*nb );
8787

8888
// Define a pointer (i.e., byte offset) for storing the input vector:
8989
xptr = 0;
9090

91+
// Generate an array of random complex numbers:
9192
x = new Complex64Array( uniform( N, -10.0, 10.0, options ) );
9293

9394
// Write random values to module memory:

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
// Use view offset; e.g., starting at 2nd element:
4242
> var x0 = new {{alias:@stdlib/array/complex64}}([1.0,-2.0,3.0,-4.0,5.0,-6.0,7.0,-8.0 ]);
4343
> var x1 = new {{alias:@stdlib/array/complex64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
44-
> s = {{alias}}.main( 2, x1, 2 )
45-
22.0
44+
> s = {{alias}}.main( 2, x1, 1 )
45+
18.0
4646

4747

4848
{{alias}}.ndarray( N, x, strideX, offsetX )
4949
Computes the sum of the absolute values of the real and imaginary
50-
components of a single-precision complex floating-point vector
51-
using alternative indexing semantics.
50+
components of a single-precision complex floating-point vector using
51+
alternative indexing semantics.
5252

5353
While typed array views mandate a view offset based on the underlying
5454
buffer, the offset parameters support indexing semantics based on starting
@@ -80,7 +80,7 @@
8080
> var s = {{alias}}.ndarray( x.length, x, 1, 0 )
8181
15.0
8282

83-
// Using offset parameter:
83+
// Advanced indexing:
8484
> x = new {{alias:@stdlib/array/complex64}}( [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0 ] );
8585
> s = {{alias}}.ndarray( 3, x, -1, x.length-1 )
8686
15.0
@@ -456,8 +456,8 @@
456456

457457
{{alias}}.Module.prototype.ndarray( N, xp, sx, ox )
458458
Computes the sum of the absolute values of the real and imaginary
459-
components of a single-precision complex floating-point vector
460-
using alternative indexing semantics.
459+
components of a single-precision complex floating-point vector using
460+
alternative indexing semantics.
461461

462462
Parameters
463463
----------

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ interface ModuleConstructor {
5656
* // Specify a vector length:
5757
* var N = 4;
5858
*
59-
* // Define pointer (i.e., byte offsets) for storing two vectors:
59+
* // Define a pointer (i.e., byte offset) for storing one vectors:
6060
* var xptr = 0;
6161
*
6262
* // Write vector values to module memory:
@@ -97,7 +97,7 @@ interface ModuleConstructor {
9797
* // Specify a vector length:
9898
* var N = 4;
9999
*
100-
* // Define pointer (i.e., byte offsets) for storing two vectors:
100+
* // Define a pointer (i.e., byte offset) for storing one vectors:
101101
* var xptr = 0;
102102
*
103103
* // Write vector values to module memory:
@@ -145,7 +145,7 @@ interface Module extends ModuleWrapper {
145145
* // Specify a vector length:
146146
* var N = 4;
147147
*
148-
* // Define pointer (i.e., byte offsets) for storing the input vector:
148+
* // Define a pointer (i.e., byte offset) for storing the input vector:
149149
* var xptr = 0;
150150
*
151151
* // Write vector values to module memory:
@@ -189,7 +189,7 @@ interface Module extends ModuleWrapper {
189189
* // Specify a vector length:
190190
* var N = 4;
191191
*
192-
* // Define pointer (i.e., byte offsets) for storing the input vector:
192+
* // Define a pointer (i.e., byte offset) for storing the input vector:
193193
* var xptr = 0;
194194
*
195195
* // Write vector values to module memory:
@@ -272,7 +272,7 @@ interface Routine extends ModuleWrapper {
272272
* // Specify a vector length:
273273
* var N = 4;
274274
*
275-
* // Define pointer (i.e., byte offsets) for storing the input vector:
275+
* // Define a pointer (i.e., byte offset) for storing the input vector:
276276
* var xptr = 0;
277277
*
278278
* // Write vector values to module memory:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ tape( 'the `main` method supports complex access patterns', function test( t ) {
133133
t.end();
134134
});
135135

136-
tape( 'the `main` method supports view offsets', function test( t ) {
136+
tape( 'the `main` method supports view offset', function test( t ) {
137137
var x0;
138138
var x1;
139139
var y;

0 commit comments

Comments
 (0)