EPSSetDimensions

Sets the number of eigenvalues to compute and the dimension of the subspace.

Synopsis

#include "slepceps.h" 
int EPSSetDimensions(EPS eps,int nev,int ncv)
Collective on EPS

Input Parameters

eps - the eigensolver context
nev - number of eigenvalues to compute
ncv - the maximum dimension of the subspace to be used by the solver

Options Database Keys

-eps_nev <nev> - Sets nev
-eps_ncv <ncv> - Sets ncv

Notes

Use PETSC_DEFAULT to retain the previous value of any parameter.

Use PETSC_DECIDE for ncv to assign a reasonably good value, which is dependent of the solution method.

See Also

EPSGetDimensions()

Level:intermediate
Index of all EPS routines
Table of Contents for all manual pages
Index of all manual pages