  We prove a Kotake-Narasimhan type theorem in general ultradifferentiable
classes given by weight matrices. In doing so we simultaneously recover and
partially generalize the known results for classes given by weight sequences
and weight functions. In particular, we obtain a sharp Kotake-Narasimhan
theorem for Beurling classes.
