Skip to content
murmot

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

  • numpy.org

    Array API — NumPy v2.6.dev0 Manual

    This function returns a (C-style) contiguous and behaved function array from any nested sequence or array interface exporting object, op, of (non-flexible) type given by the enumerated typenum, of minimum depth min_depth, and of maximum depth max_depth.

  • numpy.org

    numpy.mean — NumPy v2.2 Manual

    Returns: mndarray, see dtype parameter above. If out=None, returns a new array containing the mean values, otherwise a reference to the output array is returned ...

  • numpy.org

    How to extend NumPy — NumPy v1.15 Manual

    The following example shows how you might write a wrapper that accepts two input arguments (that will be converted to an array) and an output argument (that must be an array). The function returns None and updates the output array.

  • numpy.org

    Data types — NumPy v2.5 Manual

    Array types and conversions between types#. NumPy supports a much greater variety of numerical types than Python does. This section shows which are ...

  • numpy.org

    numpy.meshgrid — NumPy v2.7.dev0 Manual

    ... output. See Notes for more details. sparsebool, optional. If True the shape of the returned coordinate array for dimension i is reduced from (N1, ..., Ni, ...

  • numpy.org

    Using F2PY bindings in Python — NumPy v1.15 Manual

    Exceptions are NumPy arrays that must have type code 'c' or '1' when used as string arguments. A string can have arbitrary length when using it as a string argument to F2PY generated wrapper function. If the length is greater than expected, the string is truncated.

  • numpy.org

    numpy.maximum — NumPy v2.2 Manual

    If not provided or None, a freshly-allocated array is returned. A tuple (possible only as a keyword argument) must have length equal to the number of outputs.

  • numpy.org

    Using F2PY bindings in Python — NumPy v2.3 Manual

    The Fortran code expects that the function func has been defined externally. In order to use a Python function for func, it must have an attribute intent(callback) and it must be specified before the external statement. Finally, build an extension module using f2py -c -m foo calculate.f.