SVDComputeRelativeError

Computes the relative error bound associated with the i-th singular triplet.

Synopsis

#include "slepcsvd.h" 
PetscErrorCode SVDComputeRelativeError(SVD svd,PetscInt i,PetscReal *error)
Collective on SVD

Input Parameter

svd - the singular value solver context
i - the solution index

Output Parameter

error - the relative error bound, computed as sqrt(n1^2+n2^2)/sigma where n1 = ||A*v-sigma*u||_2 , n2 = ||A^T*u-sigma*v||_2 , sigma is the singular value, u and v are the left and right singular vectors. If sigma is too small the relative error is computed as sqrt(n1^2+n2^2).

See Also

SVDSolve(), SVDComputeResidualNorms()

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

Examples

src/svd/examples/tutorials/ex15.c.html
src/svd/examples/tutorials/ex15f.F.html