8000 TST: linalg: add basic smoketest for cholesky by pv · Pull Request #9796 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

TST: linalg: add basic smoketest for cholesky #9796

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 1 commit into from
Sep 30, 2017

Conversation

pv
Copy link
Member
@pv pv commented Sep 30, 2017

Add a basic smoke test for numpy.linalg.cholesky.

Apparently, there are currently no tests that check it actually
does something sensible, so stuff like gh-9795 can slip through
in a release. This is also a routine that's quite often broken in
broken openblas builds.

I checked this test fails on the current win32 32-bit wheel on pypi.

t[-2:] = -1, -2

a = np.matmul(a.transpose(t).conj(), a)
a = np.asarray(a, dtype=dtype)
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiousity, is the dtype actually needed here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Of course, numpy.linalg doesn't do anything apart from double precision, but better still to test all combinations.

@charris charris merged commit 697609c into numpy:master Sep 30, 2017
@charris
Copy link
Member
charris commented Sep 30, 2017

Thanks Pauli.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Nov 26, 2017
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
0