135 SUBROUTINE dlasv2( F, G, H, SSMIN, SSMAX, SNR, CSR, SNL, CSL )
142 DOUBLE PRECISION CSL, CSR, F, G, H, SNL, SNR, SSMAX, SSMIN
148 DOUBLE PRECISION ZERO
149 parameter( zero = 0.0d0 )
150 DOUBLE PRECISION HALF
151 parameter( half = 0.5d0 )
153 parameter( one = 1.0d0 )
155 parameter( two = 2.0d0 )
156 DOUBLE PRECISION FOUR
157 parameter( four = 4.0d0 )
162 DOUBLE PRECISION 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
169 DOUBLE PRECISION DLAMCH
200 IF( ga.EQ.zero )
THEN
214 IF( ( fa / ga ).LT.dlamch(
'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 dlasv2(f, g, h, ssmin, ssmax, snr, csr, snl, csl)
DLASV2 computes the singular value decomposition of a 2-by-2 triangular matrix.