That is incorrect, notice that the two examples are summing vectors of the same length (one masquerading as a nx1 array) and the you get a speedup factor of two on the array but not on the vector.
That is incorrect, notice that the two examples are summing vectors of the same length (one masquerading as a nx1 array) and the you get a speedup factor of two on the array but not on the vector.