vectorized code

noun
UK /ˈvɛktəraɪzd kəʊd/
US /ˈvɛktəraɪzd koʊd/

Vectorized code is computer code that does many math jobs at the same time instead of one by one.

The programmer rewrote the loop as vectorized code so the image filter would run much faster.


OTHER MEANINGS

2. Code written to use special CPU instructions that act on several data values in a single step.

The compiler turned the simple loop into vectorized code using AVX instructions.

3. Code in languages like MATLAB or R that applies operations to whole arrays without explicit loops.

Her vectorized code added the two matrices with a single plus sign.

4. The output of a compiler or tool that automatically converts scalar loops into array operations.

After the optimizer ran, the vectorized code cut the runtime by half.