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

◆ scombnrm2()

subroutine scombnrm2 ( real  x,
real  y 
)

Definition at line 305 of file pstreecomb.f.

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