> ``` > w = eigvals(a) > if w.imag == 0: # this is what NumPy used to do > w = w.real > ```
if np.all(w.imag == 0): surely? I think given the minor adjustment, it's worth including actual code rather than pseudocode in the release note? Juan. _______________________________________________ NumPy-Discussion mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/numpy-discussion.python.org Member address: [email protected]
