ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
pm_complexMinMax::max Interface Reference

Generate and return the component-wise maximum value of (both real and imaginary parts of) the input complex. More...

Detailed Description

Generate and return the component-wise maximum value of (both real and imaginary parts of) the input complex.

Parameters
[in]a1: The input scalar or array of arbitrary rank of type complex of kind any supported by the processor (e.g., CK, CK32, CK64, or CK128).
[in]a2: The input scalar or array of arbitrary rank of the same type and kind as a1.
Returns
val : The output scalar or array of the same rank and shape as a1 whose real and imaginary parts are set to the maximum values of the corresponding real and imaginary parts of the input a1 and a2.


Possible calling interfaces

val = max(a1, a2) ! = cmplx(max(a1%re, a2%re), max(a1%im, a2%im), kind(a1))
Generate and return the component-wise maximum value of (both real and imaginary parts of) the input ...
This module contains procedures and generic interfaces for computing element-wise minimum/maximum val...
Remarks
The procedures under discussion are pure.
The procedures under discussion are elemental.
See also
min
max
minval
maxval
minloc
maxloc
pm_complexCompareAll
pm_complexCompareAny
pm_complexCompareLex
pm_arrayMinMax
pm_mathMinMax


Example usage

1program example
2
3 use pm_kind, only: SK, IK
4 use pm_complexMinMax, only: max
5 use pm_distUnif, only: getUnifRand
6 use pm_io, only: display_type
7
8 implicit none
9
10 integer(IK) :: lb, ub, lenarr
11 integer(IK) :: itry, ntry = 5
12 type(display_type) :: disp
13 disp = display_type(file = "main.out.F90")
14
15 block
16 use pm_kind, only: CKG => CKS
17 complex(CKG) :: a1, a2
18 complex(CKG), allocatable :: array1(:)
19 call disp%skip()
20 do itry = 1, ntry
21 call disp%show("lb = -9; ub = +9")
22 lb = -9; ub = +9
23 call disp%show("a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)")
24 a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
25 call disp%show("a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)")
26 a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
27 call disp%show("[a1, a2]")
28 call disp%show( [a1, a2] )
29 call disp%show("max(a1, a2)")
30 call disp%show( max(a1, a2) )
31 call disp%show("lenarr = getUnifRand(2, 5)")
32 lenarr = getUnifRand(2, 5)
33 call disp%show("array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)")
34 array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
35 call disp%show("array1")
36 call disp%show( array1 )
37 call disp%show("max(array1, a2)")
38 call disp%show( max(array1, a2) )
39 call disp%show("max(a2, array1)")
40 call disp%show( max(a2, array1) )
41 call disp%skip()
42 end do
43 end block
44
45 block
46 use pm_kind, only: CKG => CKD
47 complex(CKG), allocatable :: array1(:)
48 complex(CKG) :: a1, a2
49 call disp%skip()
50 do itry = 1, ntry
51 call disp%show("lb = -9; ub = +9")
52 lb = -9; ub = +9
53 call disp%show("a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)")
54 a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
55 call disp%show("a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)")
56 a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
57 call disp%show("[a1, a2]")
58 call disp%show( [a1, a2] )
59 call disp%show("max(a1, a2)")
60 call disp%show( max(a1, a2) )
61 call disp%show("lenarr = getUnifRand(2, 5)")
62 lenarr = getUnifRand(2, 5)
63 call disp%show("array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)")
64 array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
65 call disp%show("max(array1, a2)")
66 call disp%show( max(array1, a2) )
67 call disp%show("max(a2, array1)")
68 call disp%show( max(a2, array1) )
69 call disp%skip()
70 end do
71 end block
72
73 block
74 use pm_kind, only: CKG => CKH
75 complex(CKG) :: a1, a2
76 complex(CKG), allocatable :: array1(:)
77 call disp%skip()
78 do itry = 1, ntry
79 call disp%show("lb = -9; ub = +9")
80 lb = -9; ub = +9
81 call disp%show("a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)")
82 a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
83 call disp%show("a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)")
84 a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
85 call disp%show("[a1, a2]")
86 call disp%show( [a1, a2] )
87 call disp%show("max(a1, a2)")
88 call disp%show( max(a1, a2) )
89 call disp%show("lenarr = getUnifRand(2, 5)")
90 lenarr = getUnifRand(2, 5)
91 call disp%show("array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)")
92 array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
93 call disp%show("max(array1, a2)")
94 call disp%show( max(array1, a2) )
95 call disp%show("max(a2, array1)")
96 call disp%show( max(a2, array1) )
97 call disp%skip()
98 end do
99 end block
100
101end program example
Generate and return a scalar or a contiguous array of rank 1 of length s1 of randomly uniformly distr...
This is a generic method of the derived type display_type with pass attribute.
Definition: pm_io.F90:11726
This is a generic method of the derived type display_type with pass attribute.
Definition: pm_io.F90:11508
This module contains classes and procedures for computing various statistical quantities related to t...
This module contains classes and procedures for input/output (IO) or generic display operations on st...
Definition: pm_io.F90:252
type(display_type) disp
This is a scalar module variable an object of type display_type for general display.
Definition: pm_io.F90:11393
This module defines the relevant Fortran kind type-parameters frequently used in the ParaMonte librar...
Definition: pm_kind.F90:268
integer, parameter CKH
The scalar integer constant of intrinsic default kind, representing the highest-precision complex kin...
Definition: pm_kind.F90:843
integer, parameter CKS
The single-precision complex kind in Fortran mode. On most platforms, this is a 32-bit real kind.
Definition: pm_kind.F90:570
integer, parameter IK
The default integer kind in the ParaMonte library: int32 in Fortran, c_int32_t in C-Fortran Interoper...
Definition: pm_kind.F90:540
integer, parameter CKD
The double precision complex kind in Fortran mode. On most platforms, this is a 64-bit real kind.
Definition: pm_kind.F90:571
integer, parameter SK
The default character kind in the ParaMonte library: kind("a") in Fortran, c_char in C-Fortran Intero...
Definition: pm_kind.F90:539
Generate and return an object of type display_type.
Definition: pm_io.F90:10282

