Inverse and Transpose Matrix in Numpy
- Numpy Import
- Initialize Matrix A
- Transpose A
- Inverse A
- What is A^(-1)*A?
- Become Identity Matrix is it? can see by below
- Now what happens when we multiply A * A_invA = A itself ?
import numpy as np
A_np = np.array([[1,2,0],[0,5,6],[7,0,9]])
A_np
A_trans = A_np.transpose()
A_trans
A_inv = np.linalg.inv(A_np)
A_inv
A_invA = np.linalg.inv(A_np) @ A_np
A_invA
AI = A_np @ A_invA
AI