Skip to content
murmot

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

  • numpy.org

    Floating point error handling — NumPy v2.6.dev0 Manual

    Functional programming. Input and output. Indexing routines.Floating point error handling#. Error handling settings are stored in contextvars allowing different threads or async tasks to have independent configurations. For more information, see Context Local State.

  • numpy.org

    Array creation — NumPy v2.5 Manual

    There are 6 general mechanisms for creating arrays: Conversion from other Python structures (i.e. lists and tuples). Intrinsic NumPy array creation functions ( ...

  • numpy.org

    Array creation routines — NumPy v2.5 Manual

    Functional programming. Input and output. Indexing routines.fromfile(file[, dtype, count, sep, offset, like]). Construct an array from data in a text or binary file. fromfunction(function, shape, *[, dtype, like]). Construct an array by executing a function over each coordinate.

  • numpy.org

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

    numpy.array# · An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. · The desired data- ...

  • numpy.org

    Using F2PY bindings in Python — NumPy v2.6.dev0 Manual

    In general, array arguments for F2PY generated wrapper functions accept arbitrary sequences that can be transformed to NumPy array objects.F2PY supports calling Python functions from Fortran or C codes. Consider the following Fortran 77 code: C File: callback.f.

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