allclose Function

public function allclose(x, y, rtol)

Check whether all elements of two arrays agree within rtol.

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: x(:)

First array

real(kind=pr), intent(in) :: y(:)

Second array

real(kind=pr), intent(in) :: rtol

Relative tolerance

Return Value logical


Calls

proc~~allclose~~CallsGraph proc~allclose allclose proc~rel_error rel_error proc~allclose->proc~rel_error