<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cmyu</author_name>
  <author_url>https://blog.hatena.ne.jp/cmyu/</author_url>
  <blog_title>数学と電気とプログラム</blog_title>
  <blog_url>https://cmyu.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>配列の配列を、行列に変換する方法がわからなかったのでメモ。 結果としては以下のようにすれば良いようです。 import Base.convert convert{T}(::Array{T,2}, x :: Array{Array{T,1},1}) = hcat(x...)' 今回学んだのは２点。一つは、型自体で多重ディスパッチしたい時は ::型 でいけるということ。 もう一つは、... の挙動が理解できていないこと。 後者は、現段階では「配列やタプルを分解してくれるもの」というぼんやりした認識です。そういえば MATLAB にも同じ文法がありますね。 詳細について、いずれドキュメントを確認しよ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcmyu.hatenablog.com%2Fentry%2F2016%2F12%2F07%2F100804&quot; title=&quot;配列の配列から行列への変換 - 数学と電気とプログラム&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>2016-12-07 10:08:04</published>
  <title>配列の配列から行列への変換</title>
  <type>rich</type>
  <url>https://cmyu.hatenablog.com/entry/2016/12/07/100804</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
