belongs_to Interface

public interface belongs_to

Check if
belongs to if there is at least one element in for which


Contents


Module Procedures

public function belongs_to_int(x, A) result(bool)

Check if a value belongs to a set

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: x
integer, dimension(:):: A

Return Value logical

public function belongs_to_r32(x, A, eps) result(bool)

Check if a value belongs to a set within a certain tolerance . If is not specified, it will automatically calculated using the function

Arguments

Type IntentOptional AttributesName
real(kind=real32), intent(in) :: x
real(kind=real32), dimension(:):: A
real(kind=real32), optional :: eps

Return Value logical

public function belongs_to_r64(x, A, eps) result(bool)

Check if a value belongs to a set within a certain tolerance . If is not specified, it will automatically calculated using the function

Arguments

Type IntentOptional AttributesName
real(kind=real64), intent(in) :: x
real(kind=real64), dimension(:):: A
real(kind=real64), optional :: eps

Return Value logical