Skip to content
murmot

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

  • numpy.org

    Using NumPy C-API

    Example NumPy ufunc with multiple arguments/return values · Example NumPy ufunc with structured array dtype arguments ... Registering a casting function ...

  • numpy.org

    Array creation routines — NumPy v2.5 Manual

    Return an array of ones with the same shape and type as a given array.fromfunction(function, shape, *[, dtype, like]). 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

    Using NumPy C-API

    Calling the function · ndpointer ... Example NumPy ufunc with multiple arguments/return values · Example NumPy ufunc with structured array dtype arguments.

  • numpy.org

    Array API — NumPy v1.17 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.array2string — NumPy v2.2 Manual

    Return a string representation of an array.If not None, the keys should indicate the type(s) that the respective formatting function applies to. Callables should return a string. Types that are not specified (by their corresponding keys) are handled by the default formatters.

  • numpy.org

    Array API — NumPy v2.2 Manual

    This function returns a well-behaved C-style contiguous array from any nested sequence or array-interface exporting object.Place right before code that does not need the Python interpreter (no Python C-API calls). This macro saves the Python state and releases the GIL.