Input and Output

NumPy binary files (NPY, NPZ)

cupy.load

Loads arrays or pickled objects from .npy, .npz or pickled file.

cupy.save

Saves an array to a binary file in .npy format.

cupy.savez

Saves one or more arrays into a file in uncompressed .npz format.

cupy.savez_compressed

Saves one or more arrays into a file in compressed .npz format.

String formatting

cupy.array_repr

Returns the string representation of an array.

cupy.array_str

Returns the string representation of the content of an array.

Base-n representations

cupy.binary_repr

Return the binary representation of the input number as a string.

cupy.base_repr

Return a string representation of a number in the given base system.