MATLAB Function Reference    
spaugment

Form least squares augmented system

Syntax

Description

S = spaugment(A,c) creates the sparse, square, symmetric indefinite matrix S = [c*I A; A' 0]. The matrix S is related to the least squares problem

by

The optimum value of the residual scaling factor c, involves min(svd(A)) and norm(r), which are usually too expensive to compute.

S = spaugment(A) without a specified value of c, uses max(max(abs(A)))/1000.

See Also

spparms


 sparse spconvert