Main Content
coder.loop.interchange
Description
coder.loop.interchange("
prompts the code generator to interchange the loopA_ID
","loopB_ID
")for
loops with index names
loopA_ID
and loopB_ID
in the generated code.
Use this transform when accessing array elements stored in contiguous memory blocks. In such situations, the data is loaded into cache and can be reused without a cache refresh.
For more information about loop optimizations, see Optimize Loops in Generated Code.
creates a loop control object with loopObj
= coder.loop.interchange(___)transformSchedule
property set to
coder.loop.interchange
. Use the apply
method to
apply the transform to the specified loop.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2023a