common lisp数値計算環境
sudo apt-get install plplot-bin gsl-bin r-base clisp sbcl cl-cffi cl-asdf cl-statistics cl-utilities libumfpack4 libumfpack4-dev
sudo sbcl
>(load "install.lisp")
;;install.lisp (setf asdf:*central-registry* '(*default-pathname-defaults* #p"/usr/share/common-lisp/systems/" #p"/usr/lib/sbcl/site-systems/" #p"~/usr/share/common-lisp/systems/" )) (require :asdf-install) ;自動でインストールされませんでした 手動でダウンロードして展開 cp しました (asdf-install:install "http://www.princeton.edu/~tpapp/software/ffa.tar.gz") ; (asdf-install:install "http://www.princeton.edu/~tpapp/software/cl-numlib.tar.gz") (asdf-install:install "http://www.princeton.edu/~tpapp/software/cl-sparsematrix.tar.gz") (asdf-install:install "http://common-lisp.net/project/cl-containers/clnuplot/clnuplot_latest.tar.gz");done (asdf-install:install "http://common-lisp.net/project/cl-plplot/cl-plplot-0.4.0.tar.gz") (asdf-install:install "http://common-lisp.net/project/python-on-lisp/pythononlisp-0.2.tar.gz") (asdf-install:install "http://common-lisp.net/project/asdf-packaging/parse-number-latest.tar.gz") ;自動でinstallできませんでした。手動でダウンロード展開しました (asdf-install:install "http://aleph0.info/spartns/spartns.tar.gz") ;
libraryの解説
- clem
- Release Date: April 23, 2007 比較的新しい
- Matrix Inversion などの基礎的機能 SVDやCholはDocmentでは見つけられなかった(srcを見ればあるのか?)
- cite
- GSLのinterface
- cl-gsl http://common-lisp.net/project/cl-gsl/ 最終更新が2006年、同じgsl interfaceならGSLLの方が新しい
- GSLL gslの様々な機能を使える sbcl clispで動くと書いてある http://common-lisp.net/project/gsll/documentation.html
- http://common-lisp.net/project/gsll/missing-features.text GSLの次の機能がないFFT, submatrix , stride
- ffa : cffiのc互換の行列とその操作(outer-productなど). ffa/operations.lisp を参照. cのponterも使える. ffa/pointer-test.lisp を参照.
- cl-numlib : ffaを使ったoptimize algorismなど。
- clnuplot : gnuplotとのインターフェイス。3次元プロットをするsplotは入ってないもよう. libraryのdirectoryに $ grep splot clplot/* しても何もなかった
- cl-plplot : plplotとのインターフェイス surface plotなどの3次元plot機能もあるようだ.
- cl-statistics meanから乱数の生成までいろいろ
- spartns : すべてlispで書かれたテンソル処理
- cl-sparsematrix : ここに詳しい日本語解説がある http://cadr.g.hatena.ne.jp/g000001/20080113/1200208026
- その他
- NLISP http://www.cliki.net/NLISP
- http://d.hatena.ne.jp/masatoi/20080420/1208675847 によるとsbclで動く
- 解凍して適切な場所に展開後 (require :nlisp)だけでexample1.lispが動いてplotもしてくれた
- GSLの行列演算をnlispの行列で使う方法がわからない
- cmucl用だがgnuplot の部分を除くとcmucl以外で動かすのは簡単だろうとDocmentに書いてあった.
- 2008.10に最新版が出ていた。新しい。
- GSLLができないsubarray処理ができる.nlisp-array-creation.lisp defun make-narrayをみているとmake-narrayで行列などを作ってるようだ。cffi経由のgsl関数は呼べないのか?
- http://d.hatena.ne.jp/masatoi/20080420/1208675847 によるとsbclで動く
- MatLisp CMUCLでうごく 2003.10が最終リリース http://matlisp.sourceforge.net/
- http://www.cliki.net/FEMLISP solves partial differential equation
- NLISP http://www.cliki.net/NLISP
- 関連link
- lispで数値計算を行うための情報がいろいろと書かれていた http://d.hatena.ne.jp/masatoi/20080420/1208675847
- Reliable numerics in LISP? Matlisp, f2cl, Maxima, help to port xlispstat, clean the dust off NumRec, or what? http://coding.derkeiler.com/Archive/Lisp/comp.lang.lisp/2006-09/msg01119.html
- http://groups.google.com/group/lisp-matrix-devel/browse_thread/thread/9b0e0cb425f495ef
- http://groups.google.com/group/lisp-matrix-devel/browse_thread/thread/9b0e0cb425f495ef