Skip to content
murmot

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

  • 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

    Array API — NumPy v2.6.dev0 Manual

    This is the main array creation function. Most new arrays are created with this flexible function. The returned object is an object of Python-type subtype, which must be a subtype of PyArray_Type. The array has nd dimensions, described by dims.

  • numpy.org

    How to extend NumPy — NumPy v2.1 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 1.8.1 Release Notes — NumPy v1.18 Manual

    This has no effect on currently working code, but highlights the necessity of checking for an error return if these conditions can occur.The utility function npy_PyFile_Dup and npy_PyFile_DupClose are broken by the internal buffering python 3 applies to its file objects.