my_digital_garden/4a1s/CP/PL - Aula 4.md

500 B

4 de Outubro 2023 - #CP

Ex. 2

a) Limitações vetoriais

A -> consecutive elements in a row -> consecutive access in the vector C -> same element B -> consecutive elements in a collumn

Não vai ser vetorizável.

b)

result of change cycles to i, k , j : A -> same element C -> consecutive elements in a row -> consecutive access in the vector B -> consecutive elements in a row -> consecutive access in the vector

i k j 0 0 1

Vai ser vetorizável.

128b 8B -> 64b 2 elements