cable_array_utils_mod Module


Functions

public function array_offset(index, shape) result(offset)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: index(:)
integer, intent(in) :: shape(:)

Return Value integer


Subroutines

public subroutine array_index(offset_in, shape, index)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: offset_in
integer, intent(in) :: shape(:)
integer, intent(inout) :: index(:)

public subroutine array_partition(n, k, p, start, count)

Compute start and count for the p'th partition of an array of size n where p = 0, 1, ... , k - 1.

Read more…

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n
integer, intent(in) :: k
integer, intent(in) :: p
integer, intent(out) :: start
integer, intent(out) :: count