public interface reverse
returns a new vector reversing the elements of the input.
alternative to b = a[j:k:-1]
Module Procedures
private pure function reverse_i1(vec) result(res)
Arguments
Type | Intent | Optional | Attributes | | Name | |
integer(kind=i1), |
intent(in), |
| dimension(:), allocatable | :: |
vec | |
Return Value integer(kind=i1),dimension(:), allocatable
private pure function reverse_i2(vec) result(res)
Arguments
Type | Intent | Optional | Attributes | | Name | |
integer(kind=i2), |
intent(in), |
| dimension(:), allocatable | :: |
vec | |
Return Value integer(kind=i2),dimension(:), allocatable
private pure function reverse_i4(vec) result(res)
Arguments
Type | Intent | Optional | Attributes | | Name | |
integer(kind=i4), |
intent(in), |
| dimension(:), allocatable | :: |
vec | |
Return Value integer(kind=i4),dimension(:), allocatable
private pure function reverse_i8(vec) result(res)
Arguments
Type | Intent | Optional | Attributes | | Name | |
integer(kind=i8), |
intent(in), |
| dimension(:), allocatable | :: |
vec | |
Return Value integer(kind=i8),dimension(:), allocatable
private pure function reverse_r4(vec) result(res)
Arguments
Type | Intent | Optional | Attributes | | Name | |
real(kind=r4), |
intent(in), |
| dimension(:), allocatable | :: |
vec | |
Return Value real(kind=r4),dimension(:), allocatable
private pure function reverse_r8(vec) result(res)
Arguments
Type | Intent | Optional | Attributes | | Name | |
real(kind=r8), |
intent(in), |
| dimension(:), allocatable | :: |
vec | |
Return Value real(kind=r8),dimension(:), allocatable
private pure function reverse_r16(vec) result(res)
Arguments
Type | Intent | Optional | Attributes | | Name | |
real(kind=r16), |
intent(in), |
| dimension(:), allocatable | :: |
vec | |
Return Value real(kind=r16),dimension(:), allocatable
private pure function reverse_c4(vec) result(res)
Arguments
Type | Intent | Optional | Attributes | | Name | |
complex(kind=r4), |
intent(in), |
| dimension(:), allocatable | :: |
vec | |
Return Value complex(kind=r4),dimension(:), allocatable
private pure function reverse_c8(vec) result(res)
Arguments
Type | Intent | Optional | Attributes | | Name | |
complex(kind=r8), |
intent(in), |
| dimension(:), allocatable | :: |
vec | |
Return Value complex(kind=r8),dimension(:), allocatable
private pure function reverse_c16(vec) result(res)
Arguments
Type | Intent | Optional | Attributes | | Name | |
complex(kind=r16), |
intent(in), |
| dimension(:), allocatable | :: |
vec | |
Return Value complex(kind=r16),dimension(:), allocatable
private pure function reverse_str(vec) result(res)
Arguments
Type | Intent | Optional | Attributes | | Name | |
character, |
intent(in), |
| dimension(:), allocatable | :: |
vec | |
Return Value character,dimension(:), allocatable