docstr: ivy.Array instance method variant of ivy.clip_vector_norm. This
  method simply wraps the function, and so the docstring for
  ivy.clip_vector_norm also applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array
  max_norm
      float, the maximum value of the array norm.
  p
      optional float, the p-value for computing the p-norm.
      Default is 2.
  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 vector norm downscaled to the max norm if needed.
  
  Examples
  --------
  With :class:`ivy.Array` instance method:
  
  >>> x = ivy.array([0., 1., 2.])
  >>> y = x.clip_vector_norm(2.0)
  >>> print(y)
  ivy.array([0., 0.894, 1.79])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.clip_vector_norm",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.clip_vector_norm","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array","max_norm","float",",","the","maximum","value","of","the","array","norm",".","p","optional","float",",","the","p-value","for","computing","the","p-norm",".","Default","is","2.","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","vector","norm","downscaled","to","the","max","norm","if","needed",".","Examples","--","--","--","--","With",":","class",":","`","ivy.Array","`","instance","method",":",">",">",">","x","=","ivy.array","(","[","0.",",","1.",",","2",".","]",")",">",">",">","y","=","x.clip_vector_norm","(","2.0",")",">",">",">","print","(","y",")","ivy.array","(","[","0.",",","0.894",",","1.79","]",")"]
code: def clip_vector_norm(
      self: ivy.Array,
      max_norm: float,
      /,
      *,
      p: float = 2.0,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.clip_vector_norm. This
      method simply wraps the function, and so the docstring for
      ivy.clip_vector_norm also applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array
      max_norm
          float, the maximum value of the array norm.
      p
          optional float, the p-value for computing the p-norm.
          Default is 2.
      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 vector norm downscaled to the max norm if needed.
  
      Examples
      --------
      With :class:`ivy.Array` instance method:
  
      >>> x = ivy.array([0., 1., 2.])
      >>> y = x.clip_vector_norm(2.0)
      >>> print(y)
      ivy.array([0., 0.894, 1.79])
      """
      return ivy.clip_vector_norm(self, max_norm, p=p, out=out)
  
imports: import abc
  import numpy
  from numbers import Number
  from typing import Any, Iterable, Union, Optional, Dict, Callable, List, Tuple
  import ivy
label_desc: Use image node_id 19 for calling the _ArrayWithGeneral obj's underlying member method code with example usage: obj.clip_vector_norm() and returns: ivy