diff options
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 26711f177..d1f6b3285 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -4460,6 +4460,12 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('view', (same shape, dtype, etc.) This does not cause a reinterpretation of the memory. + In cases when ``a.view(some_dtype)`` causes a reinterpretation of the + bytes of memory, its behavior cannot necessarily be predicted just from + the superficial appearance of ``a`` (shown by ``print(a)``). If ``a`` is + C-ordered versus fortran-ordered, versus defined as a transpose, versus + defined as a slice, etc., the view may give different results. + Examples -------- |