Skip to content
murmot

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

  • numpy.org

    How to extend NumPy — NumPy v1.16 Manual

    This function must be declared so that it is visible to code outside of the routine. Besides adding the methods and constants you desire, this subroutine must also contain calls like import_array() and/or import_ufunc() depending on which C-API is needed.

  • numpy.org

    How to extend NumPy — NumPy v1.17 Manual

    All array creation functions go through this heavily re-used code. Because of its flexibility, it can be somewhat confusing to use.The function returns None and updates the output array. Note the updated use of WRITEBACKIFCOPY semantics for NumPy v1.14 and above.

  • 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

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

    import_array(); return PyModule_Create(&moduledef); } The mymethods must be an array (usually statically declared) of PyMethodDef structures which contain method names, actual C-functions, a variable indicating whether the method uses keyword arguments or not, and docstrings.