Solving a linear system Ax = b
Given a system of linear equations represented as a matrix equationAx = b, use linalg.solve to find x.
For larger systems, linalg.solve is numerically stable and much faster than computing inv(A) @ b.
Eigenvalue decomposition
Decompose a square matrix into its eigenvalues and eigenvectors withlinalg.eig.
For symmetric matrices, use linalg.eigh which is faster and guarantees real eigenvalues:
Singular Value Decomposition (SVD)
SVD factors any matrixA into U * S * V^T. This is the foundation for dimensionality reduction, pseudoinverse computation, and low-rank approximation.