m_array1D Module

module~~m_array1d~~UsesGraph module~m_array1d m_array1D module~variablekind variableKind module~variablekind->module~m_array1d module~m_random m_random module~variablekind->module~m_random module~m_strings m_strings module~variablekind->module~m_strings module~m_swap m_swap module~variablekind->module~m_swap module~m_errors m_errors module~variablekind->module~m_errors module~m_allocate m_allocate module~variablekind->module~m_allocate module~prng_class Prng_Class module~variablekind->module~prng_class module~m_deallocate m_deallocate module~variablekind->module~m_deallocate module~m_unittester m_unitTester module~variablekind->module~m_unittester module~m_indexing m_indexing module~variablekind->module~m_indexing module~m_time m_time module~variablekind->module~m_time module~m_parameters m_parameters module~variablekind->module~m_parameters module~m_random->module~m_array1d module~m_strings->module~m_array1d module~m_strings->module~m_random module~m_strings->module~prng_class module~m_swap->module~m_array1d module~m_errors->module~m_array1d module~m_errors->module~m_random module~m_errors->module~m_strings module~m_errors->module~m_allocate module~m_errors->module~prng_class module~m_errors->module~m_deallocate module~m_errors->module~m_unittester module~m_allocate->module~m_array1d module~m_allocate->module~m_random module~m_allocate->module~prng_class iso_fortran_env iso_fortran_env iso_fortran_env->module~variablekind iso_fortran_env->module~m_random iso_fortran_env->module~m_strings iso_fortran_env->module~m_errors iso_fortran_env->module~prng_class iso_fortran_env->module~m_unittester module~prng_class->module~m_random module~m_deallocate->module~m_random module~m_unittester->module~m_random module~m_unittester->module~m_allocate module~m_indexing->module~prng_class module~m_time->module~prng_class module~m_parameters->module~m_strings
Help

1D array routines

See arange, diff, isSorted, repeat for more information.

Used By

module~~m_array1d~~UsedByGraph module~m_array1d m_array1D program~scaletest_coretran scaleTest_coretran module~m_array1d->program~scaletest_coretran module~m_tests m_tests module~m_array1d->module~m_tests module~m_kdtree m_KdTree module~m_array1d->module~m_kdtree module~m_maths m_maths module~m_array1d->module~m_maths program~test_coretran test_coretran module~m_tests->program~test_coretran module~m_kdtree->program~scaletest_coretran module~m_kdtree->module~m_tests module~m_maths->program~scaletest_coretran module~m_maths->module~m_tests module~m_maths->module~m_kdtree
Help


Interfaces

public interface arange

Create a 1D array from start to stop in given increments of 1 or optionally step

  • public subroutine arange_r1D(res, start, stp, step)

    Interfaced with arange

    Arguments

    Type IntentOptional AttributesName
    real(kind=r32), intent(inout), allocatable:: res(:)
    real(kind=r32), intent(in) :: start

    Start from here

    real(kind=r32), intent(in) :: stp

    Stop here

    real(kind=r32), intent(in), optional :: step

    Step size

  • public subroutine arange_d1D(res, start, stp, step)

    Interfaced with arange

    Arguments

    Type IntentOptional AttributesName
    real(kind=r64), intent(inout), allocatable:: res(:)
    real(kind=r64), intent(in) :: start

    Start from here

    real(kind=r64), intent(in) :: stp

    Stop here

    real(kind=r64), intent(in), optional :: step

    Step size

  • public subroutine arange_i1D(res, start, stp, step)

    Interfaced with arange

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i32), intent(inout), allocatable:: res(:)
    integer(kind=i32), intent(in) :: start

    Start from here

    integer(kind=i32), intent(in) :: stp

    Stop here

    integer(kind=i32), intent(in), optional :: step

    Step size

  • public subroutine arange_id1D(res, start, stp, step)

    Interfaced with arange

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i64), intent(inout), allocatable:: res(:)
    integer(kind=i64), intent(in) :: start

    Start from here

    integer(kind=i64), intent(in) :: stp

    Stop here

    integer(kind=i64), intent(in), optional :: step

    Step size

public interface diff

Compute the difference along an array

  • public subroutine diff_r1D(this, res)

    Interfaced with diff

    Arguments

    Type IntentOptional AttributesName
    real(kind=r32), intent(in) :: this(:)

    1D array

    real(kind=r32) :: res(:)

    Difference along array

  • public subroutine diff_d1D(this, res)

    Interfaced with diff

    Arguments

    Type IntentOptional AttributesName
    real(kind=r64), intent(in) :: this(:)

    1D array

    real(kind=r64) :: res(:)

    Difference along array

  • public subroutine diff_i1D(this, res)

    Interfaced with diff

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i32), intent(in) :: this(:)

    1D array

    integer(kind=i32) :: res(:)

    Difference along array

  • public subroutine diff_id1D(this, res)

    Interfaced with diff

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i64), intent(in) :: this(:)

    1D array

    integer(kind=i64) :: res(:)

    Difference along array

public interface isSorted

Check that a 1D array is sorted

  • public function isSorted_r1D(this) result(yes)

    Interfaced with isSorted

    Arguments

    Type IntentOptional AttributesName
    real(kind=r32), intent(in) :: this(:)

    1D array

    Return Value logical

    isSorted

  • public function isSorted_d1D(this) result(yes)

    Interfaced with isSorted

    Arguments

    Type IntentOptional AttributesName
    real(kind=r64), intent(in) :: this(:)

    1D array

    Return Value logical

    isSorted

  • public function isSorted_i1D(this) result(yes)

    Interfaced with isSorted

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i32), intent(in) :: this(:)

    1D array

    Return Value logical

    isSorted

  • public function isSorted_id1D(this) result(yes)

    Interfaced with isSorted

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i64), intent(in) :: this(:)

    1D array

    Return Value logical

    isSorted

  • public function isSorted_r1Di1D(this, indx) result(yes)

    Interfaced with isSorted

    Arguments

    Type IntentOptional AttributesName
    real(kind=r32), intent(in) :: this(:)

    1D array

    integer(kind=i32), intent(in) :: indx(:)

    Index into 1D array

    Return Value logical

    isSorted

  • public function isSorted_d1Di1D(this, indx) result(yes)

    Interfaced with isSorted

    Arguments

    Type IntentOptional AttributesName
    real(kind=r64), intent(in) :: this(:)

    1D array

    integer(kind=i32), intent(in) :: indx(:)

    Index into 1D array

    Return Value logical

    isSorted

  • public function isSorted_i1Di1D(this, indx) result(yes)

    Interfaced with isSorted

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i32), intent(in) :: this(:)

    1D array

    integer(kind=i32), intent(in) :: indx(:)

    Index into 1D array

    Return Value logical

    isSorted

  • public function isSorted_id1Di1D(this, indx) result(yes)

    Interfaced with isSorted

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i64), intent(in) :: this(:)

    1D array

    integer(kind=i32), intent(in) :: indx(:)

    Index into 1D array

    Return Value logical

    isSorted

public interface repeat

Repeat each element nRepeat times

  • public subroutine repeat_r1D(this, nRepeats, res)

    Interfaced with repeat

    Arguments

    Type IntentOptional AttributesName
    real(kind=r32) :: this(:)

    1D array

    integer(kind=i32) :: nRepeats

    Number of times each element should be repeated

    real(kind=r32), allocatable:: res(:)
  • public subroutine repeat_d1D(this, nRepeats, res)

    Interfaced with repeat

    Arguments

    Type IntentOptional AttributesName
    real(kind=r64) :: this(:)

    1D array

    integer(kind=i32) :: nRepeats

    Number of times each element should be repeated

    real(kind=r64), allocatable:: res(:)
  • public subroutine repeat_i1D(this, nRepeats, res)

    Interfaced with repeat

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i32) :: this(:)

    1D array

    integer(kind=i32) :: nRepeats

    Number of times each element should be repeated

    integer(kind=i32), allocatable:: res(:)
  • public subroutine repeat_id1D(this, nRepeats, res)

    Interfaced with repeat

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i64) :: this(:)

    1D array

    integer(kind=i32) :: nRepeats

    Number of times each element should be repeated

    integer(kind=i64), allocatable:: res(:)

public interface shuffle

Perform Knuth shuffling on an array

  • public subroutine shuffle_r1D(this)

    Interfaced with shuffle

    Arguments

    Type IntentOptional AttributesName
    real(kind=r32), intent(inout) :: this(:)

    1D array

  • public subroutine shuffle_d1D(this)

    Interfaced with shuffle

    Arguments

    Type IntentOptional AttributesName
    real(kind=r64), intent(inout) :: this(:)

    1D array

  • public subroutine shuffle_i1D(this)

    Interfaced with shuffle

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i32), intent(inout) :: this(:)

    1D array

  • public subroutine shuffle_id1D(this)

    Interfaced with shuffle

    Arguments

    Type IntentOptional AttributesName
    integer(kind=i64), intent(inout) :: this(:)

    1D array