parameters: (x, out=None, **kwargs)
return_statement: return _pure_unary_func_helper(x, _api_internal.sign, _np.sign, out=out, **kwargs)
docstring: r"""
      Returns an element-wise indication of the sign of a number.
      The `sign` function returns ``-1 if x < 0, 0 if x==0, 1 if x > 0``. Only supports real number.
  
      Parameters
      ----------
      x : ndarray or a scalar
          Input values.
      out : ndarray or None, optional
          A location into which the result is stored.
          If provided, it must have the same shape and dtype as input ndarray.
          If not provided or `None`, a freshly-allocated array is returned.
  
      Returns
      -------
      y : ndarray
          The sign of `x`.
          This is a scalar if `x` is a scalar.
  
      Note
      -------
      - Only supports real number as input elements.
      - Input type does not support Python native iterables(list, tuple, ...).
      - ``out`` param: cannot perform auto broadcasting. ``out`` ndarray's shape must be the same as the expected output.
      - ``out`` param: cannot perform auto type cast. ``out`` ndarray's dtype must be the same as the expected output.
      - ``out`` param does not support scalar input case.
  
      Examples
      --------
      >>> a = np.array([-5., 4.5])
      >>> np.sign(a)
      array([-1.,  1.])
      >>> # Use scalars as inputs:
      >>> np.sign(4.0)
      1.0
      >>> np.sign(0)
      0
      >>> # Use ``out`` parameter:
      >>> b = np.zeros((2, ))
      >>> np.sign(a, out=b)
      array([-1.,  1.])
      >>> b
      array([-1.,  1.])
docstring_summary: r"""
      Returns an element-wise indication of the sign of a number.
      The `sign` function returns ``-1 if x < 0, 0 if x==0, 1 if x > 0``. Only supports real number.
docstring_tokens: r Returns an element - wise indication of the sign of a number . The sign function returns - 1 if x < 0 0 if x == 0 1 if x > 0 . Only supports real number .
function: def sign(x, out=None, **kwargs):
      r"""
      Returns an element-wise indication of the sign of a number.
      The `sign` function returns ``-1 if x < 0, 0 if x==0, 1 if x > 0``. Only supports real number.
  
      Parameters
      ----------
      x : ndarray or a scalar
          Input values.
      out : ndarray or None, optional
          A location into which the result is stored.
          If provided, it must have the same shape and dtype as input ndarray.
          If not provided or `None`, a freshly-allocated array is returned.
  
      Returns
      -------
      y : ndarray
          The sign of `x`.
          This is a scalar if `x` is a scalar.
  
      Note
      -------
      - Only supports real number as input elements.
      - Input type does not support Python native iterables(list, tuple, ...).
      - ``out`` param: cannot perform auto broadcasting. ``out`` ndarray's shape must be the same as the expected output.
      - ``out`` param: cannot perform auto type cast. ``out`` ndarray's dtype must be the same as the expected output.
      - ``out`` param does not support scalar input case.
  
      Examples
      --------
      >>> a = np.array([-5., 4.5])
      >>> np.sign(a)
      array([-1.,  1.])
      >>> # Use scalars as inputs:
      >>> np.sign(4.0)
      1.0
      >>> np.sign(0)
      0
      >>> # Use ``out`` parameter:
      >>> b = np.zeros((2, ))
      >>> np.sign(a, out=b)
      array([-1.,  1.])
      >>> b
      array([-1.,  1.])
      """
      return _pure_unary_func_helper(x, _api_internal.sign, _np.sign, out=out, **kwargs)
function_tokens: def sign ( x , out = None , * * kwargs ) : return _pure_unary_func_helper ( x , _api_internal . sign , _np . sign , out = out , * * kwargs )