8000 BUG: prototypes for [cz]dot[uc] are incorrect by eric-wieser · Pull Request #9997 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: prototypes for [cz]dot[uc] are incorrect #9997

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
Nov 10, 2017

Conversation

eric-wieser
Copy link
Member
@eric-wieser eric-wieser commented Nov 10, 2017

F2C does not support complex return values, and puts these as the first argument.

This can be checked by looking at numpy\linalg\lapack_lite\f2c_blas.c.

It's not clear to me if these prototypes are exclusively for lapack_lite, or if they also need to match the system lapack (in which case the f2c_... in the typenames is very misleading).

This fixed a segfault on my machine (using lapack_lite) when trying to call these functions in the C code.

F2C does not support complex return values.
@seberg
Copy link
Member
seberg commented Nov 10, 2017

So these definitions are currently not being used at all?

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Nov 10, 2017
@charris charris added this to the 1.13.4 release milestone Nov 10, 2017
@charris
Copy link
Member
charris commented Nov 10, 2017

Do we want a test for these functions?

@charris
Copy link
Member
charris commented Nov 10, 2017

Because the numpy functions are in C, I think that f2c_blas and lapack_lite are always paired. Multiarray does use the dot functions, but from CBLAS, with its own fallback C implementations. How did you manage to call the f2c_blas functions?

@charris
Copy link
Member
charris commented Nov 10, 2017

LGTM, I don't think there is a problem ...

@charris charris merged commit d28b507 into numpy:master Nov 10, 2017
@charris
Copy link
Member
charris commented Nov 10, 2017

Yeah, let's merge this, I don't see a problem. Thanks Eric.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Nov 26, 2017
@charris charris removed this from the 1.13.4 release milestone 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.

3 participants
0