Skip to content
murmot

Results for “function return python array java code c pdf file copy site:numpy.org object”

  • numpy.org

    Array creation routines — NumPy v2.5 Manual

    Return an array copy of the given object.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]).

  • 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 v1.13 Manual

    Return an array scalar object of the given enumerated typenum and itemsize by copying from memory pointed to by data . If swap is nonzero then this function will byteswap the data if appropriate to the data-type because array scalars are always in correct machine-byte order.

  • numpy.org

    Array API — NumPy v1.26 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.