Skip to content
murmot

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

  • numpy.org

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

    Python types are the functional equivalent in C of classes in Python. By constructing a new Python type you make available a new object for Python.Npy_list_pickle#. Indicates arrays of this data-type must be converted to a list before pickling.

  • numpy.org

    Array API — NumPy v2.6.dev0 Manual

    It should return a -1 on error and 0 otherwise. Data access#. These functions and macros provide easy access to elements of the ndarray from C. These work for ...

  • 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

    F2PY examples — NumPy v2.6.dev0 Manual

    This example shows a function that filters a two-dimensional array of double precision floating-point numbers using a fixed averaging filter. The advantage of using Fortran to index into multi-dimensional arrays should be clear from this example.