のんびりしているエンジニアの日記

ソフトウェアなどのエンジニア的な何かを書きます。

2014-02-04から1日間の記事一覧

boost::python(6) pyublasを利用したnumpy.arrayとの連携方法

皆さんこんにちわ。 お元気ですか?私は眠いんです…。本日も相変わらずBoost::pythonについて 特にPythonの科学技術計算ライブラリnumpyのarray型を扱ってみたいと思います。 C++ #include <Python.h> #include <numpy/arrayobject.h> #include <boost/python.hpp> #include <pyublas/numpy.hpp> using namespace std; using names</pyublas/numpy.hpp></boost/python.hpp></numpy/arrayobject.h></python.h>…