SVDSetDimensions

Sets the number of singular values to compute and the dimension of the subspace.

Synopsis

#include "slepcsvd.h" 
PetscErrorCode SVDSetDimensions(SVD svd,int nsv,int ncv)
Collective on SVD

Input Parameters

svd - the singular value solver context
nsv - number of singular values to compute
ncv - the maximum dimension of the subspace to be used by the solver

Options Database Keys

-svd_nsv <nsv> - Sets the number of singular values
-svd_ncv <ncv> - Sets the dimension of the subspace

Notes

Use PETSC_IGNORE 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 and the number of singular values required.

See Also

SVDGetDimensions()

Location: src/svd/interface/svdopts.c
Index of all SVD routines
Table of Contents for all manual pages
Index of all manual pages