Skip to content

Commit f92e404

Browse files
committed
Auto-generated commit
1 parent 8e1cb12 commit f92e404

File tree

6 files changed

+82
-2
lines changed

6 files changed

+82
-2
lines changed

CHANGELOG.md

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

7-
## Unreleased (2024-11-19)
7+
## Unreleased (2024-11-21)
88

99
<section class="features">
1010

@@ -16,12 +16,25 @@
1616

1717
<!-- /.features -->
1818

19+
<section class="issues">
20+
21+
### Closed Issues
22+
23+
This release closes the following issue:
24+
25+
[#3186](https://github.com/stdlib-js/stdlib/issues/3186)
26+
27+
</section>
28+
29+
<!-- /.issues -->
30+
1931
<section class="commits">
2032

2133
### Commits
2234

2335
<details>
2436

37+
- [`297cdff`](https://github.com/stdlib-js/stdlib/commit/297cdffbf14b0f7cd87b0455b00d4a4fbf3b6cc3) - **test:** add tests to blas/ext/base/dnannsumbn2 [(#3205)](https://github.com/stdlib-js/stdlib/pull/3205) _(by Saurabh Singh, Philipp Burckhardt)_
2538
- [`15d040c`](https://github.com/stdlib-js/stdlib/commit/15d040c67472ca6ffb9b3ff9414e39f907ca8294) - **refactor:** remove unnecessary variable declaration [(#3185)](https://github.com/stdlib-js/stdlib/pull/3185) _(by Muhammad Haris)_
2639
- [`f80e82f`](https://github.com/stdlib-js/stdlib/commit/f80e82fac77275db101aaa28f61eebd7024e2c9f) - **refactor:** update `offset` handling and function parameter description for `blas/ext/base/dnannsumkbn2` [(#3123)](https://github.com/stdlib-js/stdlib/pull/3123) _(by Muhammad Haris)_
2740
- [`f0ecdad`](https://github.com/stdlib-js/stdlib/commit/f0ecdad9731cd40ae9047a87981d2688693e54dc) - **feat:** add C `ndarray` API and refactor `blas/ext/base/dnannsumkbn2` [(#2990)](https://github.com/stdlib-js/stdlib/pull/2990) _(by Muhammad Haris)_
@@ -36,9 +49,11 @@
3649

3750
### Contributors
3851

39-
A total of 1 person contributed to this release. Thank you to this contributor:
52+
A total of 3 people contributed to this release. Thank you to the following contributors:
4053

4154
- Muhammad Haris
55+
- Philipp Burckhardt
56+
- Saurabh Singh
4257

4358
</section>
4459

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
8585
Ryan Seal <splrk@users.noreply.github.com>
8686
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
8787
SarthakPaandey <145528240+SarthakPaandey@users.noreply.github.com>
88+
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
8889
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
8990
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
9091
Shivam <11shivam00@gmail.com>

test/test.dnannsumkbn2.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,22 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the s
231231
t.end();
232232
});
233233

234+
tape( 'if provided a `stride` parameter equal to `0` and the first element is `NaN`, the function returns `0.0`', function test( t ) {
235+
var expected;
236+
var out;
237+
var x;
238+
var v;
239+
240+
x = new Float64Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] );
241+
out = new Float64Array( 2 );
242+
v = dnannsumkbn2( x.length, x, 0, out, 1 );
243+
244+
expected = new Float64Array( [ 0.0, 0.0 ] );
245+
t.deepEqual( v, expected, 'returns expected value' );
246+
247+
t.end();
248+
});
249+
234250
tape( 'the function supports view offsets', function test( t ) {
235251
var expected0;
236252
var expected1;

test/test.dnannsumkbn2.native.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,22 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the s
240240
t.end();
241241
});
242242

243+
tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns `0.0`', opts, function test( t ) {
244+
var expected;
245+
var out;
246+
var x;
247+
var v;
248+
249+
x = new Float64Array( [ NaN, 1.0, 2.0, 3.0 ] );
250+
out = new Float64Array( 2 );
251+
v = dnannsumkbn2( x.length, x, 0, out, 1 );
252+
253+
expected = new Float64Array( [ 0.0, 0.0 ] );
254+
t.deepEqual( v, expected, 'returns expected value' );
255+
256+
t.end();
257+
});
258+
243259
tape( 'the function supports view offsets', opts, function test( t ) {
244260
var expected0;
245261
var expected1;

test/test.ndarray.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,22 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the s
231231
t.end();
232232
});
233233

234+
tape( 'if provided a `stride` parameter equal to `0` and the first element is `NaN`, the function returns `0.0`', function test( t ) {
235+
var expected;
236+
var out;
237+
var x;
238+
var v;
239+
240+
x = new Float64Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] );
241+
out = new Float64Array( 2 );
242+
v = dnannsumkbn2( x.length, x, 0, 0, out, 1, 0 );
243+
244+
expected = new Float64Array( [ 0.0, 0.0 ] );
245+
t.deepEqual( v, expected, 'returns expected value' );
246+
247+
t.end();
248+
});
249+
234250
tape( 'the function supports `offset` parameters', function test( t ) {
235251
var expected;
236252
var out;

test/test.ndarray.native.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,22 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the s
240240
t.end();
241241
});
242242

243+
tape( 'if provided a `stride` parameter equal to `0` and the first element is `NaN`, the function returns `0.0`', opts, function test( t ) {
244+
var expected;
245+
var out;
246+
var x;
247+
var v;
248+
249+
x = new Float64Array( [ NaN, -2.0, -4.0, 5.0, 3.0 ] );
250+
out = new Float64Array( 2 );
251+
v = dnannsumkbn2( x.length, x, 0, 0, out, 1, 0 );
252+
253+
expected = new Float64Array( [ 0.0, 0.0 ] );
254+
t.deepEqual( v, expected, 'returns expected value' );
255+
256+
t.end();
257+
});
258+
243259
tape( 'the function supports `offset` parameters', opts, function test( t ) {
244260
var expected;
245261
var out;

0 commit comments

Comments
 (0)