You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first congratulations to this library, but I've found two little bugs in module LAPACK in function ssysv and dsysv, which make these functions useless.
You must correct line 487 from: use arg_b = new PinnedArray(b)
to use arg_b = new PinnedArray(b')
and similar (variable b -> b') in line 580.
I've checked into that and currently there is a bug in the latest release of OpenBLAS that prevents the LAPACKE function from being used in row major format. I've worked around that by adding manual transposes and solved these issues in the latest pull request.
Regarding @grek142's mention of another issue about LAPACK row- and column-major order:
I do not see any bug related with that.
.NET arrays are stored in memory using row-major order and the library will continue using these. We are aware of LAPACK's way of working with matrices and we designed our wrapper code paying attention to this.
To make sure that we have a better way of catching similar bugs in future, I have now implemented unit tests for the backend interface. Everything with the OpenBLAS backend seems to be working fine, including operations that depend on LAPACK, such as SolveSymmetric_M_V, Inverse_M, and Det_M.
If you encounter a bug where any operation gives incorrect result, please do let us know by opening a separate issue for that, showing a minimal example producing incorrect output.
Also, I have not experienced any unexpected behavior with the LAPACK implementation in OpenBLAS.
Activity
gbaydin commentedon Dec 13, 2015
Hi! Thank you for reporting this. I will look into it and let you know.
mrakgr commentedon Dec 14, 2015
I've checked into that and currently there is a bug in the latest release of OpenBLAS that prevents the LAPACKE function from being used in row major format. I've worked around that by adding manual transposes and solved these issues in the latest pull request.
brada4 commentedon Dec 14, 2015
It is bug in LAPACKE, you can check with generic LAPACK 3.6.0
gbaydin commentedon Dec 14, 2015
I can confirm that the bugs you pointed out in
ssysvanddsysvcaused incorrect return values. This is now fixed in the repo.gbaydin commentedon Dec 14, 2015
Regarding @grek142's mention of another issue about LAPACK row- and column-major order:
I do not see any bug related with that.
.NET arrays are stored in memory using row-major order and the library will continue using these. We are aware of LAPACK's way of working with matrices and we designed our wrapper code paying attention to this.
To make sure that we have a better way of catching similar bugs in future, I have now implemented unit tests for the backend interface. Everything with the OpenBLAS backend seems to be working fine, including operations that depend on LAPACK, such as
SolveSymmetric_M_V,Inverse_M, andDet_M.If you encounter a bug where any operation gives incorrect result, please do let us know by opening a separate issue for that, showing a minimal example producing incorrect output.
Also, I have not experienced any unexpected behavior with the LAPACK implementation in OpenBLAS.
gbaydin commentedon Dec 14, 2015
Thank you. :)