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 Jan 11, 2025
1 parent 6db9566 commit bf88fcf
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 41 deletions.
1 change: 0 additions & 1 deletion .github/.keepalive

This file was deleted.

3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<section class="release" id="unreleased">

## Unreleased (2024-12-23)
## Unreleased (2025-01-11)

<section class="features">

Expand All @@ -22,6 +22,7 @@

<details>

- [`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)_

Expand Down
4 changes: 3 additions & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Daniel Killenberger <[email protected]>
Daniel Yu <[email protected]>
Debashis Maharana <[email protected]>
Desh Deepak Kant <[email protected]>
Dhruv Arvind Singh <[email protected]>
Divyansh Seth <[email protected]>
Dominic Lim <[email protected]>
Dominik Moritz <[email protected]>
Expand All @@ -49,6 +50,7 @@ Joey Reed <[email protected]>
Jordan Gallivan <[email protected]>
Joris Labie <[email protected]>
Justin Dennison <[email protected]>
Karan Anand <[email protected]>
Karthik Prakash <[email protected]>
Kohantika Nath <[email protected]>
Krishnendu Das <[email protected]>
Expand Down Expand Up @@ -117,7 +119,7 @@ UtkershBasnet <[email protected]>
Vaibhav Patel <[email protected]>
Varad Gupta <[email protected]>
Vinit Pandit <[email protected]>
Vivek maurya <[email protected].com>
Vivek Maurya <vm8118134@gmail.com>
Xiaochuan Ye <[email protected]>
Yaswanth Kosuru <[email protected]>
Yernar Yergaziyev <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Copyright (c) 2016-2024 The Stdlib Authors.
Copyright (c) 2016-2025 The Stdlib Authors.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ See [LICENSE][stdlib-license].

## Copyright

Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
Copyright &copy; 2016-2025. The Stdlib [Authors][stdlib-authors].

</section>

Expand Down
72 changes: 36 additions & 36 deletions test/test.ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand All @@ -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' );
Expand All @@ -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' );
Expand All @@ -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' );
Expand All @@ -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' );
Expand All @@ -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' );
Expand Down

0 comments on commit bf88fcf

Please sign in to comment.