139 SUBROUTINE slasv2( F, G, H, SSMIN, SSMAX, SNR, CSR, SNL, CSL )
147 REAL CSL, CSR, F, G, H, SNL, SNR, SSMAX, SSMIN
154 parameter ( zero = 0.0e0 )
156 parameter ( half = 0.5e0 )
158 parameter ( one = 1.0e0 )
160 parameter ( two = 2.0e0 )
162 parameter ( four = 4.0e0 )
167 REAL A, CLT, CRT, D, FA, FT, GA, GT, HA, HT, L, M,
168 $ mm, r, s, slt, srt, t, temp, tsign, tt
171 INTRINSIC abs, sign, sqrt
205 IF( ga.EQ.zero )
THEN
219 IF( ( fa / ga ).LT.slamch(
'EPS' ) )
THEN
226 ssmin = fa / ( ga / ha )
228 ssmin = ( fa / ga )*ha
280 IF( mm.EQ.zero )
THEN
285 t = sign( two, ft )*sign( one, gt )
287 t = gt / sign( d, ft ) + m / t
290 t = ( m / ( s+t )+m / ( r+l ) )*( one+a )
295 clt = ( crt+srt*m ) / a
296 slt = ( ht / ft )*srt / a
314 $ tsign = sign( one, csr )*sign( one, csl )*sign( one, f )
316 $ tsign = sign( one, snr )*sign( one, csl )*sign( one, g )
318 $ tsign = sign( one, snr )*sign( one, snl )*sign( one, h )
319 ssmax = sign( ssmax, tsign )
320 ssmin = sign( ssmin, tsign*sign( one, f )*sign( one, h ) )
subroutine slasv2(F, G, H, SSMIN, SSMAX, SNR, CSR, SNL, CSL)
SLASV2 computes the singular value decomposition of a 2-by-2 triangular matrix.