Skip to main content

san

Function san 

Source
pub fn san<B: Backend, const D: usize>(t: &F<B, D>)
Expand description

Primitive analogue of crate::modules::sanity for F.

Panics if t contains a NaN (when crate::DENY_NAN is set) or an Inf (when crate::DENY_INF is set). A no-op — with no device read — when both flags are false (the default), so it can be sprinkled through the backward math at no release-build cost.