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

◆ scombamax()

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

Definition at line 211 of file pstreecomb.f.

212*
213* -- ScaLAPACK tools routine (version 1.7) --
214* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
215* and University of California, Berkeley.
216* May 1, 1997
217*
218* .. Array Arguments ..
219 REAL V1( 2 ), V2( 2 )
220* ..
221*
222* Purpose
223* =======
224*
225* SCOMBAMAX finds the element having max. absolute value as well
226* as its corresponding globl index.
227*
228* Arguments
229* =========
230*
231* V1 (local input/local output) REAL array of
232* dimension 2. The first maximum absolute value element and
233* its global index. V1(1) = AMAX, V1(2) = INDX.
234*
235* V2 (local input) REAL array of dimension 2.
236* The second maximum absolute value element and its global
237* index. V2(1) = AMAX, V2(2) = INDX.
238*
239* =====================================================================
240*
241* .. Intrinsic Functions ..
242 INTRINSIC abs
243* ..
244* .. Executable Statements ..
245*
246 IF( abs( v1( 1 ) ).LT.abs( v2( 1 ) ) ) THEN
247 v1( 1 ) = v2( 1 )
248 v1( 2 ) = v2( 2 )
249 END IF
250*
251 RETURN
252*
253* End of SCOMBAMAX
254*