Last active
May 5, 2020 15:10
-
-
Save justinchuby/548ce0dce215c470e7ac6a6db4a77007 to your computer and use it in GitHub Desktop.
Use SVD to solve Ax=0 #linearalgebra #numpy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def solve_Ax_eq_zero(A): | |
_, _, vh = np.linalg.svd(A) | |
x = vh.T[:, -1] | |
return x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment