Skip to content
murmot

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

  • numpy.org

    Array API — NumPy v2.6.dev0 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.

  • 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

    Array creation routines — NumPy v2.5 Manual

    Return an array copy of the given object.Create a NumPy array from an object implementing the __dlpack__ protocol. fromfile(file[, dtype, count, sep, offset, like]). Construct an array from data in a text or binary file. fromfunction(function, shape, *[, dtype, like]).

  • numpy.org

    Array objects — NumPy v2.2 Manual

    Universal functions (ufunc). Routines and objects by topic. Typing (numpy.typing). Packaging (numpy.distutils).An item extracted from an array, e.g., by indexing, is represented by a Python object whose type is one of the array scalar types built in NumPy.

  • numpy.org

    Array API — NumPy v2.2 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.

  • numpy.org

    Array API — NumPy v1.13 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.