slepc-3.22.2 2024-12-02
Report Typos and Errors

DSSetDimensions

Resize the matrices in the DS object.

Synopsis

#include "slepcds.h" 
PetscErrorCode DSSetDimensions(DS ds,PetscInt n,PetscInt l,PetscInt k)
Logically Collective

Input Parameters

ds  - the direct solver context
n  - the new size
l  - number of locked (inactive) leading columns
k  - intermediate dimension (e.g., position of arrow)

Notes

The internal arrays are not reallocated.

Some DS types have additional dimensions, e.g. the number of columns in DSSVD. For these, you should call a specific interface function.

Use PETSC_CURRENT to leave any of the values unchanged. Use PETSC_DETERMINE to set n to the leading dimension, l to the minimum value (0), and k to n/2.

See Also

DSGetDimensions(), DSAllocate(), DSSVDSetDimensions()

Level

intermediate

Location

src/sys/classes/ds/interface/dsops.c

Index of all DS routines
Table of Contents for all manual pages
Index of all manual pages