약간 덜 지저분한 개발자 지점을 확인하십시오.
c.의 수학 자습서 모음
전, C에서 선형 대수를 시작했을 때 BLAS, LAPACK 및 기타 기본 API에 대한 튜토리얼이 거의 없다는 것을 알게 된 것은 놀라운 일입니다. 그들이 어떻게 든 다른 많은 도서관의 빌딩 블록이라는 사실에도 불구하고. 이런 이유로 나는이 Github Repo에서 Blas, Lapack, Clapack, Lapacke, Atlas, Openblas의 네트 전체에서 찾을 수있는 모든 예를 수집하기 시작했습니다. 글쎄, 나는 기계 엔지니어로서 그러한 리포를 관리하는 경험이 거의 없으며 처음에는 여러분에게 완전히 엉망인 것처럼 보일 수 있다고 경고해야합니다. 그러나 혼란을 극복 할 수 있다면 도움이 될 수있는 모든 예제와 지침을 찾을 수 있습니다. 나는 가장 많이 시도했지만 내가 언급 한 컴파일하지 않습니다. GNU 컴파일러 (GCC, G ++ 및 Gfortran)로 컴파일 할 수 있도록 많은 것을 수정했습니다. C 또는 C ++ 프로그램에서 개별 Fortran 루틴을 호출 할 수있는 방법을 배울 수있는 파일을 만들었습니다. 또한 Mac 및 Linux에 대한 설치 지침을 넣었습니다 (죄송합니다. Windows Guys!). 귀하가 C 개발자인지 확인하고 싶습니다. 플랫폼이나 하드웨어에 관계없이 문제없이 이러한 라이브러리를 사용할 수 있습니다.
문제 :
- Mac OS X에서 Atlas를 컴파일 할 수 없습니다. Sourceforce : https://sourceforge.net/p/math-atlas/bugs/261/에 대한 버그 보고서가 작성되었습니다.
- 일부 BLA 및 CBLAS 예제의 경우 -lgfortran은 컴파일되도록 요청됩니다. 나는 이유를 모른다! (Mac OS X에서는 Gfortran을 설치 한 다음 Libgfortran.dylib를 찾아 컴파일하는 동안 연결해야합니다)
할 일 :
- 다른 플랫폼의 모든 라이브러리에 대해 컴파일/설치하십시오
- 다른 플랫폼에서 makefile s를 확인하십시오 (Mac OS X에서만 테스트)
연구 할 출처 :
- http://physics.oregonstate.edu/~landaur/nacphy/lapack/cprogp.html
- https://people.sc.fsu.edu/~jburkardt/c_src/clapack/clapack.html
- http://stackoverflow.com/questions/22085277/how-to-call-call-clapack-from-c
- ftp://ftp.icm.edu.pl/packages/netlib/lapack/lapacke.txt
- https://pleiades.ucsc.edu/hyades/lapack
- http://www.ccp4.ac.uk/dist/checkout/lapack-3.5.0/lapacke/example/example_dgels_colmajor.c
- http://www.linuxquestions.org/linux/answers/programming/installation_and_use_common_scientific_libraries_unix_part_2_lapack_and_its_wrappers_lapacke_and_atlas
- http://theoryno3.blogspot.nl/2010/12/compiling-lapack-as shared-library-in.html
- http://www.dreamincode.net/forums/topic/287490-anone-familiar-with-lapack-and-blas/
- https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/index.htm#zgesv.htm
- https://pleiades.ucsc.edu/hyades/blas
- https://software.intel.com/en-us/node/522288
- http://stackoverflow.com/questions/17858104/what-is-lelation-between-blas-lapack-and-atlas/17858345#17858345
- http://stackoverflow.com/questions/1303182/how-does-blas-get-such-extreme-performance/11421344#11421344
- http://stackoverflow.com/questions/1380371/what-the-mest-widely-used-c-vector-matrix-math-linear-algebra-libraries-/1452950#1452950
- http://stackoverflow.com/questions/8206563/purpose-of-lda-argument-in-blas-dgemm/8209290#8209290
- http://stackoverflow.com/questions/966249/scientific-math-with-functional-languages/966324#966324
- http://stackoverflow.com/questions/24071622/replicating-blas-matrix-multiplication-performance-can-match-it
- Cephes-> http://www.netlib.org/cephes/
- crlibm-> http://lipforge.ens-lyon.fr/www/crlibm/index.html