8 std::vector<std::vector<double>> squareMat = {{2.0, -1.0, 0.0},
15 std::cout <<
"Eigenvalue square: " << eigenvalueSquare << std::endl;
Class for computing eigenvalues of a matrix.
double power_iter(int max_iters=100, double tolerance=1e-10) const
Perform the power iteration method to find the dominant eigenvalue.