2007-02-01から1ヶ月間の記事一覧

ublas 粗行列 sparse matrix

c++

http://www.boost.org/libs/numeric/ublas/doc/ boost::numeric::ublas::mapped_matrix sp_mt(10, 10); ↓これはできない. boost::numeric::ublas::sparse_matrix sp_mt(10, 10); ↓こんなエラーがでる. Clotho.cc:38: error: ‘sparse_matrix’ is not a memb…

[c++] octave

http://vision.kuee.kyoto-u.ac.jp/~hiroaki/numerical/ 参考. # yum install octave* コンパイル $ g++ testoctave.cpp -O2 -Wall -lm -I /usr/include/octave-2.9.9/ -L /usr/lib/octave-2.9.9/ -loctave -lcruft -lreadline -ldl -L/usr/lib/atlas -latl…

[c++] lapack

# yum install gcc* # yum install compat-gcc* 次のような test.c ファイルを用意する. #include <stdio.h> #include <python2.4/Numeric/f2c.h> #include <atlas/clapack.h> ...dgesv_(&N,&NRHS,A,&LDA,IPIV,b,&LDB,&INFO) のテストコード(ネットに転がってる)... コンパイル. $ gcc test.c -O2 -Wall -lm </atlas/clapack.h></python2.4/numeric/f2c.h></stdio.h>…