Skip to content
murmot

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

  • numpy.org

    How to extend NumPy — NumPy v1.16 Manual

    The following example shows how you might write a wrapper that accepts two input arguments (that will be converted to an array) and an output argument (that must be an array). The function returns None and updates the output array.

  • numpy.org

    Array API — NumPy v2.0 Manual

    The function is equivalent to setting a single array element with a Python assignment. Returns 0 on success and -1 with an error set on failure.If file is a Python string it is considered to be the name of a file which is then opened in binary mode.

  • numpy.org

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

    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. These are explained in the next section.

  • numpy.org

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

    This function deals with “misbehaved” arrays. If successful, a zero is returned, otherwise, a negative one is returned (and a Python error set). void copyswapn(void *dest, npy_intp dstride, void *src, npy_intp sstride, npy_intp n, int swap, void *arr)#.

  • numpy.org

    How to extend NumPy — NumPy v1.21 Manual

    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. These are explained in the next section.