diff options
| author | Noritada Kobayashi <noritada.kobayashi@gmail.com> | 2022-07-16 19:06:33 +0900 |
|---|---|---|
| committer | Noritada Kobayashi <noritada.kobayashi@gmail.com> | 2022-07-16 19:06:33 +0900 |
| commit | 3c500f550294ed3053dbcd0561f14a7549b8c19e (patch) | |
| tree | 124649b767d6f25f28be856ac5658260a14f10bf | |
| parent | bdec32181605c8179fd79624d14c1cf019de75af (diff) | |
| download | numpy-3c500f550294ed3053dbcd0561f14a7549b8c19e.tar.gz | |
DOC: cross-reference descriptions of `frombuffer` and `ndarray.tobytes`
| -rw-r--r-- | numpy/core/_add_newdocs.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py index f71136eef..0368a911a 100644 --- a/numpy/core/_add_newdocs.py +++ b/numpy/core/_add_newdocs.py @@ -1601,6 +1601,11 @@ add_newdoc('numpy.core.multiarray', 'frombuffer', ------- out : ndarray + See also + -------- + ndarray.tobytes + Construct Python bytes from the raw data bytes in the array. + Notes ----- If the buffer has data that is not in machine byte-order, this should @@ -4458,6 +4463,10 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('tobytes', """ s : bytes Python bytes exhibiting a copy of `a`'s raw data. + See also + -------- + frombuffer : Construct a 1-dimensional array from Python bytes. + Examples -------- >>> x = np.array([[0, 1], [2, 3]], dtype='<u2') |
