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
ENH: linalg: Pythranized version of _solve_toeplitz.pyx
#18628
base: main
Are you sure you want to change the base?
ENH: linalg: Pythranized version of _solve_toeplitz.pyx
#18628
Conversation
5460af7
to
7d0cbcf
Compare
@rgommers I don't understand the remaining failure :-/ |
re-run the test, now passing |
scipy/linalg/_solve_toeplitz.py
Outdated
assert len(a) == (2*n) - 1 | ||
|
||
if a[n-1] == 0: | ||
raise LinAlgError('Singular principal minor') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need better error messages
scipy/linalg/_solve_toeplitz.py
Outdated
x_num += a[nmj] * x[j] | ||
x_den += a[nmj] * g[m-j-1] | ||
if x_den == 0: | ||
raise LinAlgError('Singular principal minor') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a better error message
7d0cbcf
to
a99a9c7
Compare
a99a9c7
to
2277abf
Compare
I've added the test case to pythran codebase to avoid regressing on it, see serge-sans-paille/pythran#2117 |
The failing check seems unrelated |
@ilayn any though on that new revision? |
The #ifdef PYTHRAN_BLAS_NONE
#error pythran configured without BLAS but BLAS seem needed
#endif
#if defined(PYTHRAN_BLAS_ATLAS) || defined(PYTHRAN_BLAS_SATLAS)
extern "C" {
#endif
#include <cblas.h>
#if defined(PYTHRAN_BLAS_ATLAS) || defined(PYTHRAN_BLAS_SATLAS)
}
#endif That immediately makes a few alarm bells go off for me - we don't have any direct scipy/scipy/_build_utils/src/npy_cblas.h Lines 2 to 4 in e1f0d97
|
2277abf
to
9a0923d
Compare
@rgommers for that PR, I've removed the call to |
9a0923d
to
f99c9ff
Compare
Thanks, that sounds good! |
f99c9ff
to
1f44e65
Compare
I don't understand the failure, otherwise looks good to me? |
Nevermind that failure, it is not related but #18654 This looks good to me. But that error change might break some code somewhere. So I'm not sure about it |
3e482aa
to
19dc998
Compare
19dc998
to
79cb6e0
Compare
Gentle ping :-) |
79cb6e0
to
51e97f8
Compare
_solve_toeplitz.pyx
No description provided.