Skip to content
murmot

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

  • numpy.org

    Array creation routines — NumPy v2.5 Manual

    Return an array copy of the given object. frombuffer(buffer[, dtype, count, offset, like]). Interpret a buffer as a 1-dimensional array.Construct an array by executing a function over each coordinate. fromiter(iter, dtype[, count, like]). Create a new 1-dimensional array from an iterable object.

  • 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

    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.ravel — NumPy v2.5 Manual

    ... returned array will have the same type as the input array. (for example, a masked array will be returned for a masked array input). Parameters: aarray_like.

  • 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

    NumPy reference — NumPy v2.3 Manual

    NumPy reference#. Release: 2.3. Date: June 09, 2025. This reference manual details functions, modules, and objects included in NumPy, describing what they ...

  • numpy.org

    Data types — NumPy v2.5 Manual

    Array types can also be referred to by character codes, for example: >>> np.array([1, 2, 3], dtype='f') array([1., 2., 3.], dtype=float32) >>> np.array ...

  • numpy.org

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

    F2PY generated wrapper functions accept almost any Python object as a string argument, since str is applied for non-string objects.Because Python strings are immutable, an intent(inout) argument expects an array version of a string in order to have in situ changes be effective.