In this post it states that when we have two symmetric and positive definite matrices, say $A$ and $B$, where $B$ is a diagonal matrix, the spectral decomposition of $AB$ can be easily computed if the spectral decomposition of $A$ is known.
What's the relationship used here to support this claim?