Skip to content

Commit f3680e3

Browse files
chore: changes according to code review
1 parent e851b37 commit f3680e3

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
The `N` and stride parameters determine which elements in the strided array
77
are accessed at runtime.
88

9-
Indexing is relative to the first index. To introduce an offset, use a typed
10-
array view.
9+
Indexing is relative to the first index. To introduce an offset, use typed
10+
array views.
1111

12-
If `N <= 0`, the function returns `0.0`.
12+
If `N <= 0`, the function returns the strided array unchanged.
1313

1414
Parameters
1515
----------

lib/node_modules/@stdlib/blas/ext/base/wasm/dapx/lib/module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ inherits( Module, WasmModule );
108108
* @param {number} alpha - scalar constant
109109
* @param {NonNegativeInteger} xptr - input array pointer (i.e., byte offset)
110110
* @param {integer} strideX - stride length
111-
* @returns {number} sum
111+
* @returns {Float64Array} input array
112112
*
113113
* @example
114114
* var Memory = require( '@stdlib/wasm/memory' );
@@ -164,7 +164,7 @@ setReadOnly( Module.prototype, 'main', function dapx( N, alpha, xptr, strideX )
164164
* @param {NonNegativeInteger} xptr - input array pointer (i.e., byte offset)
165165
* @param {integer} strideX - stride length
166166
* @param {NonNegativeInteger} offsetX - starting index
167-
* @returns {number} sum
167+
* @returns {Float64Array} input array
168168
*
169169
* @example
170170
* var Memory = require( '@stdlib/wasm/memory' );

lib/node_modules/@stdlib/blas/ext/base/wasm/dapx/lib/routine.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ inherits( Routine, Module );
9797
* @param {number} alpha - scalar constant
9898
* @param {Float64Array} x - input array
9999
* @param {integer} strideX - stride length
100-
* @returns {number} sum
100+
* @returns {Float64Array} input array
101101
*
102102
* @example
103103
* var Float64Array = require( '@stdlib/array/float64' );
@@ -131,7 +131,7 @@ setReadOnly( Routine.prototype, 'main', function dapx( N, alpha, x, strideX ) {
131131
* @param {Float64Array} x - input array
132132
* @param {integer} strideX - stride length
133133
* @param {NonNegativeInteger} offsetX - starting index
134-
* @returns {number} sum
134+
* @returns {Float64Array} input array
135135
*
136136
* @example
137137
* var Float64Array = require( '@stdlib/array/float64' );

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@stdlib/blas/base/ext/wasm/dapx",
2+
"name": "@stdlib/blas/ext/base/wasm/dapx",
33
"version": "0.0.0",
4-
"description": "Adds a scalar constant to each element in a double-precision floating-point strided array.",
4+
"description": "Add a scalar constant to each element in a double-precision floating-point strided array.",
55
"license": "Apache-2.0",
66
"author": {
77
"name": "The Stdlib Authors",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ tape( 'a module instance has a `main` method which returns a pointer to the outp
9797
t.end();
9898
});
9999

100-
tape( 'if provided an `N` parameter less than or equal to `0`, a module instance has a `main` method which returns the output array unchanged', function test( t ) {
100+
tape( 'if provided an `N` parameter less than or equal to `0`, a module instance has a `main` method which leaves the output array unchanged', function test( t ) {
101101
var expected;
102102
var actual;
103103
var mem;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ tape( 'the `ndarray` method returns a reference to the input array', function te
9797
t.end();
9898
});
9999

100-
tape( 'if provided an `N` parameter less than or equal to `0`, a module instance has a `ndarray` method which returns the output array unchanged', function test( t ) {
100+
tape( 'if provided an `N` parameter less than or equal to `0`, a module instance has a `main` method which leaves the output array unchanged', function test( t ) {
101101
var expected;
102102
var actual;
103103
var mem;

0 commit comments

Comments
 (0)