docstr: ivy.Array instance method variant of ivy.clip. This method simply
  wraps the function, and so the docstring for ivy.clip also applies to
  this method with minimal changes.
  
  Parameters
  ----------
  self
      Input array containing elements to clip.
  x_min
      Minimum value.
  x_max
      Maximum value.
  out
      optional output array, for writing the result to. It must have a shape that
      the inputs broadcast to.
  
  Returns
  -------
  ret
      An array with the elements of self, but where values < x_min are replaced
      with x_min, and those > x_max with x_max.
  
  Examples
  --------
  >>> x = ivy.array([0., 1., 2., 3., 4., 5., 6., 7., 8., 9.])
  >>> y = x.clip(1., 5.)
  >>> print(y)
  ivy.array([1., 1., 2., 3., 4., 5., 5., 5., 5., 5.])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.clip",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.clip","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","Input","array","containing","elements","to","clip",".","x_min","Minimum","value",".","x_max","Maximum","value",".","out","optional","output","array",",","for","writing","the","result","to",".","It","must","have","a","shape","that","the","inputs","broadcast","to",".","Returns","--","--","--","-","ret","An","array","with","the","elements","of","self",",","but","where","values","<","x_min","are","replaced","with","x_min",",","and","those",">","x_max","with","x_max",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","0.",",","1.",",","2.",",","3.",",","4.",",","5.",",","6.",",","7.",",","8.",",","9",".","]",")",">",">",">","y","=","x.clip","(","1.",",","5",".",")",">",">",">","print","(","y",")","ivy.array","(","[","1.",",","1.",",","2.",",","3.",",","4.",",","5.",",","5.",",","5.",",","5.",",","5",".","]",")"]
code: def clip(
      self: ivy.Array,
      /,
      x_min: Optional[Union[Number, ivy.Array, ivy.NativeArray]] = None,
      x_max: Optional[Union[Number, ivy.Array, ivy.NativeArray]] = None,
      *,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.clip. This method simply
      wraps the function, and so the docstring for ivy.clip also applies to
      this method with minimal changes.
  
      Parameters
      ----------
      self
          Input array containing elements to clip.
      x_min
          Minimum value.
      x_max
          Maximum value.
      out
          optional output array, for writing the result to. It must have a shape that
          the inputs broadcast to.
  
      Returns
      -------
      ret
          An array with the elements of self, but where values < x_min are replaced
          with x_min, and those > x_max with x_max.
  
      Examples
      --------
      >>> x = ivy.array([0., 1., 2., 3., 4., 5., 6., 7., 8., 9.])
      >>> y = x.clip(1., 5.)
      >>> print(y)
      ivy.array([1., 1., 2., 3., 4., 5., 5., 5., 5., 5.])
      """
      return ivy.clip(self._data, x_min, x_max, out=out)
  
imports: import abc
  from typing import Optional, Union, Tuple, List, Iterable, Sequence
  from numbers import Number
  import ivy
  from ivy import handle_view
label_desc: Use image node_id 10 for calling the _ArrayWithManipulation obj's underlying member method code with example usage: obj.clip(x_min, x_max) and returns: ivy