Skip to content
murmot

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

  • numpy.org

    Beyond the basics — NumPy v2.6.dev0 Manual

    The returned object is an array-iterator object (the same object returned by the .flat attribute of the ndarray).There are several examples of using the multi-iterator in the NumPy source code as it makes N-dimensional broadcasting-code very simple to write.

  • 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

    Beyond the Basics — NumPy v1.25 Manual

    The returned object is an array-iterator object (the same object returned by the .flat attribute of the ndarray).For example, the following code iterates over two arrays assumed to be the same shape and size (actually obj1 just has to have at least as many total elements as does obj2)

  • numpy.org

    numpy.fromfunction — NumPy v2.3 Manual

    Data-type of the coordinate arrays passed to function. By default, dtype is float. likearray_like, optional. Reference object to allow the creation of arrays ...

  • numpy.org

    Beyond the basics — NumPy v2.5.dev0 Manual

    The returned object is an array-iterator object (the same object returned by the .flat attribute of the ndarray).Iterating over multiple arrays#. Very often, it is desirable to iterate over several arrays at the same time. The universal functions are an example of this kind of behavior.

  • numpy.org

    numpy.ndarray.item — NumPy v2.2 Manual

    When the data type of a is longdouble or clongdouble, item() returns a scalar array object because there is no available Python scalar that would not lose ...

  • numpy.org

    Beyond the Basics — NumPy v1.15 Manual

    The returned object is an array-iterator object (the same object returned by the .flat attribute of the ndarray).Very often, it is desirable to iterate over several arrays at the same time. The universal functions are an example of this kind of behavior.

  • numpy.org

    numpy.frompyfunc — NumPy v2.2 Manual

    Returns a NumPy universal function ( ufunc ) object. See also. vectorize. Evaluates pyfunc over input arrays using broadcasting rules of numpy.

  • numpy.org

    Beyond the Basics — NumPy v1.21 Manual

    The returned object is an array-iterator object (the same object returned by the .flat attribute of the ndarray).Very often, it is desirable to iterate over several arrays at the same time. The universal functions are an example of this kind of behavior.

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