diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index c8337e4..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-12-23T01:34:20.556Z diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cd228c..9662d7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-12-23) +## Unreleased (2025-01-11)
@@ -22,6 +22,7 @@
+- [`685d5e1`](https://github.com/stdlib-js/stdlib/commit/685d5e1c76b6685eb27fa43e96755f3aa08856a7) - **test:** update test values to resolve ambiguity in expected values _(by Athan Reines)_ - [`e0cef99`](https://github.com/stdlib-js/stdlib/commit/e0cef995e884021db3001dc1a3cfef0ca7b368c2) - **style:** remove extra spaces for regular expressions in publish script _(by Philipp Burckhardt)_ - [`ba0f3a0`](https://github.com/stdlib-js/stdlib/commit/ba0f3a07b022febd62d4f5f9616dff0c1648bf5a) - **feat:** add `lapack/base/slacpy` [(#2716)](https://github.com/stdlib-js/stdlib/pull/2716) _(by Pranav Goswami, Athan Reines)_ diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 173c07b..92d7552 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -27,6 +27,7 @@ Daniel Killenberger Daniel Yu <40680511+Daniel777y@users.noreply.github.com> Debashis Maharana Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com> +Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com> Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com> Dominic Lim <46486515+domlimm@users.noreply.github.com> Dominik Moritz @@ -49,6 +50,7 @@ Joey Reed Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com> Joris Labie Justin Dennison +Karan Anand <119553199+anandkaranubc@users.noreply.github.com> Karthik Prakash <116057817+skoriop@users.noreply.github.com> Kohantika Nath <145763549+kohantikanath@users.noreply.github.com> Krishnendu Das <86651039+itskdhere@users.noreply.github.com> @@ -117,7 +119,7 @@ UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com> Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com> Varad Gupta Vinit Pandit <106718914+MeastroZI@users.noreply.github.com> -Vivek maurya <155618190+vivekmaurya001@users.noreply.github.com> +Vivek Maurya Xiaochuan Ye Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com> Yernar Yergaziyev diff --git a/NOTICE b/NOTICE index e6e7482..cbd3a29 100644 --- a/NOTICE +++ b/NOTICE @@ -1 +1 @@ -Copyright (c) 2016-2024 The Stdlib Authors. +Copyright (c) 2016-2025 The Stdlib Authors. diff --git a/README.md b/README.md index 0bd4653..d5e6f55 100644 --- a/README.md +++ b/README.md @@ -302,7 +302,7 @@ See [LICENSE][stdlib-license]. ## Copyright -Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. +Copyright © 2016-2025. The Stdlib [Authors][stdlib-authors].
diff --git a/test/test.ndarray.js b/test/test.ndarray.js index 3980d71..1343af9 100644 --- a/test/test.ndarray.js +++ b/test/test.ndarray.js @@ -46,25 +46,25 @@ tape( 'the function copies all of a matrix `A` to another matrix `B` (row-major) var A; var B; - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); out = slacpy( 'all', 2, 3, A, 3, 1, 1, B, 3, 1, 3 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 16.0, 15.0, 14.0, 13.0, 12.0, 11.0 ] ); out = slacpy( 'all', 2, 3, A, -3, -1, 6, B, 3, 1, 3 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); out = slacpy( 'all', 3, 2, A, 2, 1, 1, B, 2, 1, 3 ); t.strictEqual( out, B, 'returns expected value' ); @@ -79,25 +79,25 @@ tape( 'the function copies part of a matrix `A` to another matrix `B` (row-major var A; var B; - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 2.0, 3.0, 0.0, 5.0, 6.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 12.0, 13.0, 0.0, 15.0, 16.0 ] ); out = slacpy( 'upper', 2, 3, A, 3, 1, 1, B, 3, 1, 3 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 3.0, 2.0, 1.0, 0.0, 5.0, 4.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 13.0, 12.0, 11.0, 0.0, 15.0, 14.0 ] ); out = slacpy( 'upper', 2, 3, A, 3, -1, 3, B, 3, 1, 3 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 2.0, 0.0, 4.0, 0.0, 0.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 12.0, 0.0, 14.0, 0.0, 0.0 ] ); out = slacpy( 'upper', 3, 2, A, 2, 1, 1, B, 2, 1, 3 ); t.strictEqual( out, B, 'returns expected value' ); @@ -112,25 +112,25 @@ tape( 'the function copies part of a matrix `A` to another matrix `B` (row-major var A; var B; - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 4.0, 5.0, 0.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 0.0, 0.0, 14.0, 15.0, 0.0 ] ); out = slacpy( 'lower', 2, 3, A, 3, 1, 1, B, 3, 1, 3 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 4.0, 0.0, 0.0, 1.0, 2.0, 0.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 14.0, 0.0, 0.0, 11.0, 12.0, 0.0 ] ); out = slacpy( 'lower', 2, 3, A, -3, 1, 4, B, 3, 1, 3 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 0.0, 3.0, 4.0, 5.0, 6.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 0.0, 13.0, 14.0, 15.0, 16.0 ] ); out = slacpy( 'lower', 3, 2, A, 2, 1, 1, B, 2, 1, 3 ); t.strictEqual( out, B, 'returns expected value' ); @@ -145,25 +145,25 @@ tape( 'the function copies all of a matrix `A` to another matrix `B` (column-maj var A; var B; - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); out = slacpy( 'all', 2, 3, A, 1, 2, 1, B, 1, 2, 3 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 16.0, 15.0, 14.0, 13.0, 12.0, 11.0 ] ); out = slacpy( 'all', 2, 3, A, 1, 2, 1, B, -1, -2, 8 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); out = slacpy( 'all', 3, 2, A, 1, 3, 1, B, 1, 3, 3 ); t.strictEqual( out, B, 'returns expected value' ); @@ -178,25 +178,25 @@ tape( 'the function copies part of a matrix `A` to another matrix `B` (column-ma var A; var B; - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 0.0, 3.0, 4.0, 5.0, 6.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 0.0, 13.0, 14.0, 15.0, 16.0 ] ); out = slacpy( 'upper', 2, 3, A, 1, 2, 1, B, 1, 2, 3 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 1.0, 4.0, 3.0, 6.0, 5.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 11.0, 14.0, 13.0, 16.0, 15.0 ] ); out = slacpy( 'upper', 2, 3, A, 1, 2, 1, B, -1, 2, 4 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 4.0, 5.0, 0.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 0.0, 0.0, 14.0, 15.0, 0.0 ] ); out = slacpy( 'upper', 3, 2, A, 1, 3, 1, B, 1, 3, 3 ); t.strictEqual( out, B, 'returns expected value' ); @@ -211,25 +211,25 @@ tape( 'the function copies part of a matrix `A` to another matrix `B` (column-ma var A; var B; - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 2.0, 0.0, 4.0, 0.0, 0.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 12.0, 0.0, 14.0, 0.0, 0.0 ] ); out = slacpy( 'lower', 2, 3, A, 1, 2, 1, B, 1, 2, 3 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.0, 1.0, 2.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 14.0, 11.0, 12.0 ] ); out = slacpy( 'lower', 2, 3, A, 1, 2, 1, B, 1, -2, 7 ); t.strictEqual( out, B, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); - A = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + A = new Float32Array( [ 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); B = new Float32Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); - expected = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 2.0, 3.0, 0.0, 5.0, 6.0 ] ); + expected = new Float32Array( [ 0.0, 0.0, 0.0, 11.0, 12.0, 13.0, 0.0, 15.0, 16.0 ] ); out = slacpy( 'lower', 3, 2, A, 1, 3, 1, B, 1, 3, 3 ); t.strictEqual( out, B, 'returns expected value' );