vector.FastMathFlags enum¶
IEEE 754 fast-math relaxation flags for float operations. nnan and ninf are independent author promises, not runtime checks or requests to clamp results. Together they guarantee finite floating-point results, but do not imply exact representability in a narrower type or absence of subnormals. Behavior outside an authored promise is not constrained by the operation's ordinary special-value contract. Flags do not refine unrelated uses of an operand.
Cases¶
| Keyword | Value | Description |
|---|---|---|
reassoc |
1 | Allow reassociation. |
nnan |
2 | Assume floating-point operands and results are not NaN, independently for every vector element. |
ninf |
4 | Assume floating-point operands and results are not infinite, independently for every vector element. |
nsz |
8 | Permit treating positive and negative zero as interchangeable; this does not exclude zero results. |
arcp |
16 | Allow reciprocal approximation. |
contract |
32 | Allow contractions (FMA). |
afn |
64 | Approximate functions. |
fast |
127 | All of the above. |
Used by¶
vector.absf.fastmathvector.acosf.fastmathvector.acoshf.fastmathvector.addf.fastmathvector.asinf.fastmathvector.asinhf.fastmathvector.atan2f.fastmathvector.atanf.fastmathvector.atanhf.fastmathvector.cbrtf.fastmathvector.ceilf.fastmathvector.clampf.fastmathvector.cmpf.fastmathvector.copysignf.fastmathvector.coshf.fastmathvector.divf.fastmathvector.dotf.fastmathvector.erfcf.fastmathvector.erff.fastmathvector.exp2f.fastmathvector.expf.fastmathvector.expm1f.fastmathvector.floorf.fastmathvector.fmaf.fastmathvector.geluf.fastmathvector.log10f.fastmathvector.log1pf.fastmathvector.log2f.fastmathvector.logf.fastmathvector.logisticf.fastmathvector.maximumf.fastmathvector.maxnumf.fastmathvector.minimumf.fastmathvector.minnumf.fastmathvector.mulf.fastmathvector.negf.fastmathvector.powf.fastmathvector.reduce.axes.fastmathvector.reduce.fastmathvector.remf.fastmathvector.roundevenf.fastmathvector.roundf.fastmathvector.rsqrtf.fastmathvector.siluf.fastmathvector.sinhf.fastmathvector.softplusf.fastmathvector.sqrtf.fastmathvector.subf.fastmathvector.tanf.fastmathvector.tanhf.fastmathvector.truncf.fastmath