docstr: ivy.Array instance method variant of ivy.cummax. This method simply
  wraps the function, and so the docstring for ivy.cummax also applies to
  this method with minimal changes.
  
  Parameters
  ----------
  self
      input array
  axis
      int, axis along which to take the cumulative maximum. Default is ``0``.
  reverse
      Whether to perform the cummax from last to first element in the selected
      axis. Default is ``False`` (from first to last element)
  dtype
      data type of the returned array. If None, if the default data type
      corresponding to the data type “kind” (integer or floating-point) of x
      has a smaller range of values than the data type of x (e.g., x has data
      type int64 and the default data type is int32, or x has data type uint64
      and the default data type is int64), the returned array must have the
      same data type as x. if x has a floating-point data type, the returned array
      must have the default floating-point data type. if x has a signed integer
      data type (e.g., int16), the returned array must have the default integer
      data type. if x has an unsigned integer data type (e.g., uint16), the
      returned array must have an unsigned integer data type having the same
      number of bits as the default integer data type (e.g., if the default
      integer data type is int32, the returned array must have a uint32 data
      type). If the data type (either specified or resolved) differs from the
      data type of x, the input array should be cast to the specified data type
      before computing the product. Default: ``None``.
  out
      optional output array, for writing the result to.
  
  Returns
  -------
  ret
      Input array with cumulatively multiplied elements along the specified axis.
  --------
  >>> x = ivy.array([1, 2, 5, 4, 3])
  >>> y = x.cummax()
  >>> print(y)
  (ivy.array([1, 2, 5, 5, 5]), ivy.array([0, 1, 2, 2, 2]))
  
  >>> x = ivy.array([[2, 3], [5, 7], [11, 13]])
  >>> y = ivy.zeros((3, 2), dtype="int32")
  >>> x.cummax(axis=1, reverse=True, out=y)
  >>> print(y)
  ivy.array([[0, 0],
         [0, 0],
         [0, 0]])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.cummax",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.cummax","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array","axis","int",",","axis","along","which","to","take","the","cumulative","maximum",".","Default","is","``","0","``",".","reverse","Whether","to","perform","the","cummax","from","last","to","first","element","in","the","selected","axis",".","Default","is","``","False","``","(","from","first","to","last","element",")","dtype","data","type","of","the","returned","array",".","If","None",",","if","the","default","data","type","corresponding","to","the","data","type","\u201c","kind","\u201d","(","integer","or","floating-point",")","of","x","has","a","smaller","range","of","values","than","the","data","type","of","x","(","e.g.",",","x","has","data","type","int64","and","the","default","data","type","is","int32",",","or","x","has","data","type","uint64","and","the","default","data","type","is","int64",")",",","the","returned","array","must","have","the","same","data","type","as","x.","if","x","has","a","floating-point","data","type",",","the","returned","array","must","have","the","default","floating-point","data","type",".","if","x","has","a","signed","integer","data","type","(","e.g.",",","int16",")",",","the","returned","array","must","have","the","default","integer","data","type",".","if","x","has","an","unsigned","integer","data","type","(","e.g.",",","uint16",")",",","the","returned","array","must","have","an","unsigned","integer","data","type","having","the","same","number","of","bits","as","the","default","integer","data","type","(","e.g.",",","if","the","default","integer","data","type","is","int32",",","the","returned","array","must","have","a","uint32","data","type",")",".","If","the","data","type","(","either","specified","or","resolved",")","differs","from","the","data","type","of","x",",","the","input","array","should","be","cast","to","the","specified","data","type","before","computing","the","product",".","Default",":","``","None","``",".","out","optional","output","array",",","for","writing","the","result","to",".","Returns","--","--","--","-","ret","Input","array","with","cumulatively","multiplied","elements","along","the","specified","axis",".","--","--","--","--",">",">",">","x","=","ivy.array","(","[","1",",","2",",","5",",","4",",","3","]",")",">",">",">","y","=","x.cummax","(",")",">",">",">","print","(","y",")","(","ivy.array","(","[","1",",","2",",","5",",","5",",","5","]",")",",","ivy.array","(","[","0",",","1",",","2",",","2",",","2","]",")",")",">",">",">","x","=","ivy.array","(","[","[","2",",","3","]",",","[","5",",","7","]",",","[","11",",","13","]","]",")",">",">",">","y","=","ivy.zeros","(","(","3",",","2",")",",","dtype=","''","int32","''",")",">",">",">","x.cummax","(","axis=1",",","reverse=True",",","out=y",")",">",">",">","print","(","y",")","ivy.array","(","[","[","0",",","0","]",",","[","0",",","0","]",",","[","0",",","0","]","]",")"]
code: def cummax(
      self: ivy.Array,
      /,
      *,
      axis: int = 0,
      exclusive: bool = False,
      reverse: bool = False,
      dtype: Optional[Union[ivy.Dtype, ivy.NativeDtype]] = None,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.cummax. This method simply
      wraps the function, and so the docstring for ivy.cummax also applies to
      this method with minimal changes.
  
      Parameters
      ----------
      self
          input array
      axis
          int, axis along which to take the cumulative maximum. Default is ``0``.
      reverse
          Whether to perform the cummax from last to first element in the selected
          axis. Default is ``False`` (from first to last element)
      dtype
          data type of the returned array. If None, if the default data type
          corresponding to the data type “kind” (integer or floating-point) of x
          has a smaller range of values than the data type of x (e.g., x has data
          type int64 and the default data type is int32, or x has data type uint64
          and the default data type is int64), the returned array must have the
          same data type as x. if x has a floating-point data type, the returned array
          must have the default floating-point data type. if x has a signed integer
          data type (e.g., int16), the returned array must have the default integer
          data type. if x has an unsigned integer data type (e.g., uint16), the
          returned array must have an unsigned integer data type having the same
          number of bits as the default integer data type (e.g., if the default
          integer data type is int32, the returned array must have a uint32 data
          type). If the data type (either specified or resolved) differs from the
          data type of x, the input array should be cast to the specified data type
          before computing the product. Default: ``None``.
      out
          optional output array, for writing the result to.
  
      Returns
      -------
      ret
          Input array with cumulatively multiplied elements along the specified axis.
      --------
      >>> x = ivy.array([1, 2, 5, 4, 3])
      >>> y = x.cummax()
      >>> print(y)
      (ivy.array([1, 2, 5, 5, 5]), ivy.array([0, 1, 2, 2, 2]))
  
      >>> x = ivy.array([[2, 3], [5, 7], [11, 13]])
      >>> y = ivy.zeros((3, 2), dtype="int32")
      >>> x.cummax(axis=1, reverse=True, out=y)
      >>> print(y)
      ivy.array([[0, 0],
             [0, 0],
             [0, 0]])
      """
      return ivy.cummax(
          self._data,
          axis=axis,
          exclusive=exclusive,
          reverse=reverse,
          dtype=dtype,
          out=out,
      )
  
file_path: ivy/ivy/data_classes/array/experimental/statistical.py
imports: import abc
  from typing import Optional, Union, Tuple, Sequence
  import ivy
label_desc: Use image node_id 12 for calling the _ArrayWithStatisticalExperimental obj's underlying member method code with example usage: obj.cummax() and returns: ivy