行列方程式 matrix_eqn.py を読んで,アルゴリズム・実装・パフォーマンスについて改善点を探る. Refactor matrix equations (Ricatti, Lyapunov, Sylvester)