<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nishiohirokazu</author_name>
  <author_url>https://blog.hatena.ne.jp/nishiohirokazu/</author_url>
  <blog_title>西尾泰和のはてなダイアリー</blog_title>
  <blog_url>https://nishiohirokazu.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>飛ぶと思い込んでいたので、ここで入ったnanのせいでしばらく進んでから逆行列を求める計算LinAlgError: Singular matrixで死ぬのに悩まされた。 &gt;&gt;&gt; array([0]) / 0.0 array([ nan]) &gt;&gt;&gt; array([1]) / 0.0 array([ inf]) NaNやInfが出てきた時点で例外を飛ばすオプションとかないかなぁ。プロトタイピングではfail fast重要ですよー。 numpy.seterrで例外を飛ばすように設定できるらしい！(thanks @shima__shima) &gt;&gt;&gt; numpy.seterr(all=&quot;raise&quot;) #…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20111121%2F1321854084&quot; title=&quot;Numpyではゼロで割っても例外が飛ばない - 西尾泰和のはてなダイアリー&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>2011-11-21 14:41:24</published>
  <title>Numpyではゼロで割っても例外が飛ばない</title>
  <type>rich</type>
  <url>https://nishiohirokazu.hatenadiary.org/entry/20111121/1321854084</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
