diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 32c0205..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-10-01T04:37:06.612Z diff --git a/CHANGELOG.md b/CHANGELOG.md index 86136fe..caf7407 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,52 @@ > Package changelog. +
+ +## Unreleased (2024-10-12) + +
+ +### Closed Issues + +This release closes the following issue: + +[#2543](https://github.com/stdlib-js/stdlib/issues/2543) + +
+ + + +
+ +### Commits + +
+ +- [`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)_ + +
+ +
+ + + +
+ +### Contributors + +A total of 1 person contributed to this release. Thank you to this contributor: + +- Gururaj Gurram + +
+ + + +
+ + +
## 0.1.0 (2024-07-28) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index d74d10f..f1b00f3 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -28,6 +28,7 @@ EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com> Frank Kovacs Golden Kumar <103646877+AuenKr@users.noreply.github.com> Gunj Joshi +Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com> HarshaNP <96897754+GittyHarsha@users.noreply.github.com> Harshita Kalani Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com> @@ -94,6 +95,7 @@ Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com> Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com> Utkarsh Utkarsh Raj +UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com> Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com> Varad Gupta Xiaochuan Ye diff --git a/test/test.ndarray.js b/test/test.ndarray.js index 0a7d948..30d35d8 100644 --- a/test/test.ndarray.js +++ b/test/test.ndarray.js @@ -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(); });