@@ -18,7 +18,6 @@ Currently three LAPACKE implementations are supported and tested:
1818 - needs ` cmake ` and ` gfortran `
1919- [ Intel MKL] ( https://github.com/termoshtt/rust-intel-mkl ) (non-free license, see the linked page)
2020 - needs ` curl `
21-
2221There are two ways to link LAPACKE backend:
2322
2423### backend features (recommended)
@@ -27,7 +26,7 @@ There are three features corresponding to the backend implementations (`openblas
2726``` toml
2827[dependencies ]
2928ndarray = " 0.12"
30- ndarray-linalg = { version = " 0.10 " , features = [" openblas" ] }
29+ ndarray-linalg = { version = " 0.9 " , features = [" openblas" ] }
3130```
3231
3332### link backend crate manually
@@ -37,7 +36,7 @@ You should link a LAPACKE implementation to a final crate (like binary executabl
3736``` toml
3837[dependencies ]
3938ndarray = " 0.12"
40- ndarray-linalg = " 0.10 "
39+ ndarray-linalg = " 0.9 "
4140openblas-src = " 0.5" # or another backend of your choice
4241
4342```
@@ -47,14 +46,7 @@ You must add `extern crate` to your code in this case:
4746``` rust
4847extern crate ndarray;
4948extern crate ndarray_linalg;
50- extern crate openblas_src; // or another backend of your choice
51- ```
52-
53- You will get a "undefined reference" link error if you forget to add any backend:
54-
55- ```
56- undefined reference to `cblas_dgemm'
57- undefined reference to `LAPACKE_dsyev'
49+ extern crate openblas_src; // or another backend of your choice
5850```
5951
6052### For librarian
@@ -63,7 +55,7 @@ If you creating a library depending on this crate, we encourage you not to link
6355``` toml
6456[dependencies ]
6557ndarray = " 0.12"
66- ndarray-linalg = { version = " 0.10 " , default-features = false }
58+ ndarray-linalg = { version = " 0.9 " , default-features = false }
6759```
6860
6961However, if you hope simplicity instead of the flexibility, you can link your favorite backend in the way described above.
0 commit comments