Skip to content
murmot

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

  • 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

    numpy.array — NumPy v2.5 Manual

    objectarray_like. An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. If object ...

  • 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.genfromtxt — NumPy v2.1 Manual

    fnamefile, str, pathlib.Path, list of str, generator. File, filename, list, or generator to read. If the filename extension is .gz or .bz2, the file is first decompressed. Note that generators must return bytes or strings. The strings in a list or produced by a generator are treated as lines.

  • numpy.org

    Using F2PY bindings in Python — NumPy v1.23 Manual

    End C end of file string.f. and wrap it using f2py -c -m mystring string.f. Python sessionIn general, array arguments for F2PY generated wrapper functions accept arbitrary sequences that can be transformed to NumPy array objects. There are two notable exceptions

  • numpy.org

    numpy.ravel — NumPy v2.5 Manual

    Return a contiguous flattened array. A 1-D array, containing the elements of ... (for example, a masked array will be returned for a masked array input).

  • numpy.org

    NumPy reference — NumPy v2.3 Manual

    Jun 9, 2025 ... This reference manual details functions, modules, and objects included in NumPy, describing what they are and what they do. For learning how to ...