class_docstr: Create an immutable version of a matrix.
  
  Examples
  ========
  
  >>> from sympy import eye, ImmutableMatrix
  >>> ImmutableMatrix(eye(3))
  Matrix([
  [1, 0, 0],
  [0, 1, 0],
  [0, 0, 1]])
  >>> _[0, 0] = 42
  Traceback (most recent call last):
  ...
  TypeError: Cannot set values of ImmutableDenseMatrix
class_docstr_tok: ["Create","an","immutable","version","of","a","matrix",".","Examples","========",">",">",">","from","sympy","import","eye",",","ImmutableMatrix",">",">",">","ImmutableMatrix","(","eye","(","3",")",")","Matrix","(","[","[","1",",","0",",","0","]",",","[","0",",","1",",","0","]",",","[","0",",","0",",","1","]","]",")",">",">",">","_","[","0",",","0","]","=","42","Traceback","(","most","recent","call","last",")",":","...","TypeError",":","Can","not","set","values","of","ImmutableDenseMatrix"]
code: def _new(cls, *args, **kwargs):
      if len(args) == 1 and isinstance(args[0], ImmutableDenseMatrix):
          return args[0]
      if kwargs.get("copy", True) is False:
          if len(args) != 3:
              raise TypeError(
                  "'copy=False' requires a matrix be initialized as rows,cols,[list]"
              )
          rows, cols, flat_list = args
      else:
          rows, cols, flat_list = cls._handle_creation_inputs(
              *args, **kwargs
          )
          flat_list = list(flat_list)  # create a shallow copy
  
      rep = cls._flat_list_to_DomainMatrix(rows, cols, flat_list)
  
      return cls._fromrep(rep)
  
imports: from mpmath.matrices.matrices import _matrix
  from sympy.core import Basic, Dict, Tuple
  from sympy.core.numbers import Integer
  from sympy.core.cache import cacheit
  from sympy.core.sympify import _sympy_converter, _sympify
  from sympy.matrices.dense import DenseMatrix
  from sympy.matrices.expressions import MatrixExpr
  from sympy.matrices.matrixbase import MatrixBase
  from sympy.matrices.repmatrix import RepMatrix
  from sympy.matrices.sparse import SparseRepMatrix
  from sympy.multipledispatch import dispatch
label_desc: Use image node_id 1 for calling the ImmutableDenseMatrix obj's underlying member method code with example usage: obj._new(cls) and returns: cls, args