SCALAPACK
2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
◆
dcombamax()
subroutine dcombamax
(
double precision, dimension( 2 )
v1
,
double precision, dimension( 2 )
v2
)
Definition at line
212
of file
pdtreecomb.f
.
213
*
214
* -- ScaLAPACK tools routine (version 1.7) --
215
* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
216
* and University of California, Berkeley.
217
* May 1, 1997
218
*
219
* .. Array Arguments ..
220
DOUBLE PRECISION
V1( 2 ), V2( 2 )
221
* ..
222
*
223
* Purpose
224
* =======
225
*
226
* DCOMBAMAX finds the element having max. absolute value as well
227
* as its corresponding globl index.
228
*
229
* Arguments
230
* =========
231
*
232
* V1 (local input/local output) DOUBLE PRECISION array of
233
* dimension 2. The first maximum absolute value element and
234
* its global index. V1(1) = AMAX, V1(2) = INDX.
235
*
236
* V2 (local input) DOUBLE PRECISION array of dimension 2.
237
* The second maximum absolute value element and its global
238
* index. V2(1) = AMAX, V2(2) = INDX.
239
*
240
* =====================================================================
241
*
242
* .. Intrinsic Functions ..
243
INTRINSIC
abs
244
* ..
245
* .. Executable Statements ..
246
*
247
IF
( abs( v1( 1 ) ).LT.abs( v2( 1 ) ) )
THEN
248
v1( 1 ) = v2( 1 )
249
v1( 2 ) = v2( 2 )
250
END IF
251
*
252
RETURN
253
*
254
* End of DCOMBAMAX
255
*
TOOLS
pdtreecomb.f
Generated on Sun Jan 12 2025 15:59:03 for SCALAPACK by
1.9.8