請檢查Dev分支,該分支稍小一些。
C中的數學教程集
何時,當我開始在C中進行一些線性代數時,看到Blas,Lapack和其他基本API的教程很少,這讓我感到驚訝。儘管事實上它們是許多其他圖書館的基礎。由於這個原因,我開始收集所有可以在網上找到的示例,用於Blas,Lapack,Clapack,Lapacke,Atlas,openblas ...在此Github repo中。好吧,我應該警告您,作為一名機械工程師,我幾乎沒有經驗來管理這樣的存儲庫,這可能首先對你們來說是一團糟。但是,如果您設法克服混亂,您會發現所有可能會有所幫助的示例和說明。我嘗試了最多,並且沒有提到的彙編。我已經修改了其中的許多,以與GNU編譯器(GCC,G ++和GFORTRAN)進行編譯。我製作的文件可以閱讀,以了解如何在C或C ++程序中調用單個FORTRAN例程。我還為Mac和Linux提供了一些安裝說明(對不起,Windows的傢伙!)。我想確保您是否是C開發人員,無論您的平台或硬件如何
問題:
- 無法在Mac OS X上編譯地圖集。在SourceForce上進行了錯誤報告:https://sourceforge.net/p/math-atlas/bugs/261/
- 對於某些Blas和CBLA示例,將-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-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/example_dgels_colmajor.c
- http://www.linuxquestions.org/linux/linux/swers/programming/installation_and_use_common_common_common_scientific libraries_unix_part_part_2_lapack_and_and_ist_ist_its_wrappers_wrappers_lapacke_and_atlas
- http://theoryno3.blogspot.nl/2010/12/compiling-lapack-as-shared-library-in.html
- http://www.dreamincode.net/forums/topic/287490-anyone-familiar-with-lapack-and-blas/
- https://software.intel.com/sites/products/docuctation/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-the-relation-betthe-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-the-most-widely-used-c--vector-matrix-math-math-math-linear-algebra-libraries-a/1452950#1452950
- http://stackoverflow.com/questions/8206563/purpose-of-lda-argument-in-blas-dgemm/8209290#8209290
- http://stackoverflow.com/questions/966249/scientific-math-with-with-functional-languages/966324#966324
- http://stackoverflow.com/questions/24071622/replicating-blas-matrix-matrix-multiplication-performance-can-i-match-it
- Cephes-> http://www.netlib.org/cephes/
- crlibm-> http://lipforge.ens-lyon.fr/www/crlibm/index.html