LoginSignup
0
0

More than 5 years have passed since last update.

numpy > numpy.ndarray.flags

Last updated at Posted at 2017-07-23
動作環境
Python3 (ideone)

https://stackoverflow.com/questions/22053050/difference-between-numpy-array-shape-r-1-and-r
を見ていて以下を見つけた。

>>> a.flags
  C_CONTIGUOUS : True
  F_CONTIGUOUS : True
  OWNDATA : True
  WRITEABLE : True
  ALIGNED : True
  UPDATEIFCOPY : False

試してみた。

import numpy as np

val = np.arange(12)
print(val.flags)
run
  C_CONTIGUOUS : True
  F_CONTIGUOUS : True
  OWNDATA : True
  WRITEABLE : True
  ALIGNED : True
  UPDATEIFCOPY : False

link

技術英語 > The OCM memory map can be reorganized so that it’s completely [contiguous] > continuous: 時間的連続 / contiguous: 地理的連続

0
0
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
0
0