-
Notifications
You must be signed in to change notification settings - Fork 52
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
xt::linalg::lstsq is not working when M < N #89
Comments
I'm looking into this. |
This is fixed with the latest PR. |
potpath
changed the title
xt::linalg::lstsq is not working when M > N
xt::linalg::lstsq is not working when M < N
Jun 25, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following minimal test fails
The error is
"Could not find workspace size for gelsd."
According to http://www.netlib.org/lapack/explore-html/d7/d3b/group__double_g_esolve_ga94bd4a63a6dacf523e25ff617719f752.html#ga94bd4a63a6dacf523e25ff617719f752:
ldb
should be>= max(1,max(M,N))
.From
https://github.com/QuantStack/xtensor-blas/blob/9725a505db5c24f4037f9df4691171037e9f7026/include/xtensor-blas/xlapack.hpp#L693-L702
this looks like
b
andldb
is not handled differently whenM < N
.The text was updated successfully, but these errors were encountered: