File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -11,25 +11,23 @@ module stdlib_math
11
11
private
12
12
public :: clip
13
13
14
-
15
14
interface clip
16
15
#:for k1, t1 in IR_KINDS_TYPES
17
16
module procedure clip_${t1}$_${k1}$
18
17
#:endfor
19
18
end interface clip
20
19
21
-
22
- contains
20
+ contains
23
21
24
- #:for k1, t1 in IR_KINDS_TYPES
25
- elemental function clip_${t1}$_${k1}$(x, xmin, xmax) result(res)
26
- ${t1}$(${k1}$), intent(in) :: x
27
- ${t1}$(${k1}$), intent(in) :: xmin
28
- ${t1}$(${k1}$), intent(in) :: xmax
29
- ${t1}$(${k1}$) :: res
30
- res = max(min(x, xmax), xmin)
31
- end function clip_${t1}$_${k1}$
22
+ #:for k1, t1 in IR_KINDS_TYPES
23
+ elemental function clip_${t1}$_${k1}$(x, xmin, xmax) result(res)
24
+ ${t1}$(${k1}$), intent(in) :: x
25
+ ${t1}$(${k1}$), intent(in) :: xmin
26
+ ${t1}$(${k1}$), intent(in) :: xmax
27
+ ${t1}$(${k1}$) :: res
28
+ res = max(min(x, xmax), xmin)
29
+ end function clip_${t1}$_${k1}$
32
30
33
- #:endfor
31
+ #:endfor
34
32
35
33
end module stdlib_math
You can’t perform that action at this time.
0 commit comments