coder.loop.vectorize
Description
coder.loop.vectorize("
prompts the
code generator to vectorize the loopID
")for
loop with index name
loopID
in the generated code.
The generated code uses the SIMD instruction set for your target hardware in the
generated code. Set the InstructionSetExtensions
property in your code
configuration object according to your hardware requirements to apply this transform.
For more information about loop optimizations, see Optimize Loops in Generated Code.
creates a loop control object with loopObj
= coder.loop.vectorize(___)transformSchedule
property set to
coder.loop.vectorize
. Use the apply
method to apply
the transform to the specified loop.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2023a