Skip to content
murmot

Results for “function return python array java object string command site:numpy.org example”

  • numpy.org

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

    A pointer to a function that returns a standard Python object from a single element of the array object arr pointed to by data. This function must be able to deal with “misbehaved “(misaligned and/or swapped) arrays correctly.

  • numpy.org

    Data types — NumPy v2.5 Manual

    Note that, above, we could have used the Python float object as a dtype instead of numpy. ... This means that storing an array of byte sequences or strings using ...

  • 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).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.arange — NumPy v2.7.dev0 Manual

    For integer arguments the function is roughly equivalent to the Python ... In this case, it ensures the creation of an array object compatible with that passed in ...

  • 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

    Array API — NumPy v1.19 Manual

    This is the main array creation function. Most new arrays are created with this flexible function. The returned object is an object of Python-type subtype, which must be a subtype of PyArray_Type. The array has nd dimensions, described by dims.