Skip to content

Instantly share code, notes, and snippets.

@gurimusan
Created August 13, 2020 14:35
Show Gist options
  • Save gurimusan/a84df2f65d0f4d88db892b02cbf5e181 to your computer and use it in GitHub Desktop.
Save gurimusan/a84df2f65d0f4d88db892b02cbf5e181 to your computer and use it in GitHub Desktop.
ガウス-ジョルダン消去法
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