coder.loop.unrollAndJam
Description
coder.loop.unrollAndJam("
prompts the code generator to unroll and jam the loop with index name
loopID
",unrollFactor
)loopID
by a factor specified by unrollFactor
in the
generated code.
Unroll and jam transforms are usually applied to perfectly nested loops, which are loops where all data elements are accessed within the inner loop. This transform unrolls the body of the inner loop according to the loop index of the outer loop.
For more information about loop optimizations, see Optimize Loops in Generated Code.
creates a loop control object with loopObj
= coder.loop.unrollAndJam(___)transformSchedule
property set to
coder.loop.unrollAndJam
. Use the apply
method to
apply the transform to the specified loop.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2023a