Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.ndarray.base

ndarray.base

Base object if memory is from some other object.

Examples

The base of an array that owns its memory is None:

>>>x=np.array([1,2,3,4])>>>x.baseisNoneTrue

Slicing creates a view, whose memory is shared with x:

>>>y=x[2:]>>>y.baseisxTrue

Previous topic

numpy.ndarray.nbytes

Next topic

numpy.ndarray.dtype

Quick search

  • © Copyright 2008-2018, The SciPy community.
  • Last updated on Jul 24, 2018.
  • Created usingSphinx 1.6.6.

[8]ページ先頭

©2009-2025 Movatter.jp