Skip to content
ForCADDocumentation

structural_nonzero Function

public pure elemental function structural_nonzero(x) result(nonzero)

Test exact structural nonzero status for sparse/refinement coefficients. Returns false only for positive or negative floating-point zero. Every finite nonzero value, infinity, and NaN is structural; no tolerance is applied. Keeping NaNs structural allows invalid arithmetic to propagate.

Arguments

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

Return Value logical