stdlib
stdlib copied to clipboard
Add solve based on OpenBLAS
- [x] Use
pkg-configto findopenblasand defineUSE_OPENBLAS; - [x]
BUILD_OPENBLASis off by default because stdlib has few BLAS-based functions yet. - [x] Routines based on BLAS and LAPACK often only support single or double precision floating-point types;
- [x] Add
BLAS_common.fyppto set the BLAS related common variables; - [x] Add a
solvefunction tostdlib_linalg, and test it; - [ ] Discusses and handles the
_gesvreturn valueinfo. - [ ] Test it in CI (MINGW✔, Linux-gfortran✔, Linux-ifort, macOS-gfortran);
This PR is an attempt to irrationally generate enthusiasm for BLAS integration into stdlib. Close #709 .
Syntax
x = [[stdlib_linalg(module):solve(interface)]](a,b)
Should it be a simple wrapper, or something more complete (similar to @awvwgk BLAS interfaces).
@jvdp1 I'm not worried about this, and it shouldn't be too complicated to switch if the full BLAS interfaces library is available later.
Related to #749 (ping @perazz )
This PR should be reviewed considering latest developments of @perazz on BLAS/LAPACK
Closed in favour of #806 . Thank you to all contributors to this PR.