Useful python command for linear algebra - Numerical-Analysis/course GitHub Wiki
- If A is a numpy array, then A.T becomes the transpose of A, which is a lot simpler than using np.transpose(A)
- If you want to multiply more than 2 matrices, use np.linalg.multi_dot([A,B,C]) or A.dot(B).dot(C)
- To create a diagonal matrix with an array with singular values, which we obtain from u,s,v = np.linalg.svd(),use np.diag(s).