Skip to content
murmot

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

  • numpy.org

    Using Python as glue — NumPy v2.5 Manual

    This code loads the shared library named code.{ext} located in the same path as this file. It then adds a return type of void to the functions contained in the ...

  • numpy.org

    Array API — NumPy v1.17 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

    How to extend NumPy — NumPy v2.5 Manual

    When an extension module is written, compiled, and installed to somewhere in the Python path (sys.path), the code can then be imported into Python as if it were a standard python file. It will contain objects and methods that have been defined and compiled in C code.

  • 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.

  • 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

    The array interface protocol — NumPy v2.5 Manual

    The homogeneous N-dimensional array interface is a default mechanism for objects to share N-dimensional array memory and information. The interface consists of a Python-side and a C-side using two attributes. Objects wishing to be considered an N-dimensional array in application code should support at least one of these attributes.

  • numpy.org

    Array API — NumPy v1.13 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 reference — NumPy v2.5 Manual

    Jun 28, 2026 · NumPy reference # Release: 2.5 Date: June 28, 2026 This reference manual details functions, modules, and objects included in NumPy, describing what they are and what they do. For learning how to use NumPy, see the complete documentation. Python API #

  • 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.