swap Interface

public interface swap

Module Procedures

private elemental subroutine swap_integer_int32(a, b)

Swap the values a, b

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(inout) :: a
integer(kind=int32), intent(inout) :: b

private elemental subroutine swap_integer_int64(a, b)

Swap the values a, b

Arguments

Type IntentOptional Attributes Name
integer(kind=int64), intent(inout) :: a
integer(kind=int64), intent(inout) :: b

private elemental subroutine swap_real_dp(a, b)

Swap the values a, b

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(inout) :: a
real(kind=dp), intent(inout) :: b

private elemental subroutine swap_real_sp(a, b)

Swap the values a, b

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(inout) :: a
real(kind=sp), intent(inout) :: b

private elemental subroutine swap_complex_dp(a, b)

Swap the values a, b

Arguments

Type IntentOptional Attributes Name
complex(kind=dp), intent(inout) :: a
complex(kind=dp), intent(inout) :: b

private elemental subroutine swap_complex_sp(a, b)

Swap the values a, b

Arguments

Type IntentOptional Attributes Name
complex(kind=sp), intent(inout) :: a
complex(kind=sp), intent(inout) :: b