The calculation of the eigenvalues of a matrix leads to an endless loop.
The code and the specific matrix are available in this playground:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=bf7b783d7d993ba5ee18292ef2a62778
The endless loop happens only when the type of the elements is f32, calculation is performed correctly if the type is changed to f64, so it seems a problem of over/underflow.
The calculation of the eigenvalues of a matrix leads to an endless loop.
The code and the specific matrix are available in this playground:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=bf7b783d7d993ba5ee18292ef2a62778
The endless loop happens only when the type of the elements is
f32, calculation is performed correctly if the type is changed tof64, so it seems a problem of over/underflow.