Skip to content
murmot

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

  • numpy.org

    numpy.array — NumPy v2.5 Manual

    An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. If object is a scalar, a 0-dimensional array containing object is returned.

  • numpy.org

    Python types and C-structures — NumPy v2.1 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

    Standard array subclasses — NumPy v2.5 Manual

    The ndarray can be inherited from (in Python or in C) if desired. Therefore, it can form a foundation for many useful classes. Often whether to sub-class the array object or to simply use the core array component as an internal part of a new class is a difficult decision, and can be simply a matter of choice. NumPy has several tools for simplifying how your new object interacts with other ...

  • numpy.org

    How to extend NumPy — NumPy v1.15 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

    numpy.array — NumPy v2.7.dev0 Manual

    An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. If object is a scalar, a 0-dimensional array containing object is returned.

  • numpy.org

    numpy.asarray — NumPy v2.5 Manual

    Reference object to allow the creation of arrays which are not NumPy arrays. If an array-like passed in as like supports the __array_function__ protocol, the result will be defined by it.

  • numpy.org

    numpy.i: a SWIG Interface File for NumPy — NumPy v1.20 Manual

    A number of functions, supplied by numpy.i, are called to make and check the (possible) conversion from a generic Python object to a NumPy array.PyArrayObject* ary, a NumPy array. Test whether ary is contiguous. If so, return 1. Otherwise, set a Python error and return 0.

  • numpy.org

    NumPy reference — NumPy v2.5 Manual

    Jun 28, 2026 · NumPy reference # Release: 2.5 Date: June 28, 2026 This reference manual details functions, modules, and objects included in NumPy, describing what they are and what they do. For learning how to use NumPy, see the complete documentation. Python API #