#include "slepcds.h" PetscErrorCode DSTruncate(DS ds,PetscInt n,PetscBool trim)Logically Collective
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.