MatGetMaxEigenvalue

Computes approximate maximum eigenvalue lambda and its associated eigenvector v (i.e. A*v = lambda*v) with basic power method.

Synopsis

PetscErrorCode MatGetMaxEigenvalue(Mat A, Vec v, PetscScalar *lambda_out, PetscReal tol, PetscInt maxits)
Collective on Mat

Input Parameters

A - the matrix
v - vector of initial guess (optional)
tol - convergence tolerance
maxits - maximum number of iterations before divergence error is thrown

Output Parameters

lambda - approximate maximum eigenvalue of A (optional)
v - corresponding eigenvector (optional)

Level:intermediate
Location:
src/mat/interface/fllopmatutils.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages