Skip to content

Commit d0d67f5

Browse files
committed
fix: apply review suggestions
1 parent 4172353 commit d0d67f5

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Computes the sum of double-precision floating-point strided array elements using
179179
const double x[] = { 1.0, 2.0, 3.0, 4.0 };
180180

181181
double v = stdlib_strided_dsumkbn( 4, x, 1 );
182-
// returns 7.0
182+
// returns 10.0
183183
```
184184
185185
The function accepts the following arguments:
@@ -200,7 +200,7 @@ Computes the sum of double-precision floating-point strided array elements using
200200
const double x[] = { 1.0, 2.0, 3.0, 4.0 };
201201

202202
double v = stdlib_strided_dsumkbn_ndarray( 4, x, 1, 0 );
203-
// returns 7.0
203+
// returns 10s.0
204204
```
205205
206206
The function accepts the following arguments:

lib/node_modules/@stdlib/blas/ext/base/dsumkbn/examples/c/example.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@
1717
*/
1818

1919
#include "stdlib/blas/ext/base/dsumkbn.h"
20-
#include <stdint.h>
2120
#include <stdio.h>
2221

2322
int main( void ) {
2423
// Create a strided array:
2524
const double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2625

2726
// Specify the number of elements:
28-
const CBLAS_INT N = 5;
27+
const int N = 5;
2928

3029
// Specify the stride length:
31-
const CBLAS_INT strideX = 2;
30+
const int strideX = 2;
3231

3332
// Compute the sum:
3433
double v = stdlib_strided_dsumkbn( N, x, strideX );

lib/node_modules/@stdlib/blas/ext/base/dsumkbn/lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
*
3535
* @example
3636
* var Float64Array = require( '@stdlib/array/float64' );
37-
* var floor = require( '@stdlib/math/base/special/floor' );
3837
* var dsumkbn = require( '@stdlib/blas/ext/base/dsumkbn' );
3938
*
4039
* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] );

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ var addon = require( './../src/addon.node' );
3636
*
3737
* @example
3838
* var Float64Array = require( '@stdlib/array/float64' );
39-
* var floor = require( '@stdlib/math/base/special/floor' );
4039
*
4140
* var x = new Float64Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] );
4241
*

lib/node_modules/@stdlib/blas/ext/base/dsumkbn/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ double API_SUFFIX(stdlib_strided_dsumkbn_ndarray)( const CBLAS_INT N, const doub
7070
if ( N <= 0 ) {
7171
return 0.0;
7272
}
73-
ix = offsetX;
73+
ix = offsetX;
7474
if ( strideX == 0 ) {
7575
return N * X[ ix ];
7676
}

0 commit comments

Comments
 (0)