1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

numpy についてのメモ

Posted at

numpy についての個人的メモです。
わからなかったメソッドや変数を都度メモしていきます。

shape

配列の大きさを調べる。

shape

行列の大きさを調べる

shape[0]

行列の行数を調べる

shape[1]

行列の列数を調べる

ones

指定されたshapeをもつ要素が1の配列を返す

vstack

配列を縦に結合する

hstack

配列を横に結合する

linspace

指定した数字間の数字を生成する

linspace(first, last, step)

first:最初の数字
last :最後の数字
step :firstからlastまで到達するまでの回数

newaxis

numpyの配列に次元を追加する

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?