-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
MAINT: use more conservative integer types for umath linalg #5899
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
Conversation
|
||
if (!compute_urows_vtcolumns(jobz, m, n, &u_row_count, &vt_column_count)) | ||
goto error; | ||
|
||
u_size = ((size_t)u_row_count)*m*sizeof(@ftyp@); | ||
vt_size = n*((size_t)vt_column_count)*sizeof(@ftyp@); | ||
u_size = ((size_t)u_row_count) * safe_m * sizeof(@ftyp@); |
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.
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.