<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nohzen</author_name>
  <author_url>https://blog.hatena.ne.jp/nohzen/</author_url>
  <blog_title>おっぱいそん！</blog_title>
  <blog_url>https://oppython.hatenablog.com/</blog_url>
  <categories>
    <anon>numpy</anon>
  </categories>
  <description>aを適当なN次元配列とする。 a[a_1, a_2, a_3, ]とすると、配列の1つの成分を取り出せる。 a[リスト]とすると、1次元配列のリスト番目の成分のみ取り出した配列を返す。 (上の用に配列の１つの成分だけ取り出したい時にはtuple(リスト)のようにtupleにして渡せば良い） a[リスト1,リスト2,リスト3, ]とすると、1次元目をリスト1で2次元目をリスト2で、といったように取り出した配列を返す。 np.ix_をつかってa[np.ix_([行],[列])]とすると行列の一部の行と列のみ取り出した新しい行列を作れる。 ※ここまでのリストは配列にしても同じ。 同じことをbool値…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foppython.hatenablog.com%2Fentry%2F2014%2F01%2F19%2F054931&quot; title=&quot;Fancy Indexing：配列の一部を条件をつけて取り出す - おっぱいそん！&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>2014-01-19 05:49:31</published>
  <title>Fancy Indexing：配列の一部を条件をつけて取り出す</title>
  <type>rich</type>
  <url>https://oppython.hatenablog.com/entry/2014/01/19/054931</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
