133 SUBROUTINE dlasv2( F, G, H, SSMIN, SSMAX, SNR, CSR, SNL, CSL )
140 DOUBLE PRECISION CSL, CSR, F, G, H, SNL, SNR, SSMAX, SSMIN
146 DOUBLE PRECISION ZERO
147 parameter( zero = 0.0d0 )
148 DOUBLE PRECISION HALF
149 parameter( half = 0.5d0 )
151 parameter( one = 1.0d0 )
153 parameter( two = 2.0d0 )
154 DOUBLE PRECISION FOUR
155 parameter( four = 4.0d0 )
160 DOUBLE PRECISION A, CLT, CRT, D, FA, FT, GA, GT, HA, HT, L, M,
161 $ MM, R, S, SLT, SRT, T, TEMP, TSIGN, TT
164 INTRINSIC abs, sign, sqrt
167 DOUBLE PRECISION DLAMCH
198 IF( ga.EQ.zero )
THEN
212 IF( ( fa / ga ).LT.dlamch(
'EPS' ) )
THEN
219 ssmin = fa / ( ga / ha )
221 ssmin = ( fa / ga )*ha
273 IF( mm.EQ.zero )
THEN
278 t = sign( two, ft )*sign( one, gt )
280 t = gt / sign( d, ft ) + m / t
283 t = ( m / ( s+t )+m / ( r+l ) )*( one+a )
288 clt = ( crt+srt*m ) / a
289 slt = ( ht / ft )*srt / a
307 $ tsign = sign( one, csr )*sign( one, csl )*sign( one, f )
309 $ tsign = sign( one, snr )*sign( one, csl )*sign( one, g )
311 $ tsign = sign( one, snr )*sign( one, snl )*sign( one, h )
312 ssmax = sign( ssmax, tsign )
313 ssmin = sign( ssmin, tsign*sign( one, f )*sign( one, h ) )
subroutine dlasv2(f, g, h, ssmin, ssmax, snr, csr, snl, csl)
DLASV2 computes the singular value decomposition of a 2-by-2 triangular matrix.