isclose_complex_dp Function

private elemental function isclose_complex_dp(a, b, atol, rtol) result(res)

@brief Compare floating point numbers for equality

@details The comparison is symmetric and decorrelates atol and rtol. A good discussion can be found here https://github.com/numpy/numpy/issues/10161

@param[in] a @param[in] b @param[in] atol The absolute tolerance. Defaults to 0. @param[in] rtol The relative tolerance. Defaults to 1e-9.

Arguments

Type IntentOptional Attributes Name
complex(kind=dp), intent(in) :: a
complex(kind=dp), intent(in) :: b
real(kind=dp), intent(in), optional :: atol
real(kind=dp), intent(in), optional :: rtol

Return Value logical


Contents