is_close Interface

public interface is_close

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


Functions

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

Arguments

Type IntentOptional Attributes Name
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

Type IntentOptional Attributes Name
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

Type IntentOptional Attributes Name
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

Type IntentOptional Attributes Name
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