Skip to content

Commit b39e6d5

Browse files
committed
Auto-generated commit
1 parent 050c4a4 commit b39e6d5

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-11-11)
7+
## Unreleased (2024-11-17)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`cb425f9`](https://github.com/stdlib-js/stdlib/commit/cb425f9efa61a4f81ebf2154f132ebe1f125ae19) - **refactor:** remove explicit cast and update function parameter description in `blas/ext/base/drev` [(#3127)](https://github.com/stdlib-js/stdlib/pull/3127) _(by Muhammad Haris)_
2526
- [`ee9a830`](https://github.com/stdlib-js/stdlib/commit/ee9a8300ba0f24dabe4b7b67ffb3bbe94f251b36) - **feat:** add C `ndarray` API and refactor `blas/ext/base/drev` [(#3071)](https://github.com/stdlib-js/stdlib/pull/3071) _(by Muhammad Haris)_
2627
- [`272ae7a`](https://github.com/stdlib-js/stdlib/commit/272ae7ac5c576c68cfab1b6e304c86407faa20cd) - **docs:** remove comment _(by Athan Reines)_
2728
- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_

CONTRIBUTORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Mohammad Kaif <[email protected]>
5959
Momtchil Momtchev <[email protected]>
6060
Muhammad Haris <[email protected]>
6161
Naresh Jagadeesan <[email protected]>
62+
Neeraj Pathak <[email protected]>
6263
NightKnight <[email protected]>
6364
Nithin Katta <[email protected]>
6465
Nourhan Hasan <[email protected]>
@@ -69,6 +70,7 @@ Prajwal Kulkarni <[email protected]>
6970
Pranav Goswami <[email protected]>
7071
7172
73+
Pratyush Kumar Chouhan <[email protected]>
7274
7375
Pushpendra Chandravanshi <[email protected]>
7476
@@ -79,6 +81,7 @@ Ridam Garg <[email protected]>
7981
Robert Gislason <[email protected]>
8082
Roman Stetsyk <[email protected]>
8183
84+
Ruthwik Chikoti <[email protected]>
8285
Ryan Seal <[email protected]>
8386
Sai Srikar Dumpeti <[email protected]>
8487
SarthakPaandey <[email protected]>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ stdlib_strided_drev( 4, x, 1 );
214214
The function accepts the following arguments:
215215
216216
- **N**: `[in] CBLAS_INT` number of indexed elements.
217-
- **X**: `[in] double*` input array.
217+
- **X**: `[inout] double*` input array.
218218
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
219219
220220
```c
@@ -234,7 +234,7 @@ stdlib_strided_drev_ndarray( 4, x, 1, 0 );
234234
The function accepts the following arguments:
235235
236236
- **N**: `[in] CBLAS_INT` number of indexed elements.
237-
- **X**: `[in] double*` input array.
237+
- **X**: `[inout] double*` input array.
238238
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
239239
- **offsetX**: `[in] CBLAS_INT` starting index for `X`.
240240

dist/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/drev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var ndarray = require( './ndarray.js' );
4343
* // x => <Float64Array>[ -3.0, -1.0, 0.0, 4.0, -5.0, 3.0, 1.0, -2.0 ]
4444
*/
4545
function drev( N, x, strideX ) {
46-
return ndarray( N, x, strideX, stride2offset( N, strideX) );
46+
return ndarray( N, x, strideX, stride2offset( N, strideX ) );
4747
}
4848

4949

src/addon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
3636
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
3737
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
3838
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
39-
API_SUFFIX(stdlib_strided_drev)( N, (double *)X, strideX );
39+
API_SUFFIX(stdlib_strided_drev)( N, X, strideX );
4040
return NULL;
4141
}
4242

@@ -53,7 +53,7 @@ static napi_value addon_method( napi_env env, napi_callback_info info ) {
5353
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
5454
STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 3 );
5555
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
56-
API_SUFFIX(stdlib_strided_drev_ndarray)( N, (double *)X, strideX, offsetX );
56+
API_SUFFIX(stdlib_strided_drev_ndarray)( N, X, strideX, offsetX );
5757
return NULL;
5858
}
5959

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ void API_SUFFIX(stdlib_strided_drev)( const CBLAS_INT N, double *X, const CBLAS_
4141
* @param offsetX starting index
4242
*/
4343
void API_SUFFIX(stdlib_strided_drev_ndarray)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
44-
double tmp;
4544
CBLAS_INT ix;
4645
CBLAS_INT iy;
4746
CBLAS_INT m;
4847
CBLAS_INT n;
4948
CBLAS_INT i;
49+
double tmp;
5050

5151
if ( N <= 0 ) {
5252
return;

0 commit comments

Comments
 (0)