soegaard / sci

Racket libraries for scientific computing
17 stars 4 forks source link

Installation documentation wording #7

Open lojic opened 2 years ago

lojic commented 2 years ago

In section "3 Installation":

I think it would be good to remove "so" in this sentence: "On Linux you need copies of CBLAS and LAPACK. Since BLAS and LAPACK exists in multiple versions, so a little care is needed." Alternatively, remove Since from the beginning.

The sentence "First on most systems libblas is used for the Fortran version, and libcblas, so get the latter." seems to be missing something, should it be "and libcblas is used for the C version" ?

Lastly, apt search lapack shows a ton of libraries on my Ubuntu Linux system, and it's not clear from the docs whether I want the static or shared version. Here are some possible candidates. I'm guessing the last one is right, since it seems to be the only C version.

liblapack-dev/bionic 3.7.1-4ubuntu1 amd64 Library of linear algebra routines 3 - static version

liblapack3/bionic 3.7.1-4ubuntu1 amd64 Library of linear algebra routines 3 - shared version

liblapacke/bionic 3.7.1-4ubuntu1 amd64 Library of linear algebra routines 3 - C lib shared version

lojic commented 2 years ago

Hmm... I just noticed the following in section "4.20 LAPACK Bindings":

"LAPACK is a Fortran library, so the calling conventions are sligthly different than usual."

This makes me wonder about the proper linux package to install - maybe it's the middle one above i.e.

liblapack3/bionic 3.7.1-4ubuntu1 amd64 Library of linear algebra routines 3 - shared version

Also, minor typo in the quoted sentence above, "sligthly" should be "slightly" :)