May-01-2019, 08:22 AM
Dear All
Coming from matlab, I'm progessively moving to Numpy/Python; I'm looking if the following calculation can be done (I looked tuto and so on with no sucess so far):
(Matlab code)
Note the dot "." in front of the "*" that uses vectorization and provides a new vector [6, 14, 24, 36, 50].
Does somebody ever experienced such vectorization?
Thanks for your feedback
Paul
Coming from matlab, I'm progessively moving to Numpy/Python; I'm looking if the following calculation can be done (I looked tuto and so on with no sucess so far):
(Matlab code)
Quote:a = (1:5)'
b = (6:10)'
c = a .* b
Note the dot "." in front of the "*" that uses vectorization and provides a new vector [6, 14, 24, 36, 50].
Does somebody ever experienced such vectorization?
Thanks for your feedback
Paul