I've a matrix in python:
x = np.array([[-1, 2, 3],
[4, 5, 6],
[7, 8, 9],
[50, 23, -30],
[-23, 23, -40],
[-233, 0, 234]], dtype=np.float64)
but when I look at the eigenvalues of this matrix multiplied by its transpose, I get some that are negative:
np.linalg.eigvals(x@(x.T)) >= 0
gives in fact:
array([ True, False, True, True, True, True])
Do you have an explanation for this problem?