Template Function opensn::PowerIteration

Function Documentation

template<typename TYPE>
double opensn::PowerIteration(const DenseMatrix<TYPE> &A, Vector<TYPE> &e_vec, int max_it = 2000, double tol = 1.0e-13)

Performs power iteration to obtain the fundamental eigen mode. The eigen-value of the fundamental mode is return whilst the eigen-vector is return via reference.