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

◆ zcombamax1()

subroutine zcombamax1 ( complex*16, dimension( 2 )  v1,
complex*16, dimension( 2 )  v2 
)

Definition at line 359 of file pzmax1.f.

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