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

◆ ccombamax1()

subroutine ccombamax1 ( complex, dimension( 2 )  v1,
complex, dimension( 2 )  v2 
)

Definition at line 360 of file pcmax1.f.

361*
362* -- ScaLAPACK auxiliary routine (version 1.7) --
363* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
364* and University of California, Berkeley.
365* May 1, 1997
366*
367* .. Array Arguments ..
368 COMPLEX V1( 2 ), V2( 2 )
369* ..
370*
371* Purpose
372* =======
373*
374* CCOMBAMAX1 finds the element having maximum real part absolute
375* value as well as its corresponding globl index.
376*
377* Arguments
378* =========
379*
380* V1 (local input/local output) COMPLEX array of
381* dimension 2. The first maximum absolute value element and
382* its global index. V1(1) = AMAX, V1(2) = INDX.
383*
384* V2 (local input) COMPLEX array of dimension 2.
385* The second maximum absolute value element and its global
386* index. V2(1) = AMAX, V2(2) = INDX.
387*
388* =====================================================================
389*
390* .. Intrinsic Functions ..
391 INTRINSIC abs, real
392* ..
393* .. Executable Statements ..
394*
395 IF( abs( real( v1( 1 ) ) ).LT.abs( real( v2( 1 ) ) ) ) THEN
396 v1( 1 ) = v2( 1 )
397 v1( 2 ) = v2( 2 )
398 END IF
399*
400 RETURN
401*
402* End of CCOMBAMAX1
403*
Here is the caller graph for this function: