https://www.maplesoft.com/applications/view.aspx?SID=128444 . Can be expressed as an Eigenvalue problem
If the left matrix is symmetric and the right matrix is Positive definite, then you can solve it using Simultaneous diagonalization (see here for e.g.)