Go to the source code of this file.
◆ cmumps_ixamax()
| integer function cmumps_ixamax |
( |
integer, intent(in) | n, |
|
|
complex, dimension(*), intent(in) | x, |
|
|
integer, intent(in) | incx, |
|
|
integer, intent(in) | grain ) |
Definition at line 14 of file cmumps_iXamax.F.
15
16 IMPLICIT NONE
17 COMPLEX, intent(in) :: X(*)
18 INTEGER, intent(in) :: INCX,
19 INTEGER, intent(in) :: GRAIN
20 REAL ABSMAX
21 INTEGER :: I
22 INTEGER(8) :: IX
23
24
25
26
27
29 IF ( n.LT.1 ) RETURN
31 IF ( n.EQ.1 .OR. incx.LE.0 ) RETURN
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84 IF ( incx.EQ.1 ) THEN
85 absmax = abs(x(1))
86 DO i = 2, n
87 IF ( abs(x(i)) .LE. absmax ) cycle
89 absmax = abs(x(i))
90 ENDDO
91 ELSE
92 ix = 1
93 absmax = abs(x(1))
94 ix = ix + incx
95 DO i = 2, n
96 IF ( abs(x(ix)).LE.absmax ) GOTO 5
98 absmax = abs(x(ix))
99 5 ix = ix + incx
100 ENDDO
101 ENDIF
102
103 RETURN
integer function cmumps_ixamax(n, x, incx, grain)