pg_utils.numerics.linalg.eig_generalized

pg_utils.numerics.linalg.eig_generalized(M: ~numpy.ndarray, K: ~numpy.ndarray, diag: bool = False, solver: ~pg_utils.numerics.linalg.LinSysSolver = <pg_utils.numerics.linalg.StdLinSolver object>, **kwargs) Tuple[ndarray, ndarray][source]

Solve generalized eigenvalue problem. This is the interface for solving generalized eigenproblem:

\[\mathbf{K} \mathbf{x} = \lambda \mathbf{M} \mathbf{x}\]
Parameters:
  • M (np.ndarray) – M (mass) matrix

  • K (np.ndarray) – K (stiffness) matrix

  • diag (bool) – whether to invert M as a diagonal matrix

  • solver (LinSysSolver) – solver to be used

Returns:

eigenvalues, eigenvectors