Created
August 13, 2020 14:35
-
-
Save gurimusan/a84df2f65d0f4d88db892b02cbf5e181 to your computer and use it in GitHub Desktop.
ガウス-ジョルダン消去法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I = eye(n); // N x Nの単位行列を定義 | |
R = rref([A I]); // 拡大行列 [A I]の消去 | |
X = R(:,n+1:n+n); // Rの右N行からAの逆行列を取り出す |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment