matrix3 diagonalizesymmetric(matrix3 symmat, vector &diag)
Returns the orthogonal matrix which, combined with the diagonal matrix implicit in the second argument, will form the original symmetric matrix.
This can be useful for analyzing the result of summing a series of outerproduct updates.
The symmetric matrix to diagonalize.
The diagonal elements of the diagonal matrix.