Python Forum
row multiplication using vectorization
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
row multiplication using vectorization
#1
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)
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
Reply


Messages In This Thread
row multiplication using vectorization - by paul18fr - May-01-2019, 08:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Material for vectorization paul18fr 0 1,674 Sep-17-2019, 10:13 AM
Last Post: paul18fr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020