get_array_element Function

private pure function get_array_element(array, irow, icol) result(element)

Retrieves the element at index (i, j) for an array of general type. Returns the element as a (casted) complex type.

Arguments

TypeIntentOptionalAttributesName
class(*), intent(in) :: array(:,:)

the general array

integer, intent(in) :: irow

row index of element

integer, intent(in) :: icol

column index of element

Return Value complex(kind=dp)

the element at position (irow, icol), cast to complex


Contents

None