io.rst 750 Bytes
Newer Older
root's avatar
root committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Input and output
================

.. Hint:: `NumPy API Reference: Input and output <https://numpy.org/doc/stable/reference/routines.io.html>`_

.. currentmodule:: cupy


NumPy binary files (NPY, NPZ)
-----------------------------

.. autosummary::
   :toctree: generated/

   load
   save
   savez
   savez_compressed

Text files
-----------------------------

.. autosummary::
   :toctree: generated/

   loadtxt
   savetxt
   genfromtxt
   fromstring

String formatting
-----------------

.. autosummary::
   :toctree: generated/

   array2string
   array_repr
   array_str
   format_float_positional
   format_float_scientific


Base-n representations
----------------------

.. autosummary::
   :toctree: generated/

   binary_repr
   base_repr