Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Oct 12, 2024
1 parent ac307e4 commit 5ddcb8c
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/.keepalive

This file was deleted.

46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,52 @@

> Package changelog.
<section class="release" id="unreleased">

## Unreleased (2024-10-12)

<section class="issues">

### Closed Issues

This release closes the following issue:

[#2543](https://github.com/stdlib-js/stdlib/issues/2543)

</section>

<!-- /.issues -->

<section class="commits">

### Commits

<details>

- [`c0a5dbe`](https://github.com/stdlib-js/stdlib/commit/c0a5dbe868b88f8bcf770e128833d5768c041919) - **test:** achieve complete code coverage in `blas/base/dznrm2` and `blas/base/scnrm2` [(#2977)](https://github.com/stdlib-js/stdlib/pull/2977) _(by Gururaj Gurram)_

</details>

</section>

<!-- /.commits -->

<section class="contributors">

### Contributors

A total of 1 person contributed to this release. Thank you to this contributor:

- Gururaj Gurram

</section>

<!-- /.contributors -->

</section>

<!-- /.release -->

<section class="release" id="v0.1.0">

## 0.1.0 (2024-07-28)
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ EuniceSim142 <[email protected]>
Frank Kovacs <[email protected]>
Golden Kumar <[email protected]>
Gunj Joshi <[email protected]>
Gururaj Gurram <[email protected]>
HarshaNP <[email protected]>
Harshita Kalani <[email protected]>
Hridyanshu <[email protected]>
Expand Down Expand Up @@ -94,6 +95,7 @@ Tudor Pagu <[email protected]>
Tufailahmed Bargir <[email protected]>
Utkarsh <http://[email protected]>
Utkarsh Raj <[email protected]>
UtkershBasnet <[email protected]>
Vaibhav Patel <[email protected]>
Varad Gupta <[email protected]>
Xiaochuan Ye <[email protected]>
Expand Down
80 changes: 80 additions & 0 deletions test/test.ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,86 @@ tape( 'the function computes the L2-norm', function test( t ) {

actual = dznrm2( 3, zx, 1, 0 );
isApprox( t, actual, expected, 2.0 );

// Checked on Wolfram Alpha:
zx = new Complex128Array([
1e150, // 1
1e150, // 1
1e150, // 2
1e150, // 2
1e150, // 3
1e150, // 3
1e150, // 4
1e150 // 4
]);
expected = 2.82842e+150;

actual = dznrm2( 4, zx, 1, 0 );
isApprox( t, actual, expected, 2.0 );

// Checked on Wolfram Alpha:
zx = new Complex128Array([
1e-155, // 1
1e-155, // 1
1e-155, // 2
1e-155, // 2
1e-155, // 3
1e-155, // 3
1e-155, // 4
1e-155 // 4
]);
expected = 2.82843e-155;

actual = dznrm2( 4, zx, 1, 0 );
isApprox( t, actual, expected, 2.0 );

// Checked on Wolfram Alpha:
zx = new Complex128Array([
1e150, // 1
1e50, // 1
1e150, // 2
1e50, // 2
1e150, // 3
1e50, // 3
1e150, // 4
1e50 // 4
]);
expected = 2.00000e150;

actual = dznrm2( 4, zx, 1, 0 );
isApprox( t, actual, expected, 2.0 );

// Checked on Wolfram Alpha:
zx = new Complex128Array([
1e-155, // 1
1e50, // 1
1e-155, // 2
1e50, // 2
1e-155, // 3
1e50, // 3
1e-155, // 4
1e50 // 4
]);
expected = 2.00000e50;

actual = dznrm2( 4, zx, 1, 0 );
isApprox( t, actual, expected, 2.0 );

// Checked on Wolfram Alpha:
zx = new Complex128Array([
1.4e-154, // 1
1.5e-154, // 1
1.4e-154, // 2
1.5e-154, // 2
1.4e-154, // 3
0, // 3
1.4e-154, // 4
0 // 4
]);
expected = 3.51283e-154;

actual = dznrm2( 4, zx, 1, 0 );
isApprox( t, actual, expected, 2.0 );
t.end();
});

Expand Down

0 comments on commit 5ddcb8c

Please sign in to comment.