regarding some problems

sir,
i have successfully completed vectorization but i am not getting these points…

  1. why vectorization is fast?
  2. what is the benefit of vectorization?

Why is vectorisation fast: lets say your CPU can process vectors of 4 float values in a single instruction. That means 4 operations get done at once. If you don’t vectorise your code then the CPU defaults to processing only 1 float in an instruction. That’s why vectorisation makes your code faster.

Thank You :smiley: