Expand description
Optional NaN/Inf guards gated by crate::DENY_NAN / crate::DENY_INF.
Optional NaN/Inf guards for debugging numerical issues.
Both checks are gated by the compile-time flags crate::DENY_NAN /
crate::DENY_INF (both false by default). When the flags are off the
functions compile down to nothing — there is no runtime cost in release
builds — so calls can be sprinkled liberally through the forward passes.
Functions§
- sanity
- Panics if
tcontains aNaN(whencrate::DENY_NANis set) or anInf(whencrate::DENY_INFis set). A no-op when both flags arefalse. - sanity_
nan - Like
sanitybut checks only forNaN(ignoresInf).