https://medium.com/@monocosmo77/working-with-arnoldi-type-algorithms-part3-machine-learning-2024-3b6536c717a2