EPSSetDimensions

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

Synopsis

#include "slepceps.h" 
PetscErrorCode 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 the number of eigenvalues
-eps_ncv <ncv> - Sets the dimension of the subspace

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 on the solution method.

See Also

EPSGetDimensions()

Location: src/eps/interface/opts.c
Index of all EPS routines
Table of Contents for all manual pages
Index of all manual pages