docstr: ivy.Container instance method variant of ivy.argmax. This method
  simply wraps the function, and so the docstring for ivy.argmax also
  applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array or container. Should have a numeric data type.
  axis
      axis along which to search. If None, the function must return the index of
      the maximum value of the flattened array. Default: ``None``.
  keepdims
      If this is set to True, the axes which are reduced are left in the result as
      dimensions with size one. With this option, the result will broadcast
      correctly against the array.
  dtype
      Optional output dtype of the container.
  out
      If provided, the result will be inserted into this array. It should be of
      the appropriate shape and dtype.
  
  Returns
  -------
  ret
      a container containing the indices of the maximum values across the
      specified axis.
  
  Examples
  --------
  >>> a = ivy.array([[4., 0., -1.], [2., -3., 6]])
  >>> b = ivy.array([[1., 2., 3.], [1., 1., 1.]])
  >>> x = ivy.Container(a=a, b=b)
  >>> y = x.argmax(axis=1, keepdims=True)
  >>> print(y)
  {
      a: ivy.array([[0],
                    [2]]),
      b: ivy.array([[2],
                    [0]])
  }
docstr_tok: ["ivy.Container","instance","method","variant","of","ivy.argmax",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.argmax","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array","or","container",".","Should","have","a","numeric","data","type",".","axis","axis","along","which","to","search",".","If","None",",","the","function","must","return","the","index","of","the","maximum","value","of","the","flattened","array",".","Default",":","``","None","``",".","keepdims","If","this","is","set","to","True",",","the","axes","which","are","reduced","are","left","in","the","result","as","dimensions","with","size","one",".","With","this","option",",","the","result","will","broadcast","correctly","against","the","array",".","dtype","Optional","output","dtype","of","the","container",".","out","If","provided",",","the","result","will","be","inserted","into","this","array",".","It","should","be","of","the","appropriate","shape","and","dtype",".","Returns","--","--","--","-","ret","a","container","containing","the","indices","of","the","maximum","values","across","the","specified","axis",".","Examples","--","--","--","--",">",">",">","a","=","ivy.array","(","[","[","4.",",","0.",",","-1",".","]",",","[","2.",",","-3.",",","6","]","]",")",">",">",">","b","=","ivy.array","(","[","[","1.",",","2.",",","3",".","]",",","[","1.",",","1.",",","1",".","]","]",")",">",">",">","x","=","ivy.Container","(","a=a",",","b=b",")",">",">",">","y","=","x.argmax","(","axis=1",",","keepdims=True",")",">",">",">","print","(","y",")","{","a",":","ivy.array","(","[","[","0","]",",","[","2","]","]",")",",","b",":","ivy.array","(","[","[","2","]",",","[","0","]","]",")","}"]
code: def argmax(
      self: ivy.Container,
      /,
      *,
      axis: Optional[Union[int, ivy.Container]] = None,
      keepdims: Union[bool, ivy.Container] = False,
      dtype: Optional[
          Union[ivy.Dtype, ivy.NativeDtype, ivy.Container]
      ] = None,
      select_last_index: Union[bool, ivy.Container] = False,
      out: Optional[ivy.Container] = None,
  ) -> ivy.Container:
      """ivy.Container instance method variant of ivy.argmax. This method
      simply wraps the function, and so the docstring for ivy.argmax also
      applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array or container. Should have a numeric data type.
      axis
          axis along which to search. If None, the function must return the index of
          the maximum value of the flattened array. Default: ``None``.
      keepdims
          If this is set to True, the axes which are reduced are left in the result as
          dimensions with size one. With this option, the result will broadcast
          correctly against the array.
      dtype
          Optional output dtype of the container.
      out
          If provided, the result will be inserted into this array. It should be of
          the appropriate shape and dtype.
  
      Returns
      -------
      ret
          a container containing the indices of the maximum values across the
          specified axis.
  
      Examples
      --------
      >>> a = ivy.array([[4., 0., -1.], [2., -3., 6]])
      >>> b = ivy.array([[1., 2., 3.], [1., 1., 1.]])
      >>> x = ivy.Container(a=a, b=b)
      >>> y = x.argmax(axis=1, keepdims=True)
      >>> print(y)
      {
          a: ivy.array([[0],
                        [2]]),
          b: ivy.array([[2],
                        [0]])
      }
      """
      return self._static_argmax(
          self,
          axis=axis,
          keepdims=keepdims,
          dtype=dtype,
          select_last_index=select_last_index,
          out=out,
      )
  
file_path: ivy/ivy/data_classes/container/searching.py
imports: from numbers import Number
  from typing import Optional, Union, List, Dict
  import ivy
  from ivy.data_classes.container.base import ContainerBase
label_desc: Use image node_id 2 for calling the _ContainerWithSearching obj's underlying member method code with example usage: obj.argmax() and returns: self