Skip to content
murmot

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

  • numpy.org

    How to extend NumPy — NumPy v1.15 Manual

    Functions with keyword arguments. Reference counting. Dealing with array objects. Converting an arbitrary sequence object.Return an ndarray from any Python object, obj, that can be converted to an array.

  • numpy.org

    numpy.ravel — NumPy v2.5 Manual

    A 1-D array, containing the elements of the input, is returned. A copy is made only if needed. As of NumPy 1.10, the returned array will have the same type as ...

  • numpy.org

    Standard array subclasses — NumPy v1.21 Manual

    If these conditions hold, __array_function__ should return the result from calling its implementation for func(*args, **kwargs). Otherwise, it should return the sentinel value NotImplemented, indicating that the function is not implemented by these types.

  • 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

    Python types and C-structures — NumPy v2.0 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

    Array types can also be referred to by character codes, for example: >>> np ... Note that, above, we could have used the Python float object as a dtype instead of ...

  • numpy.org

    Standard array subclasses — NumPy v1.19 Manual

    Implementations of __array_function__ indicate that they can handle the operation by returning any value other than NotImplemented. If all __array_function__ methods return NotImplemented, NumPy will raise TypeError.

  • numpy.org

    numpy.maximum — NumPy v2.2 Manual

    Array objects · Universal functions ( ufunc ) · Routines and objects by topic ... Compare two arrays and return a new array containing the element-wise maxima.

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