Skip to content
murmot

Results for “function return python array object string java file site:numpy.org error”

  • numpy.org

    numpy.save — NumPy v2.1 Manual

    String functionality. Datetime support functions. Data type routines. Mathematical functions with automatic domain. Floating point error handling.filefile, str, or pathlib.Path. File or filename to which the data is saved. If file is a file-object, then the filename is unchanged.

  • numpy.org

    numpy.lib.npyio.NpzFile

    format are loaded as arrays; other files are returned as bytes. The ... This is either a file-like object or a string containing the path to the archive.

  • numpy.org

    Array creation routines — NumPy v2.5 Manual

    Create a NumPy array from an object implementing the __dlpack__ protocol. fromfile(file[, dtype, count, sep, offset, like]). Construct an array from data in a text or binary file. fromfunction(function, shape, *[, dtype, like]). Construct an array by executing a function over each coordinate.

  • numpy.org

    Array API — NumPy v1.17 Manual

    Returns an ndarray object from a Python object that exposes the __array_struct__ attribute and follows the array interface protocol. If the object does not contain this attribute then a borrowed reference to Py_NotImplemented is returned.

  • numpy.org

    Array API — NumPy v2.6.dev0 Manual

    Return an ndarray object from a Python object that exposes the __array__ method. The third-party implementations of __array__ must accept dtype positionally and copy as a keyword argument. context is unused.

  • numpy.org

    Array API — NumPy v1.26 Manual

    The returned object is an object of Python-type subtype, which must be a subtype of PyArray_Type. The array has nd dimensions, described by dims.Pickle the object in self to the given file (either a string or a Python file object).