docstr: Applies simplify to the elements of a matrix in place.
  
  This is a shortcut for M.applyfunc(lambda x: simplify(x, ratio, measure))
  
  See Also
  ========
  
  sympy.simplify.simplify.simplify
docstr_tok: ["Applies","simplify","to","the","elements","of","a","matrix","in","place",".","This","is","a","shortcut","for","M.applyfunc","(","lambda","x",":","simplify","(","x",",","ratio",",","measure",")",")","See","Also","========","sympy.simplify.simplify.simplify"]
code: def simplify(self, **kwargs):
      """Applies simplify to the elements of a matrix in place.
  
      This is a shortcut for M.applyfunc(lambda x: simplify(x, ratio, measure))
  
      See Also
      ========
  
      sympy.simplify.simplify.simplify
      """
      from sympy.simplify.simplify import simplify as _simplify
  
      for (i, j), element in self.todok().items():
          self[i, j] = _simplify(element, **kwargs)
  
imports: import random
  from sympy.core.basic import Basic
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol
  from sympy.core.sympify import sympify
  from sympy.functions.elementary.trigonometric import cos, sin
  from sympy.utilities.decorator import doctest_depends_on
  from sympy.utilities.exceptions import sympy_deprecation_warning
  from sympy.utilities.iterables import is_sequence
  from .exceptions import ShapeError
  from .decompositions import _cholesky, _LDLdecomposition
  from .matrixbase import MatrixBase
  from .repmatrix import MutableRepMatrix, RepMatrix
  from .solvers import _lower_triangular_solve, _upper_triangular_solve
label_desc: Use image node_id 1 for calling the MutableDenseMatrix obj's underlying member method code with example usage: obj.simplify() without return types