docstr: ivy.Container instance method variant of ivy.diagflat. This method
  simply wraps the function, and so the docstring for ivy.diagflat also
  applies to this method with minimal changes.
  
  Examples
  --------
  >>> x = ivy.array([[[1., 0.],
                      [0., 1.]],
                      [[2., 0.],
                      [0., 2.]]])
  >>> ivy.matrix_exp(x)
  ivy.array([[[2.7183, 1.0000],
              [1.0000, 2.7183]],
              [[7.3891, 1.0000],
              [1.0000, 7.3891]]])
docstr_tok: ["ivy.Container","instance","method","variant","of","ivy.diagflat",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.diagflat","also","applies","to","this","method","with","minimal","changes",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","[","[","1.",",","0",".","]",",","[","0.",",","1",".","]","]",",","[","[","2.",",","0",".","]",",","[","0.",",","2",".","]","]","]",")",">",">",">","ivy.matrix_exp","(","x",")","ivy.array","(","[","[","[","2.7183",",","1.0000","]",",","[","1.0000",",","2.7183","]","]",",","[","[","7.3891",",","1.0000","]",",","[","1.0000",",","7.3891","]","]","]",")"]
code: def matrix_exp(
      self: ivy.Container,
      /,
      *,
      key_chains: Optional[
          Union[List[str], Dict[str, str], ivy.Container]
      ] = None,
      to_apply: Union[bool, ivy.Container] = True,
      out: Optional[ivy.Container] = None,
  ) -> ivy.Container:
      """ivy.Container instance method variant of ivy.diagflat. This method
      simply wraps the function, and so the docstring for ivy.diagflat also
      applies to this method with minimal changes.
  
      Examples
      --------
      >>> x = ivy.array([[[1., 0.],
                          [0., 1.]],
                          [[2., 0.],
                          [0., 2.]]])
      >>> ivy.matrix_exp(x)
      ivy.array([[[2.7183, 1.0000],
                  [1.0000, 2.7183]],
                  [[7.3891, 1.0000],
                  [1.0000, 7.3891]]])
      """
      return self.static_matrix_exp(
          self,
          key_chains=key_chains,
          to_apply=to_apply,
          out=out,
      )
  
imports: from typing import Union, Optional, List, Dict, Tuple, Sequence, Literal
  from ivy.data_classes.container.base import ContainerBase
  import ivy
label_desc: Use image node_id 8 for calling the _ContainerWithLinearAlgebraExperimental obj's underlying member method code with example usage: obj.matrix_exp() and returns: self