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

◆ scombssq()

subroutine scombssq ( real, dimension( 2 )  v1,
real, dimension( 2 )  v2 
)

Definition at line 257 of file pstreecomb.f.

258*
259* -- ScaLAPACK tools routine (version 1.7) --
260* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
261* and University of California, Berkeley.
262* May 1, 1997
263*
264* .. Array Arguments ..
265 REAL V1( 2 ), V2( 2 )
266* ..
267*
268* Purpose
269* =======
270*
271* SCOMBSSQ does a scaled sum of squares on two scalars.
272*
273* Arguments
274* =========
275*
276* V1 (local input/local output) REAL array of
277* dimension 2. The first scaled sum. V1(1) = SCALE,
278* V1(2) = SUMSQ.
279*
280* V2 (local input) REAL array of dimension 2.
281* The second scaled sum. V2(1) = SCALE, V2(2) = SUMSQ.
282*
283* =====================================================================
284*
285* .. Parameters ..
286 REAL ZERO
287 parameter( zero = 0.0e+0 )
288* ..
289* .. Executable Statements ..
290*
291 IF( v1( 1 ).GE.v2( 1 ) ) THEN
292 IF( v1( 1 ).NE.zero )
293 $ v1( 2 ) = v1( 2 ) + ( v2( 1 ) / v1( 1 ) )**2 * v2( 2 )
294 ELSE
295 v1( 2 ) = v2( 2 ) + ( v1( 1 ) / v2( 1 ) )**2 * v1( 2 )
296 v1( 1 ) = v2( 1 )
297 END IF
298*
299 RETURN
300*
301* End of SCOMBSSQ
302*
Here is the caller graph for this function: