Since | 17.0 |

```
matrix3 diagonalizesymmetric(matrix3 symmat, vector &diag)
```

Diagonalize a symmetric matrix .

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.

`symmat`

The symmetric matrix to diagonalize.

`diag`

The diagonal elements of the diagonal matrix.

matrix |