Source: https://myweb.ntut.edu.tw/~shyang/Lin_Algebra/Proj4_Eigen.pdf