@@ -18,7 +18,6 @@ Currently three LAPACKE implementations are supported and tested:
18
18
- needs ` cmake ` and ` gfortran `
19
19
- [ Intel MKL] ( https://github.com/termoshtt/rust-intel-mkl ) (non-free license, see the linked page)
20
20
- needs ` curl `
21
-
22
21
There are two ways to link LAPACKE backend:
23
22
24
23
### backend features (recommended)
@@ -27,7 +26,7 @@ There are three features corresponding to the backend implementations (`openblas
27
26
``` toml
28
27
[dependencies ]
29
28
ndarray = " 0.12"
30
- ndarray-linalg = { version = " 0.10 " , features = [" openblas" ] }
29
+ ndarray-linalg = { version = " 0.9 " , features = [" openblas" ] }
31
30
```
32
31
33
32
### link backend crate manually
@@ -37,7 +36,7 @@ You should link a LAPACKE implementation to a final crate (like binary executabl
37
36
``` toml
38
37
[dependencies ]
39
38
ndarray = " 0.12"
40
- ndarray-linalg = " 0.10 "
39
+ ndarray-linalg = " 0.9 "
41
40
openblas-src = " 0.5" # or another backend of your choice
42
41
43
42
```
@@ -47,14 +46,7 @@ You must add `extern crate` to your code in this case:
47
46
``` rust
48
47
extern crate ndarray;
49
48
extern 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
58
50
```
59
51
60
52
### For librarian
@@ -63,7 +55,7 @@ If you creating a library depending on this crate, we encourage you not to link
63
55
``` toml
64
56
[dependencies ]
65
57
ndarray = " 0.12"
66
- ndarray-linalg = { version = " 0.10 " , default-features = false }
58
+ ndarray-linalg = { version = " 0.9 " , default-features = false }
67
59
```
68
60
69
61
However, if you hope simplicity instead of the flexibility, you can link your favorite backend in the way described above.
0 commit comments