Skip to content
murmot

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

  • numpy.org

    Array API — NumPy v2.1 Manual

    Returns an ndarray object from a Python object that exposes the __array_struct__ attribute and follows the array interface protocol. If the object does not contain this attribute then a borrowed reference to Py_NotImplemented is returned.

  • numpy.org

    NumPy: the absolute basics for beginners

    One major difference is that slice indexing of a list copies the elements into a new list, but slicing an array returns a view: an object that refers to the ...

  • numpy.org

    Array API — NumPy v1.17 Manual

    Return an ndarray object from a Python object that exposes the __array__ method. The __array__ method can take 0, 1, or 2 arguments ([dtype, context]) where context is used to pass information about where the __array__ method is being called from (currently only used in ufuncs).

  • numpy.org

    Array API — NumPy v1.26 Manual

    Returns an ndarray object from a Python object that exposes the __array_struct__ attribute and follows the array interface protocol. If the object does not contain this attribute then a borrowed reference to Py_NotImplemented is returned.

  • numpy.org

    Array API — NumPy v2.2 Manual

    Returns an ndarray object from a Python object that exposes the __array_struct__ attribute and follows the array interface protocol. If the object does not contain this attribute then a borrowed reference to Py_NotImplemented is returned.

  • numpy.org

    numpy.ones — NumPy v2.7.dev0 Manual

    In this case, it ensures the creation of an array object compatible with that passed in via this argument. Returns: outndarray. Array of ones with the given ...

  • numpy.org

    Array API — NumPy v1.15 Manual

    Return an ndarray object from a Python object that exposes the __array__ method. The __array__ method can take 0, 1, or 2 arguments ([dtype, context]) where context is used to pass information about where the __array__ method is being called from (currently only used in ufuncs).

  • numpy.org

    numpy.select — NumPy v2.6.dev0 Manual

    Return an array drawn from elements in choicelist, depending on conditions. ... The output at position m is the m-th element of the array in choicelist ...

  • numpy.org

    Array creation — NumPy v2.7.dev0 Manual

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