Skip to content
murmot

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

  • numpy.org

    Using Python as glue — NumPy v1.19 Manual

    Here is another example of a function that filters a two-dimensional array of double precision floating-point numbers using a fixed averaging filter.The f2py program is written in Python and can be run from inside your code to compile Fortran code at runtime, as follows

  • numpy.org

    NumPy quickstart — NumPy v2.7.dev0 Manual

    To create sequences of numbers, NumPy provides the arange function which is analogous to the Python built-in range , but returns an array. >>> np.arange(10, 30 ...

  • numpy.org

    Using Python as glue — NumPy v1.15 Manual

    Here is another example of a function that filters a two-dimensional array of double precision floating-point numbers using a fixed averaging filter.The f2py program is written in Python and can be run from inside your code to compile Fortran code at runtime, as follows

  • numpy.org

    numpy.fromfunction — NumPy v2.1 Manual

    Shape of the output array, which also determines the shape of the coordinate arrays passed to function. ... If function returns a scalar value, the shape ...

  • numpy.org

    Array API — NumPy v2.6.dev0 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.array — NumPy v2.5 Manual

    array_like. An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. If object is a ...

  • numpy.org

    Array creation — NumPy v1.13 Manual

    Jun 10, 2017 ... In general, numerical data arranged in an array-like structure in Python can be converted to arrays through the use of the array() function. The ...