135 SUBROUTINE slasv2( F, G, H, SSMIN, SSMAX, SNR, CSR, SNL, CSL )
142 REAL CSL, CSR, F, G, H, SNL, SNR, SSMAX, SSMIN
149 parameter( zero = 0.0e0 )
151 parameter( half = 0.5e0 )
153 parameter( one = 1.0e0 )
155 parameter( two = 2.0e0 )
157 parameter( four = 4.0e0 )
162 REAL A, CLT, CRT, D, FA, FT, GA, GT, HA, HT, L, M,
163 $ MM, R, S, SLT, SRT, T, TEMP, TSIGN, TT
166 INTRINSIC abs, sign, sqrt
200 IF( ga.EQ.zero )
THEN
214 IF( ( fa / ga ).LT.slamch(
'EPS' ) )
THEN
221 ssmin = fa / ( ga / ha )
223 ssmin = ( fa / ga )*ha
275 IF( mm.EQ.zero )
THEN
280 t = sign( two, ft )*sign( one, gt )
282 t = gt / sign( d, ft ) + m / t
285 t = ( m / ( s+t )+m / ( r+l ) )*( one+a )
290 clt = ( crt+srt*m ) / a
291 slt = ( ht / ft )*srt / a
309 $ tsign = sign( one, csr )*sign( one, csl )*sign( one, f )
311 $ tsign = sign( one, snr )*sign( one, csl )*sign( one, g )
313 $ tsign = sign( one, snr )*sign( one, snl )*sign( one, h )
314 ssmax = sign( ssmax, tsign )
315 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.