Skip to content
murmot

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

  • numpy.org

    Array API — NumPy v1.17 Manual

    Return an ndarray object from a Python object that exposes the __array__ method. The __array__ method can take 0, 1, or 2 arguments ([dtype, context]) where context is used to pass information about where the __array__ method is being called from (currently only used in ufuncs).

  • numpy.org

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

    Most new arrays are created with this flexible function. The returned object is an object of Python-type subtype, which must be a subtype of PyArray_Type . The ...

  • numpy.org

    Array API — NumPy v2.1 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

    numpy.array2string — NumPy v2.2 Manual

    Return a string representation of an array.formatterdict of callables, optional. If not None, the keys should indicate the type(s) that the respective formatting function applies to. Callables should return a string.