Skip to content

Add scipy.linalg.lu() decomposition support#2787

Merged
antonwolfy merged 27 commits intoIntelPython:masterfrom
abagusetty:linalg_lu
Mar 4, 2026
Merged

Add scipy.linalg.lu() decomposition support#2787
antonwolfy merged 27 commits intoIntelPython:masterfrom
abagusetty:linalg_lu

Conversation

@abagusetty
Copy link
Contributor

@abagusetty abagusetty commented Feb 27, 2026

This PR adds dpnp.scipy.linalg.lu() with support for all three output modes: default (P, L, U), permute_l=True (PL, U), and p_indices=True (p, L, U), including batched inputs.

Fixes: #2786

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

@intel-python-devops
Copy link

Can one of the admins verify this patch?

@antonwolfy antonwolfy added this to the 0.20.0 release milestone Mar 2, 2026
Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abagusetty, thank you for the contribution. I posted few comments below

abagusetty and others added 4 commits March 2, 2026 09:18
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
@abagusetty
Copy link
Contributor Author

@antonwolfy Thanks for taking time. All the suggestions were addressed. Please let me know

@coveralls
Copy link
Collaborator

coveralls commented Mar 3, 2026

Coverage Status

coverage: 81.167% (+0.04%) from 81.124%
when pulling 69c51d8 on abagusetty:linalg_lu
into 7803d3a on IntelPython:master.

abagusetty and others added 6 commits March 3, 2026 09:46
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
abagusetty and others added 6 commits March 3, 2026 09:47
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abagusetty, thank you a lot for the contribution.
All tests are passing and I'm going to merge the PR.

@antonwolfy antonwolfy merged commit 2c86497 into IntelPython:master Mar 4, 2026
96 of 97 checks passed
github-actions bot added a commit that referenced this pull request Mar 4, 2026
This PR adds `dpnp.scipy.linalg.lu()` with support for all three output
modes: default `(P, L, U)`, `permute_l=True (PL, U)`, and
`p_indices=True` `(p, L, U)`, including batched inputs.

Fixes: #2786 2c86497
@abagusetty abagusetty deleted the linalg_lu branch March 5, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dpnp.scipy.linalg.lu missing although lu_factor / lu_solve are implemented

4 participants