Skip to content
murmot

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

  • numpy.org

    Array API — NumPy v2.6.dev0 Manual

    This is the main array creation function. 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 array has nd dimensions, described by dims.

  • numpy.org

    NumPy reference — NumPy v2.3 Manual

    Jun 9, 2025 ... Python API#. NumPy's module structure · Array objects · The N-dimensional ... Functional programming · Input and output · Indexing routines ...

  • numpy.org

    Beyond the basics — NumPy v2.5.dev0 Manual

    The returned object is an array-iterator object (the same object returned by the .flat attribute of the ndarray).Iterating over multiple arrays#. Very often, it is desirable to iterate over several arrays at the same time. The universal functions are an example of this kind of behavior.

  • numpy.org

    How to extend NumPy — NumPy v1.20 Manual

    If multiple objects should be returned then you need to return a tuple. The Py_BuildValue (format_string, c_variables…) function makes it easy to build tuples of Python objects from C variables.

  • numpy.org

    Python types and C-structures — NumPy v2.3 Manual

    A pointer to a function that sets the Python object item into the array, arr, at the position pointed to by data . This function deals with “misbehaved” arrays. If successful, a zero is returned, otherwise, a negative one is returned (and a Python error set).

  • numpy.org

    How to extend NumPy — NumPy v2.5.dev0 Manual

    If multiple objects should be returned then you need to return a tuple. The Py_BuildValue (format_string, c_variables…) function makes it easy to build tuples of Python objects from C variables.