Support nonfinite numbers
Support for nonfinite values
Description
App Configuration Pane: Speed
Configuration Objects: coder.CodeConfig | coder.EmbeddedCodeConfig
The parameter Support nonfinite numbers specifies whether the code generator supports nonfinite values and operations.
If you disable support for nonfinite numbers, the code generator produces an error if there are nonfinite values or expressions in the MATLAB® code. In addition, even if the MATLAB code does not use nonfinite values or expressions, the behavior of the generated code can be inconsistent with MATLAB behavior if you pass the generated code nonfinite values.
However, if you disable support for nonfinite numbers, the code generator can use certain optimizations because it assumes that the MATLAB code does not use nonfinite data.
Dependencies
To enable this parameter, select the Support only purely-integer numbers check box.
If you select both the Support nonfinite numbers parameter and the Generate nonfinite support files if used parameter, the code generator produces code to support nonfinite values and expressions only if the MATLAB code uses nonfinite values or expressions.
If you select the Support nonfinite numbers parameter and clear the Generate nonfinite support files if used parameter, the code generator always produces code to support nonfinite values and expressions.
Settings
- On
This value is the default value.
If Generate nonfinite support files if used is also selected, the code generator produces code to support nonfinite values and expressions only if the MATLAB code uses nonfinite values or expressions. If Generate nonfinite support files if used is cleared, the code generator always produces code to support nonfinite values and expressions.
- Off
The code generator does not produce code to support nonfinite values or expressions. Code generation fails if the MATLAB code uses nonfinite values or expressions.
Programmatic Use
Property:
SupportNonFinite |
Values: true |
false |
Default: true |
Version History
Introduced in R2011a