SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ dcombnrm2()

subroutine dcombnrm2 ( double precision  x,
double precision  y 
)

Definition at line 306 of file pdtreecomb.f.

307*
308* -- ScaLAPACK tools routine (version 1.7) --
309* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
310* and University of California, Berkeley.
311* May 1, 1997
312*
313* .. Scalar Arguments ..
314 DOUBLE PRECISION X, Y
315* ..
316*
317* Purpose
318* =======
319*
320* DCOMBNRM2 combines local norm 2 results, taking care not to cause
321* unnecessary overflow.
322*
323* Arguments
324* =========
325*
326* X (local input) DOUBLE PRECISION
327* Y (local input) DOUBLE PRECISION
328* X and Y specify the values x and y. X and Y are supposed to
329* be >= 0.
330*
331* =====================================================================
332*
333* .. Parameters ..
334 DOUBLE PRECISION ONE, ZERO
335 parameter( one = 1.0d+0, zero = 0.0d+0 )
336* ..
337* .. Local Scalars ..
338 DOUBLE PRECISION W, Z
339* ..
340* .. Intrinsic Functions ..
341 INTRINSIC max, min, sqrt
342* ..
343* .. Executable Statements ..
344*
345 w = max( x, y )
346 z = min( x, y )
347*
348 IF( z.EQ.zero ) THEN
349 x = w
350 ELSE
351 x = w*sqrt( one+( z / w )**2 )
352 END IF
353*
354 RETURN
355*
356* End of DCOMBNRM2
357*
#define max(A, B)
Definition pcgemr.c:180
#define min(A, B)
Definition pcgemr.c:181
Here is the caller graph for this function: