m_indexing Module

module~~m_indexing~~UsesGraph module~m_indexing m_indexing module~variablekind variableKind module~variablekind->module~m_indexing iso_fortran_env iso_fortran_env iso_fortran_env->module~variablekind
Help

Contains routines to obtain packed and unpacked indices into arrays

Used By

module~~m_indexing~~UsedByGraph module~m_indexing m_indexing program~scaletest_coretran scaleTest_coretran module~m_indexing->program~scaletest_coretran module~m_tests m_tests module~m_indexing->module~m_tests module~prng_class Prng_Class module~m_indexing->module~prng_class program~test_coretran test_coretran module~m_tests->program~test_coretran module~prng_class->module~m_tests module~m_random m_random module~prng_class->module~m_random module~m_random->program~scaletest_coretran module~m_random->module~m_tests module~m_random->program~test_coretran module~m_array1d m_array1D module~m_random->module~m_array1d module~m_array1d->program~scaletest_coretran 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 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


Functions

public function ind2sub(iG, nSub) result(iSub)

Compute the indices in each dimension from the global index

Arguments

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

Index into a global vector

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

Size in each dimension

Return Value integer(kind=i32) (size(nSub))

Indices in each dimension to return

public function sub2ind(iSub, nSub) result(iG)

Given component indices, get the global vector location.

Arguments

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

Indices in each dimension. The first entry in iL is the left most index

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

Size in each dimension

Return Value integer(kind=i32)

Index in the global vector

public function integerBin(this, n, bound) result(i)

Arguments

Type IntentOptional AttributesName
real(kind=r64) :: this
integer(kind=i32) :: n
logical :: bound

Return Value integer(kind=i32)