Skip to content

Wrong parameter 10 in LAPACKE_sgesvd_work #162

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

Closed
joshgev opened this issue Jun 19, 2019 · 1 comment · Fixed by #163
Closed

Wrong parameter 10 in LAPACKE_sgesvd_work #162

joshgev opened this issue Jun 19, 2019 · 1 comment · Fixed by #163
Labels
bug Bug issue, or bug fix change

Comments

@joshgev
Copy link

joshgev commented Jun 19, 2019

Hi!

I am trying to use ndarray-linalg to compute the SVD of an Array2::. My dependencies look like this:

[dependencies]
ndarray = { version = "0.12.1" , features = ["blas"] }
ndarray-linalg = { version = "0.11.1", features = ["openblas"]}

The program compiles and runs, but crashes my call to the svd function, which looks like this:

let (_, mut sv, vt) = centered.svd(false, true)?;

The crash yields this message:

Wrong parameter 10 in LAPACKE_sgesvd_work

As I typed up this issue, I thought I'd try centered.svd(true, true) and this does work. I am fine with needlessly computing the u matrix, but I thought I would still file this issue since it is not behavior I would expect given the interface, which allows the user to selectively enable/disable the computation of u and vt independently of one another.

@termoshtt
Copy link
Member

Thanks reporting! I reproduce it.

@termoshtt termoshtt added the bug Bug issue, or bug fix change label Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug issue, or bug fix change
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants