<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>saket</author_name>
  <author_url>https://blog.hatena.ne.jp/saket/</author_url>
  <blog_title>Risky Dune</blog_title>
  <blog_url>https://saket.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>プログラミング</anon>
    <anon>C++</anon>
  </categories>
  <description>scipyで書いたプログラムでも一部が遅くてそこをC++で実装したいというシナリオはよくある. それには色々な手段があるというのは以前の日記でも紹介した通り. 今回はBoost.Pythonでscipy/numpyのarray(ndarray)を取り扱う方法を説明する. 基本的な使い方はboost-python ではじめる大規模機械学習とかBoost.Python の機能をざっと紹介してみるも参考になる. 簡単な使い方 さて本題へ. boost.Pythonにおいてnumpy.ndarrayに対応するクラスは, boost::python::numericである. これは Boost.Pyth…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsaket.hatenadiary.org%2Fentry%2F20120406%2F1333697983&quot; title=&quot;Boost.Pythonの使い方とNumpy/Scipy arrayの渡し方 - Risky Dune&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-04-06 16:39:43</published>
  <title>Boost.Pythonの使い方とNumpy/Scipy arrayの渡し方</title>
  <type>rich</type>
  <url>https://saket.hatenadiary.org/entry/20120406/1333697983</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
