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
1111 private
1212 public :: clip
1313
14-
1514 interface clip
1615 #:for k1, t1 in IR_KINDS_TYPES
1716 module procedure clip_${t1}$_${k1}$
1817 #:endfor
1918 end interface clip
2019
21-
22- contains
20+ contains
2321
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}$
3230
33- #:endfor
31+ #:endfor
3432
3533end module stdlib_math
You can’t perform that action at this time.
0 commit comments