is_close Interface

public interface is_close

Returns a boolean scalar/array where two scalar/arrays are element-wise equal within a tolerance. (Specification)


Contents


Functions

private elemental module function is_close_cdp(a, b, rel_tol, abs_tol, equal_nan) result(close)

Arguments

TypeIntentOptionalAttributesName
complex(kind=dp), intent(in) :: a
complex(kind=dp), intent(in) :: b
real(kind=dp), intent(in), optional :: rel_tol
real(kind=dp), intent(in), optional :: abs_tol
logical, intent(in), optional :: equal_nan

Return Value logical

private elemental module function is_close_csp(a, b, rel_tol, abs_tol, equal_nan) result(close)

Arguments

TypeIntentOptionalAttributesName
complex(kind=sp), intent(in) :: a
complex(kind=sp), intent(in) :: b
real(kind=sp), intent(in), optional :: rel_tol
real(kind=sp), intent(in), optional :: abs_tol
logical, intent(in), optional :: equal_nan

Return Value logical

private elemental module function is_close_rdp(a, b, rel_tol, abs_tol, equal_nan) result(close)

Arguments

TypeIntentOptionalAttributesName
real(kind=dp), intent(in) :: a
real(kind=dp), intent(in) :: b
real(kind=dp), intent(in), optional :: rel_tol
real(kind=dp), intent(in), optional :: abs_tol
logical, intent(in), optional :: equal_nan

Return Value logical

private elemental module function is_close_rsp(a, b, rel_tol, abs_tol, equal_nan) result(close)

Arguments

TypeIntentOptionalAttributesName
real(kind=sp), intent(in) :: a
real(kind=sp), intent(in) :: b
real(kind=sp), intent(in), optional :: rel_tol
real(kind=sp), intent(in), optional :: abs_tol
logical, intent(in), optional :: equal_nan

Return Value logical