Task 03
Task 03ΒΆ
deadline: 14/03/2021 23:59 CET
[0.75 points]: Write a function that calculates the inverse of a given square matrix using the Gauss-Jordan elimination algorithm (with pivoting). You do not have to check, whether the matrix is invertible.
[0.25 points]: Calculate the inverse of the following matrix,
\[\begin{split}
\mathbb{A} =
\begin{pmatrix}
3 & 0 & 2 \\
2 & 0 & -2 \\
0 & 1 & 1
\end{pmatrix}.
\end{split}\]
You may use the function scipy.linalg.inv
to evaluate the correctness of your implementation.
# add your code here