Skip to content
murmot

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

  • numpy.org

    NumPy C code explanations

    The interpretation of this memory depends on the stride information. For each dimension in an N -dimensional array, an integer ...

  • numpy.org

    Array API — NumPy v1.19 Manual

    The function returns -1 (without setting a Python Error) if one of the objects being assigned is not callable.Place right before code that does not need the Python interpreter (no Python C-API calls). This macro saves the Python state and releases the GIL.

  • numpy.org

    Using NumPy C-API — NumPy v2.5 Manual

    Required subroutine Defining functions Functions without keyword arguments Functions with keyword arguments Reference counting Dealing with array objects Converting an arbitrary sequence object Creating a brand-new ndarray Getting at ndarray memory and accessing elements of the ndarray Example Using Python as glue Calling other compiled ...

  • numpy.org

    NumPy C-API

    Cython translates Python or Cython source into C code, which is then compiled into a native Python extension module. ... set_array_base(arr, self) return arr. The ...

  • numpy.org

    How to extend NumPy — NumPy v1.16 Manual

    There is exactly one function that must be defined in your C-code in order for Python to use it as an extension module.The final step of the C-function is to return something. If an error is encountered then NULL should be returned (making sure an error has actually been set).

  • numpy.org

    Array API — NumPy v1.20 Manual

    The function returns -1 (without setting a Python Error) if one of the objects being assigned is not callable.Place right before code that does not need the Python interpreter (no Python C-API calls). This macro saves the Python state and releases the GIL.

  • numpy.org

    Iterating over arrays — NumPy v2.5 Manual

    This page introduces some basic ways to use the object for computations on arrays in Python, then concludes with how one can accelerate the inner loop in Cython. Since the Python exposure of nditer is a relatively straightforward mapping of the C array iterator API, these ideas will also provide help working with array iteration from C or C++.

  • numpy.org

    Array API — NumPy v2.5 Manual

    This function returns a (C-style) contiguous and behaved function array from any nested sequence or array interface exporting object, op, of (non-flexible) type given by the enumerated typenum, of minimum depth min_depth, and of maximum depth max_depth.

  • numpy.org

    NumPy C code explanations — NumPy v2.5 Manual

    The array scalars offer a hierarchy of Python types that allow a one-to-one correspondence between the datatype stored in an array and the Python-type that is returned when an element is extracted from the array.