やや厄介な開発枝をチェックしてください。
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はコンパイルするようにequedされます。理由がわからない! (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_dgels_colmajor.c
- http://www.linuxquestions.org/linux/answers/programming/installation_and_use_common_scientififififififififific_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-Anyone-fam-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-the-leration-ween-ween-blas-lapack-and-atlas/17858345#17858345
- http://stackoverflow.com/questions/1303182/how-does-blas-such-extreme-performance/11421344#11421344
- http://stackoverflow.com/questions/1380371/what-er-widely-wusely-sused-vector-matrix-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-functional-languages/966324#966324
- http://stackoverflow.com/questions/24071622/replicating-blas-matrix-multipation-performance-can-i-match-it
- cephes - > http://www.netlib.org/cephes/
- crlibm-> http://lipforge.ens-lyon.fr/www/crlibm/index.html