Suppose I have a symmetric matrix M,which is NOT positive (semi)definite, and I want to compute its k top (in absolute value) eigenvalues (and the corresponding eigenvectors). Now, one can do this using truncated SVD, which will return the absolute values of said eigenvalues, and then one has to check for the sign and find the corresponding eigenvector (both are . This is a bit of a hassle to implement, so one wonders if this is hiding in some library somewhere. A tensorflow version would be of particular interest.