Skip to content
murmot

Results for “function return python array code c# site:numpy.org example”

  • numpy.org

    Beyond the Basics — NumPy v1.23 Manual

    Several array-creation functions of the ndarray allow specification of a particular sub-type to be created. This allows sub-types to be handled seamlessly in many routines.

  • 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.Returns NPY_TRUE if typenum represents a valid type-number (builtin or user-defined or character code). Otherwise, this function returns NPY_FALSE.

  • numpy.org

    Beyond the Basics — NumPy v1.25 Manual

    If the __array_finalize__ attribute is not None nor a PyCapsule, then it must be a Python method that takes the parent array as an argument (which could be None if there is no parent), and returns nothing. Errors in this method will be caught and handled.

  • numpy.org

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