m_medianOf3 Module

module~~m_medianof3~~UsesGraph module~m_medianof3 m_medianOf3 module~m_swap m_swap module~m_swap->module~m_medianof3 module~variablekind variableKind module~variablekind->module~m_medianof3 module~variablekind->module~m_swap iso_fortran_env iso_fortran_env iso_fortran_env->module~variablekind
Help

Given three numbers, find their median and sort at the same time



Interfaces

public interface medianOf3

Sort three numbers in an array and return the location of the median

  • private subroutine medianOf3_r1D(this, left, mid, right)

    Interfaced with medianOf3()

    Arguments

    Type IntentOptional AttributesName
    real(kind=r32) :: this(:)
    integer(kind=i32) :: left
    integer(kind=i32) :: mid
    integer(kind=i32) :: right
  • private subroutine medianOf3_d1D(this, left, mid, right)

    Interfaced with medianOf3()

    Arguments

    Type IntentOptional AttributesName
    real(kind=r64) :: this(:)
    integer(kind=i32) :: left
    integer(kind=i32) :: mid
    integer(kind=i32) :: right
  • private subroutine medianOf3_i1D(this, left, mid, right)

    Interfaced with medianOf3()

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i32) :: this(:)
    integer(kind=i32) :: left
    integer(kind=i32) :: mid
    integer(kind=i32) :: right
  • private subroutine medianOf3_id1D(this, left, mid, right)

    Interfaced with medianOf3()

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i64) :: this(:)
    integer(kind=i32) :: left
    integer(kind=i32) :: mid
    integer(kind=i32) :: right

public interface argMedianOf3

Sort the indices of three numbers into an array and return the location of the median

  • private subroutine argMedianOf3_r1D(this, i, left, mid, right)

    Interfaced with argMedianOf3()

    Arguments

    Type IntentOptional AttributesName
    real(kind=r32) :: this(:)
    integer(kind=i32) :: i(:)
    integer(kind=i32) :: left
    integer(kind=i32) :: mid
    integer(kind=i32) :: right
  • private subroutine argMedianOf3_d1D(this, i, left, mid, right)

    Interfaced with argMedianOf3()

    Arguments

    Type IntentOptional AttributesName
    real(kind=r64) :: this(:)
    integer(kind=i32) :: i(:)
    integer(kind=i32) :: left
    integer(kind=i32) :: mid
    integer(kind=i32) :: right
  • private subroutine argMedianOf3_i1D(this, i, left, mid, right)

    Interfaced with argMedianOf3()

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i32) :: this(:)
    integer(kind=i32) :: i(:)
    integer(kind=i32) :: left
    integer(kind=i32) :: mid
    integer(kind=i32) :: right
  • private subroutine argMedianOf3_id1D(this, i, left, mid, right)

    Interfaced with argMedianOf3()

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i64) :: this(:)
    integer(kind=i32) :: i(:)
    integer(kind=i32) :: left
    integer(kind=i32) :: mid
    integer(kind=i32) :: right