Given the matrix A, computes the eigenvector v associated to the eivenvalue of maximum modulus lambda using the power method.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real, | intent(in) | :: | A(:,:) |
Symmetric matrix |
||
| real, | intent(out) | :: | v(size(A,1)) |
Eigenvector |
||
| real, | intent(out) | :: | lambda |
Eigenvalue |
||
| integer, | intent(in) | :: | maxIter |
Maximum number of iterations |
||
| real, | intent(in) | :: | err_v |
Precision for the stop criterion |
||
| real, | intent(in) | :: | v_0(size(A,1)) |
Initial vector for the iteration |