MAINT: use more conservative integer types for umath linalg#5899
MAINT: use more conservative integer types for umath linalg#5899jaimefrio merged 2 commits intonumpy:masterfrom
Conversation
numpy/linalg/umath_linalg.c.src
Outdated
There was a problem hiding this comment.
Why casting here? Wouldn't safe_u_row_count and safe_vt_col_count be more consistent choices?
|
Mostly LGTM. It certainly cannot hurt... |
|
The latest commit has addressed some comments about notation consistency. There is still room for improvement, but this could be out of scope for this PR. For example, there are some function calls like |
|
Is this ready to merge then? Or do we want to figure out what exactly is going on with the segfault in #5898 before putting it in? |
|
@jaimefrio I'm pretty sure the reason for the segfault in #5898 is that
My understanding from #5898 (comment) is that the blas-lite and lapack-lite included with numpy are already known to cause segfaults for these larger matrices (e.g. using I'm not 100% sure that this is what's going on with the segfault, but this is my best guess. Maybe wait for comments or a review from @pv or others before merging? |
|
LGTM (assuming no typos) |
MAINT: use more conservative integer types for umath linalg
|
In it goes then. Thanks! |
I'm not sure this is useful or even works.