2012年5月15日

摘要: 仿照 http://www.boost.org/doc/libs/1_49_0/libs/python/doc/tutorial/doc/html/index.html 写一个例子 1 #include <boost/python.hpp> 2 3 char const* greet() 4 { 5 return "hello, world"; 6 } 7 BOOST_PYTHON_MODULE(hello_ext) 8 { 9 using namespace boost::python;10 def("greet", greet);11 } 阅读全文
posted @ 2012-05-15 13:31 bian 阅读(487) 评论(0) 推荐(0)
摘要: Test 阅读全文
posted @ 2012-05-15 11:25 bian 阅读(130) 评论(0) 推荐(0)
摘要: Matlab是矩阵运算/线性代数最常用的库。不过由于licence问题,一般更多用于做实验什么的,另外,虽然Matlab可以方便的用C写扩展,但是Matlab自己的函数却很难被其他语言调用。Octave是Matlab一个不错的开源替代,不过Octave也有一些问题,1,Octave并没有实现Matlab太多功能 2, Octave在做一些没有向量化的矩阵计算时,非常非常慢(大致比Matlab慢200倍左右)C科学计算最经典的库是LAPACK/MKL/AKL 之类,不过用起来非常麻烦,有很多为这些库的封装,保留速度的同时,提升接口的友好性。这里(http://verdandi.gforge.in 阅读全文
posted @ 2012-05-15 11:11 bian 阅读(5620) 评论(0) 推荐(0)

导航