Loop unrolling threshold
Specify minimum array size width for generatingfor
loops
Model Configuration Pane:Code Generation / Optimization
Description
TheLoop unrolling thresholdspecifies the minimum array size width for which afor
loop is generated.
Dependencies
If you want to use this parameter for specifying the minimum array size width for parallelfor
-loops, Embedded Coder®is required.
Settings
5
(default)
Specify the array size at which the code generator begins to use afor
loop instead of separate assignment statements to assign values.
When there are perfectly nested loops, the code generator uses a for loop if the product of the loop counts for loops in the perfect loop nest is greater than or equal to the threshold.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | >0 |
Safety precaution | No impact |
Programmatic Use
Parameter:RollThreshold |
Type:特征向量 |
Value:valid value |
Default:'5' |
Version History
Introduced before R2006a