8000 ENH: Add namedtuple return types to linalg functions that return tuples by asmeurer · Pull Request #22786 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Add namedtuple return types to linalg functions that return tuples #22786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a changelog entry for #22786
  • Loading branch information
asmeurer committed Dec 13, 2022
commit 6618fbf0430971388919783e0548d8b5b23d2bf2
8 changes: 8 additions & 0 deletions doc/release/upcoming_changes/22786.new_feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

``np.linalg`` functions return namedtuples
------------------------------------------

``np.linalg`` functions that return tuples now return namedtuples. These
functions are ``eig()``, ``eigh()``, ``qr()``, ``slogdet()``, and ``svd()``.
The return type is unchanged in instances where these functions return
non-tuples with certain keyword arguments (like ``svd(compute_uv=False)``).
0