structural_nonzero Function
- Seyed Ali Ghasemi
- BSD 3-Clause
- 4 statements
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 | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | x |