is_zero Interface

public interface is_zero

interface to check if values/arrays are zero


Contents


Module Procedures

private elemental function real_is_zero(value, tol)

Checks if real values are zero

Arguments

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

the real value(s) to check

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

optional tolerance

Return Value logical

private elemental function complex_is_zero(value, tol)

Checks if complex values are zero

Arguments

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

the complex value(s) to check

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

optional tolerance

Return Value logical