Skip to content

Commit 60f018c

Browse files
committed
docs: resolve suggestion by mentor
1 parent 7487c6f commit 60f018c

File tree

8 files changed

+10
-22
lines changed

8 files changed

+10
-22
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ 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-
8180
var v = dapxsumors( 4, 5.0, x1, 2 );
8281
// returns 25.0
8382
```
@@ -137,7 +136,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
137136
var filledarrayBy = require( '@stdlib/array/filled-by' );
138137
var dapxsumors = require( '@stdlib/blas/ext/base/dapxsumors' );
139138

140-
var x = filledarrayBy(10, 'float32', discreteUniform(0, 100));
139+
var x = filledarrayBy( 10, 'float32', discreteUniform(0, 100) );
141140
console.log( x );
142141

143142
var v = dapxsumors( x.length, 5.0, x, 1 );

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Adds a constant to each double-precision floating-point strided array
44
element and computes the sum using ordinary recursive summation.
55

6-
The `N` and stride parameters determine which elements in the strided array are accessed
7-
at runtime.
6+
The `N` and stride parameters determine which elements in the strided
7+
array are accessed at runtime.
88

99
Indexing is relative to the first index. To introduce an offset, use a typed
1010
array view.
@@ -46,7 +46,8 @@
4646
> var x0 = new {{alias:@stdlib/array/float64}}( [ 1.0, -2.0, 3.0, 2.0, 5.0, -1.0 ] );
4747
> var x1 = new {{alias:@stdlib/array/float64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
4848
> {{alias}}( 2, 5.0, x1, 2 )
49-
14.0
49+
10
50+
5051

5152
{{alias}}.ndarray( N, alpha, x, stride, offset )
5253
Adds a constant to each double-precision floating-point strided array

lib/node_modules/@stdlib/blas/ext/base/dapxsumors/manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
],
3636
"libpath": [],
3737
"dependencies": [
38-
"stdlib/napi/export.h",
39-
"stdlib/napi/argv.h",
40-
"stdlib/napi/argv_int64.h",
41-
"stdlib/napi/argv_strided_float64array.h"
38+
"stdlib/napi/export",
39+
"stdlib/napi/argv",
40+
"stdlib/napi/argv_int64",
41+
"stdlib/napi/argv_strided_float64array"
4242
]
4343
}
4444
]

lib/node_modules/@stdlib/blas/ext/base/dapxsumors/src/addon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4141
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, stride, argv, 2 );
4242

4343
napi_value v;
44-
napi_status status = napi_create_double( env, stdlib_strided_dapxsumors( N, alpha, (double *)X, stride ), &v );
44+
napi_status status = napi_create_double( env, stdlib_strided_dapxsumors( N, alpha, X, stride ), &v );
4545
assert( status == napi_ok );
4646

4747
return v;

lib/node_modules/@stdlib/blas/ext/base/dapxsumors/test/test.dapxsumors.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ tape( 'if provided an `N` parameter equal to `1`, the function returns the first
9494
});
9595

9696
tape( 'the function supports a `stride` parameter', function test( t ) {
97-
var N;
9897
var x;
9998
var v;
10099

@@ -116,7 +115,6 @@ tape( 'the function supports a `stride` parameter', function test( t ) {
116115
});
117116

118117
tape( 'the function supports a negative `stride` parameter', function test( t ) {
119-
var N;
120118
var x;
121119
var v;
122120

@@ -152,7 +150,6 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the f
152150
tape( 'the function supports view offsets', function test( t ) {
153151
var x0;
154152
var x1;
155-
var N;
156153
var v;
157154

158155
x0 = new Float64Array([

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ tape( 'if provided an `N` parameter equal to `1`, the function returns the first
212212
});
213213

214214
tape( 'the function supports a `stride` parameter', opts, function test( t ) {
215-
var N;
216215
var x;
217216
var v;
218217

@@ -234,7 +233,6 @@ tape( 'the function supports a `stride` parameter', opts, function test( t ) {
234233
});
235234

236235
tape( 'the function supports a negative `stride` parameter', opts, function test( t ) {
237-
var N;
238236
var x;
239237
var v;
240238

@@ -270,7 +268,6 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the f
270268
tape( 'the function supports view offsets', opts, function test( t ) {
271269
var x0;
272270
var x1;
273-
var N;
274271
var v;
275272

276273
x0 = new Float64Array([

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ tape( 'if provided an `N` parameter equal to `1`, the function returns the first
9494
});
9595

9696
tape( 'the function supports a `stride` parameter', function test( t ) {
97-
var N;
9897
var x;
9998
var v;
10099

@@ -116,7 +115,6 @@ tape( 'the function supports a `stride` parameter', function test( t ) {
116115
});
117116

118117
tape( 'the function supports a negative `stride` parameter', function test( t ) {
119-
var N;
120118
var x;
121119
var v;
122120

@@ -150,7 +148,6 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the f
150148
});
151149

152150
tape( 'the function supports an `offset` parameter', function test( t ) {
153-
var N;
154151
var x;
155152
var v;
156153

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ tape( 'if provided an `N` parameter equal to `1`, the function returns the first
103103
});
104104

105105
tape( 'the function supports a `stride` parameter', opts, function test( t ) {
106-
var N;
107106
var x;
108107
var v;
109108

@@ -125,7 +124,6 @@ tape( 'the function supports a `stride` parameter', opts, function test( t ) {
125124
});
126125

127126
tape( 'the function supports a negative `stride` parameter', opts, function test( t ) {
128-
var N;
129127
var x;
130128
var v;
131129

@@ -159,7 +157,6 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the f
159157
});
160158

161159
tape( 'the function supports an `offset` parameter', opts, function test( t ) {
162-
var N;
163160
var x;
164161
var v;
165162

0 commit comments

Comments
 (0)