Skip to content
murmot

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

  • 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

    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.