#include "slepcds.h" PetscErrorCode DSTruncate(DS ds,PetscInt n,PetscBool trim)Logically Collective on ds
|ds||- the direct solver context|
|n||- the new size|
|trim||- a flag to indicate if the factorization must be trimmed|
If the flag trim is turned on, it resets the locked and intermediate dimensions to zero, see DSSetDimensions(), and sets the state to RAW. It also cleans the extra row if being used.
The typical usage of trim=true is to truncate the Schur decomposition at the end of a Krylov iteration. In this case, the state must be changed to RAW so that DSVectors() computes eigenvectors from scratch.
Index of all DS routines
Table of Contents for all manual pages
Index of all manual pages