Solves \(Ax = \lambda B x\), \(ABx = \lambda x\), or \(BAx = \lambda x\) where \(A, B\) are symmetric/Hermitian and \(B\) is positive definite.