slepc-3.17.2 2022-08-09
Report Typos and Errors

# SVDTRLanczosSetLocking

Choose between locking and non-locking variants of the thick-restart Lanczos method.

### Synopsis

    #include "slepcsvd.h"
    PetscErrorCode SVDTRLanczosSetLocking(SVD svd,PetscBool lock)

Logically Collective on svd

### Input Parameters

| svd | - the singular value solver
| lock | - true if the locking variant must be selected

### Options Database Key

| -svd_trlanczos_locking | - Sets the locking flag

### Notes

The default is to lock converged singular triplets when the method restarts. This behaviour can be changed so that all directions are kept in the working subspace even if already converged to working accuracy (the non-locking variant).

### See Also

SVDTRLanczosGetLocking()

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