is_sorted Interface

public interface is_sorted

is_sorted provides a simple way to checking if a 1d array is sorted it is implemented for int32, int64, sp, and dp datatypes. The default is to check if an array is sorted in ascending fashion.

Usage: result = is_sorted(array, [optional] ASCENDING/DESCENDING)

Calls

interface~~is_sorted~~CallsGraph interface~is_sorted is_sorted proc~is_sorted_dp is_sorted_dp interface~is_sorted->proc~is_sorted_dp proc~is_sorted_int32 is_sorted_int32 interface~is_sorted->proc~is_sorted_int32 proc~is_sorted_int64 is_sorted_int64 interface~is_sorted->proc~is_sorted_int64 proc~is_sorted_sp is_sorted_sp interface~is_sorted->proc~is_sorted_sp

Module Procedures

private pure function is_sorted_int32(array, order) result(sorted)

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: array(:)
integer(kind=default_int), intent(in), optional :: order

Return Value logical

private pure function is_sorted_int64(array, order) result(sorted)

Arguments

Type IntentOptional Attributes Name
integer(kind=int64), intent(in) :: array(:)
integer(kind=default_int), intent(in), optional :: order

Return Value logical

private pure function is_sorted_sp(array, order) result(sorted)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(in) :: array(:)
integer(kind=default_int), intent(in), optional :: order

Return Value logical

private pure function is_sorted_dp(array, order) result(sorted)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: array(:)
integer(kind=default_int), intent(in), optional :: order

Return Value logical