Skip to content

DOC: improve eig return value release note - #30851

Merged
seberg merged 1 commit into
numpy:mainfrom
mattip:release-note-30411
Feb 19, 2026
Merged

seberg merged 1 commit into
numpy:mainfrom
mattip:release-note-30411

Conversation

@mattip

@mattip mattip commented Feb 19, 2026

Copy link
Copy Markdown
Member

Continued from #30411, cc @ev-br

Improve the release note and fix the code snippet (from numpy-discussion mailing list post)

these are guaranteed to return real values. (A common case is covariance matrices, which are
symmetric and positive definite by construction)

if np.any(w.imag == 0): # this is what NumPy used to do

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks @jni

@seberg seberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reads well, nice improvement, thanks Matti!

@seberg seberg changed the title DOC: improve release note DOC: improve eig return value release note Feb 19, 2026
@seberg
seberg merged commit 01bad34 into numpy:main Feb 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants