I'm trying to sample points on the surface of a 9 dimensional ellipsoid represented by
$$x^T Mx = 1,\hspace{2cm}x\in \mathcal{R}^9, M\in\mathcal{R}^{9x9}$$
and $M$ is positive symmetric definite.
If it was in the form:
$$(\frac{x_1}{r_1})^2 + (\frac{x_2}{r_2})^2 + ... + (\frac{x_9}{r_9})^2 = 1$$
I would then just sample points randomly, and then scale them as described here: How to generate points uniformly distributed on the surface of an ellipsoid?
Thus, my question is how would I convert the ellipse from matrix form to the equation form in 9 dimensions? I saw a post on how to do it in 3 dimensions related to Euler angles here: How to generate points uniformly distributed on the surface of an ellipsoid? but I have no idea how to extend that to 9 dimensions.