is_equal Interface

public interface is_equal

interface to check equality between values/arrays


Contents


Module Procedures

private elemental function real_is_equal(value, base, tol)

Equality check between real values

Arguments

TypeIntentOptionalAttributesName
real(kind=dp), intent(in) :: value

the real value(s) to check

real(kind=dp), intent(in) :: base

the value(s) to compare against

real(kind=dp), intent(in), optional :: tol

optional tolerance

Return Value logical

private elemental function complex_is_equal(value, base, tol)

Equality check between complex values

Arguments

TypeIntentOptionalAttributesName
complex(kind=dp), intent(in) :: value

the real value(s) to check

complex(kind=dp), intent(in) :: base

the value(s) to compare against

real(kind=dp), intent(in), optional :: tol

optional tolerance

Return Value logical