-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsl_gstra4.m
27 lines (24 loc) · 1003 Bytes
/
sl_gstra4.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
%sl_gstra MEX-function for reduction to SVD-coordinate form.
%
% [At,Et,Bt,Ct,rankE,Q,Z] = sl_gstra(4,A,E,B,C,TOL) computes, for a
% descriptor triple (A-lambda*E,B,C), orthogonal transformation matrices
% Q and Z such that the transformed triple
%
% (At-lambda*Et,Bt,Ct) = (Q'*A*Z-lambda*Q'*E*Z,Q'*B,C*Z)
%
% is in an SVD (singular value decomposition) coordinate form.
% The resulting At and Et are in the form
%
% ( A11 A12 ) ( Er 0 )
% At = ( ) , Et = ( ) ,
% ( A21 A22 ) ( 0 0 )
%
% where Er is a rankE x rankE invertible diagonal matrix having on its
% diagonal the decreasingly ordered nonzero singular values of E.
%
% TOL is the relative tolerance to be used in determining the rank of E.
% For TOL > 0, 1/TOL is a lower bound for the reciprocal condition numbers
% of the diagonal matrices from the SVD decomposition of E.
% (Default: prod(size(E))*eps).
%
% See also sl_gstra, sl_gstra5, sl_gstra6.