Example Unix compile command via Intel ifort compiler
1#!/usr/bin/env sh
2rm main.exe
3ifort -fpp -standard-semantics -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
4./main.exe

Example Windows Batch compile command via Intel ifort compiler
1del main.exe
2set PATH=..\..\..\lib;%PATH%
3ifort /fpp /standard-semantics /O3 /I:..\..\..\include main.F90 ..\..\..\lib\libparamonte*.lib /exe:main.exe
4main.exe

Example Unix / MinGW compile command via GNU gfortran compiler
1#!/usr/bin/env sh
2rm main.exe
3gfortran -cpp -ffree-line-length-none -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
4./main.exe

Example output
1
2lb = -9; ub = +9
3a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
4a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
5[a1, a2]
6(-6.00000000, -5.00000000), (-7.00000000, +1.00000000)
7max(a1, a2)
8(-6.00000000, +1.00000000)
9lenarr = getUnifRand(2, 5)
10array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
11array1
12(+5.77509403, +7.26830864), (-0.546312332E-1, -3.71372890), (-0.274978638, -8.11486626)
13max(array1, a2)
14(+5.77509403, +7.26830864), (-0.546312332E-1, +1.00000000), (-0.274978638, +1.00000000)
15max(a2, array1)
16(+5.77509403, +7.26830864), (-0.546312332E-1, +1.00000000), (-0.274978638, +1.00000000)
17
18lb = -9; ub = +9
19a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
20a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
21[a1, a2]
22(+7.00000000, +5.00000000), (+1.00000000, -8.00000000)
23max(a1, a2)
24(+7.00000000, +5.00000000)
25lenarr = getUnifRand(2, 5)
26array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
27array1
28(-2.84169650, -2.77973294), (+7.65304947, +0.989590645), (+4.06895924, +5.72152615), (+0.515568733, -3.84267020), (-2.50154090, -3.08302021)
29max(array1, a2)
30(+1.00000000, -2.77973294), (+7.65304947, +0.989590645), (+4.06895924, +5.72152615), (+1.00000000, -3.84267020), (+1.00000000, -3.08302021)
31max(a2, array1)
32(+1.00000000, -2.77973294), (+7.65304947, +0.989590645), (+4.06895924, +5.72152615), (+1.00000000, -3.84267020), (+1.00000000, -3.08302021)
33
34lb = -9; ub = +9
35a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
36a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
37[a1, a2]
38(+5.00000000, +8.00000000), (+9.00000000, -2.00000000)
39max(a1, a2)
40(+9.00000000, +8.00000000)
41lenarr = getUnifRand(2, 5)
42array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
43array1
44(+8.98181343, +7.48204851), (+6.27610588, +6.77355289), (+8.11279297, +4.16598034), (+6.92352676, +8.41947937)
45max(array1, a2)
46(+9.00000000, +7.48204851), (+9.00000000, +6.77355289), (+9.00000000, +4.16598034), (+9.00000000, +8.41947937)
47max(a2, array1)
48(+9.00000000, +7.48204851), (+9.00000000, +6.77355289), (+9.00000000, +4.16598034), (+9.00000000, +8.41947937)
49
50lb = -9; ub = +9
51a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
52a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
53[a1, a2]
54(+4.00000000, -6.00000000), (-5.00000000, +2.00000000)
55max(a1, a2)
56(+4.00000000, +2.00000000)
57lenarr = getUnifRand(2, 5)
58array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
59array1
60(-0.886293411, -4.97562885), (+2.30322671, -6.66812515), (-1.71968102, +6.62104797)
61max(array1, a2)
62(-0.886293411, +2.00000000), (+2.30322671, +2.00000000), (-1.71968102, +6.62104797)
63max(a2, array1)
64(-0.886293411, +2.00000000), (+2.30322671, +2.00000000), (-1.71968102, +6.62104797)
65
66lb = -9; ub = +9
67a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
68a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
69[a1, a2]
70(+5.00000000, -3.00000000), (-2.00000000, -8.00000000)
71max(a1, a2)
72(+5.00000000, -3.00000000)
73lenarr = getUnifRand(2, 5)
74array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
75array1
76(-2.03373551, -4.97903538), (+5.51100731, -0.860132217), (-7.03594780, +3.74754262), (+6.53022194, +7.44160080), (+5.77462006, -8.33890915)
77max(array1, a2)
78(-2.00000000, -4.97903538), (+5.51100731, -0.860132217), (-2.00000000, +3.74754262), (+6.53022194, +7.44160080), (+5.77462006, -8.00000000)
79max(a2, array1)
80(-2.00000000, -4.97903538), (+5.51100731, -0.860132217), (-2.00000000, +3.74754262), (+6.53022194, +7.44160080), (+5.77462006, -8.00000000)
81
82
83lb = -9; ub = +9
84a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
85a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
86[a1, a2]
87(+5.0000000000000000, -5.0000000000000000), (+3.0000000000000000, +6.0000000000000000)
88max(a1, a2)
89(+5.0000000000000000, +6.0000000000000000)
90lenarr = getUnifRand(2, 5)
91array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
92max(array1, a2)
93(+3.0000000000000000, +6.0000000000000000), (+3.0000000000000000, +6.0000000000000000)
94max(a2, array1)
95(+3.0000000000000000, +6.0000000000000000), (+3.0000000000000000, +6.0000000000000000)
96
97lb = -9; ub = +9
98a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
99a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
100[a1, a2]
101(+2.0000000000000000, +5.0000000000000000), (-6.0000000000000000, +6.0000000000000000)
102max(a1, a2)
103(+2.0000000000000000, +6.0000000000000000)
104lenarr = getUnifRand(2, 5)
105array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
106max(array1, a2)
107(+4.1142715999303530, +6.0000000000000000), (-6.0000000000000000, +6.0000000000000000), (-1.3836837224962575, +6.0000000000000000), (-5.8378321417809627, +6.0000000000000000)
108max(a2, array1)
109(+4.1142715999303530, +6.0000000000000000), (-6.0000000000000000, +6.0000000000000000), (-1.3836837224962575, +6.0000000000000000), (-5.8378321417809627, +6.0000000000000000)
110
111lb = -9; ub = +9
112a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
113a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
114[a1, a2]
115(+6.0000000000000000, +9.0000000000000000), (-3.0000000000000000, +9.0000000000000000)
116max(a1, a2)
117(+6.0000000000000000, +9.0000000000000000)
118lenarr = getUnifRand(2, 5)
119array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
120max(array1, a2)
121(-3.0000000000000000, +9.0000000000000000), (-1.5870464932110999, +9.0000000000000000), (+2.8465317856279331, +9.0000000000000000), (+1.0762488245502446, +9.0000000000000000)
122max(a2, array1)
123(-3.0000000000000000, +9.0000000000000000), (-1.5870464932110999, +9.0000000000000000), (+2.8465317856279331, +9.0000000000000000), (+1.0762488245502446, +9.0000000000000000)
124
125lb = -9; ub = +9
126a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
127a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
128[a1, a2]
129(+0.0000000000000000, -4.0000000000000000), (+7.0000000000000000, +1.0000000000000000)
130max(a1, a2)
131(+7.0000000000000000, +1.0000000000000000)
132lenarr = getUnifRand(2, 5)
133array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
134max(array1, a2)
135(+7.0000000000000000, +8.9050943921657755), (+7.0000000000000000, +7.7130477722431854), (+7.0000000000000000, +1.0000000000000000), (+7.0000000000000000, +1.0000000000000000)
136max(a2, array1)
137(+7.0000000000000000, +8.9050943921657755), (+7.0000000000000000, +7.7130477722431854), (+7.0000000000000000, +1.0000000000000000), (+7.0000000000000000, +1.0000000000000000)
138
139lb = -9; ub = +9
140a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
141a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
142[a1, a2]
143(+4.0000000000000000, +8.0000000000000000), (-4.0000000000000000, +3.0000000000000000)
144max(a1, a2)
145(+4.0000000000000000, +8.0000000000000000)
146lenarr = getUnifRand(2, 5)
147array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
148max(array1, a2)
149(-2.7904548345816487, +5.9141288714934834), (+7.5703993523353255, +3.0000000000000000), (+8.2374918339026948, +3.0000000000000000), (+3.2906239196974578, +3.0000000000000000)
150max(a2, array1)
151(-2.7904548345816487, +5.9141288714934834), (+7.5703993523353255, +3.0000000000000000), (+8.2374918339026948, +3.0000000000000000), (+3.2906239196974578, +3.0000000000000000)
152
153
154lb = -9; ub = +9
155a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
156a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
157[a1, a2]
158(+2.00000000000000000000000000000000000, -5.00000000000000000000000000000000000), (+9.00000000000000000000000000000000000, +9.00000000000000000000000000000000000)
159max(a1, a2)
160(+9.00000000000000000000000000000000000, +9.00000000000000000000000000000000000)
161lenarr = getUnifRand(2, 5)
162array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
163max(array1, a2)
164(+9.00000000000000000000000000000000000, +9.00000000000000000000000000000000000), (+9.00000000000000000000000000000000000, +9.00000000000000000000000000000000000)
165max(a2, array1)
166(+9.00000000000000000000000000000000000, +9.00000000000000000000000000000000000), (+9.00000000000000000000000000000000000, +9.00000000000000000000000000000000000)
167
168lb = -9; ub = +9
169a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
170a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
171[a1, a2]
172(-6.00000000000000000000000000000000000, +1.00000000000000000000000000000000000), (-2.00000000000000000000000000000000000, +8.00000000000000000000000000000000000)
173max(a1, a2)
174(-2.00000000000000000000000000000000000, +8.00000000000000000000000000000000000)
175lenarr = getUnifRand(2, 5)
176array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
177max(array1, a2)
178(+2.59307140137809800106765209852877734, +8.00000000000000000000000000000000000), (+0.672342878322346966542953084203422161E-1, +8.00000000000000000000000000000000000), (-2.00000000000000000000000000000000000, +8.00000000000000000000000000000000000), (-2.00000000000000000000000000000000000, +8.00000000000000000000000000000000000), (+5.99556646461495744268321641113209053, +8.00000000000000000000000000000000000)
179max(a2, array1)
180(+2.59307140137809800106765209852877734, +8.00000000000000000000000000000000000), (+0.672342878322346966542953084203422161E-1, +8.00000000000000000000000000000000000), (-2.00000000000000000000000000000000000, +8.00000000000000000000000000000000000), (-2.00000000000000000000000000000000000, +8.00000000000000000000000000000000000), (+5.99556646461495744268321641113209053, +8.00000000000000000000000000000000000)
181
182lb = -9; ub = +9
183a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
184a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
185[a1, a2]
186(+5.00000000000000000000000000000000000, -1.00000000000000000000000000000000000), (+2.00000000000000000000000000000000000, +1.00000000000000000000000000000000000)
187max(a1, a2)
188(+5.00000000000000000000000000000000000, +1.00000000000000000000000000000000000)
189lenarr = getUnifRand(2, 5)
190array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
191max(array1, a2)
192(+2.00000000000000000000000000000000000, +1.00000000000000000000000000000000000), (+2.94365135871718712327784505298041508, +2.06319202586801465212614905863358466), (+2.00000000000000000000000000000000000, +7.88503553418600145297395632364055115), (+4.59874362862378145695645893605426450, +1.00000000000000000000000000000000000), (+2.00000000000000000000000000000000000, +1.00000000000000000000000000000000000)
193max(a2, array1)
194(+2.00000000000000000000000000000000000, +1.00000000000000000000000000000000000), (+2.94365135871718712327784505298041508, +2.06319202586801465212614905863358466), (+2.00000000000000000000000000000000000, +7.88503553418600145297395632364055115), (+4.59874362862378145695645893605426450, +1.00000000000000000000000000000000000), (+2.00000000000000000000000000000000000, +1.00000000000000000000000000000000000)
195
196lb = -9; ub = +9
197a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
198a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
199[a1, a2]
200(+8.00000000000000000000000000000000000, -8.00000000000000000000000000000000000), (-3.00000000000000000000000000000000000, +5.00000000000000000000000000000000000)
201max(a1, a2)
202(+8.00000000000000000000000000000000000, +5.00000000000000000000000000000000000)
203lenarr = getUnifRand(2, 5)
204array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
205max(array1, a2)
206(+5.67609409966728769172692044859682598, +5.00000000000000000000000000000000000), (+1.46845414278488335536910314854546788, +5.00000000000000000000000000000000000), (+7.01219878291718461114508390552343669, +5.00000000000000000000000000000000000)
207max(a2, array1)
208(+5.67609409966728769172692044859682598, +5.00000000000000000000000000000000000), (+1.46845414278488335536910314854546788, +5.00000000000000000000000000000000000), (+7.01219878291718461114508390552343669, +5.00000000000000000000000000000000000)
209
210lb = -9; ub = +9
211a1 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
212a2 = cmplx(getUnifRand(lb, ub), getUnifRand(lb, ub), CKG)
213[a1, a2]
214(-9.00000000000000000000000000000000000, -8.00000000000000000000000000000000000), (+0.00000000000000000000000000000000000, -4.00000000000000000000000000000000000)
215max(a1, a2)
216(+0.00000000000000000000000000000000000, -4.00000000000000000000000000000000000)
217lenarr = getUnifRand(2, 5)
218array1 = getUnifRand((-9._CKG, -9._CKG), (+9._CKG, +9._CKG), lenarr)
219max(array1, a2)
220(+5.57741463443902716235600295196314535, +2.28367598518912478880437789388874356), (+2.17093724885975204354499061264026200, -1.44529216738097550799987225347516084), (+0.00000000000000000000000000000000000, +1.74324602711675209998059020229147214), (+0.00000000000000000000000000000000000, +8.48460590811234953193378918013611785), (+5.63855286213168113896990790642814955, -4.00000000000000000000000000000000000)
221max(a2, array1)
222(+5.57741463443902716235600295196314535, +2.28367598518912478880437789388874356), (+2.17093724885975204354499061264026200, -1.44529216738097550799987225347516084), (+0.00000000000000000000000000000000000, +1.74324602711675209998059020229147214), (+0.00000000000000000000000000000000000, +8.48460590811234953193378918013611785), (+5.63855286213168113896990790642814955, -4.00000000000000000000000000000000000)
223
224
Test:
test_pm_complexMinMax


Final Remarks


If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.

  1. If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
  2. If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.

This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.

Author:
Amir Shahmoradi, September 1, 2017, 12:00 AM, Institute for Computational Engineering and Sciences (ICES), The University of Texas at Austin

Definition at line 217 of file pm_complexMinMax.F90.


The documentation for this interface was generated from the following file: