<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hayataka2049</author_name>
  <author_url>https://blog.hatena.ne.jp/hayataka2049/</author_url>
  <blog_title>静かなる名辞</blog_title>
  <blog_url>https://hayataka2049.hatenablog.jp/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>numpy</anon>
    <anon>速度計測シリーズ</anon>
  </categories>
  <description>numpyで行列演算を行う方法としては、普通のnumpy配列に行列演算系の関数を適用していく方法と、あまり知られていないがnp.matrix型やnp.mat型を使う方法がある。 速度が違ったりするのだろうか？ 仮に違うと困る（というか場面によって適切な方を選ぶ必要が生じてくる）ので、こんなコードを書いてみた。 import timeit import numpy as np def main(): a = np.random.random((100, 100)) b = np.random.random((100, 100)) a_m = np.matrix(a) b_m = np.matri…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhayataka2049.hatenablog.jp%2Fentry%2F2018%2F05%2F21%2F185718&quot; title=&quot;【python】np.matrixの速度を測る - 静かなる名辞&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>2018-05-21 18:57:18</published>
  <title>【python】np.matrixの速度を測る</title>
  <type>rich</type>
  <url>https://hayataka2049.hatenablog.jp/entry/2018/05/21/185718</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
