Skip to content
murmot

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

  • numpy.org

    numpy.array — NumPy v2.5 Manual

    An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. If object is a scalar, a 0- ...

  • numpy.org

    Using F2PY bindings in Python — NumPy v2.3 Manual

    F2PY generated wrapper functions accept almost any Python object as a string argument, since str is applied for non-string objects.In general, array arguments for F2PY generated wrapper functions accept arbitrary sequences that can be transformed to NumPy array objects.

  • numpy.org

    String functionality — NumPy v2.5 Manual

    String functionality # The numpy.strings module provides a set of universal functions operating on arrays of type numpy.str_ or numpy.bytes_. For example, Try it in your browser!

  • numpy.org

    Array API — NumPy v2.6.dev0 Manual

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

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

    numpy.array2string — NumPy v2.5 Manual

    This is a very flexible function; array_repr and array_str are using array2string internally so keywords with the same name should work identically in all three functions.

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

    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. The array scalars allow easy manipulation of also more complicated arrangements of data.

  • 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

    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

    numpy.fromfunction — NumPy v2.5 Manual

    If an array-like passed in as like supports the __array_function__ protocol, the result will be defined by it. In this case, it ensures the creation of an array object compatible with that passed in via this argument.