Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
matrix by vector
#4
maybe have a look of the indentation of "newarray.append(s)" line (go back once on the left) and the result is identical to numpy.dot

I've a comment/advice: dynamic allocation memory is costly (using append) and you must initiate your matrix/array before any calculation (using numpy.zeros)
Reply


Messages In This Thread
matrix by vector - by mcgrim - Apr-29-2019, 09:40 PM
RE: matrix by vector - by ichabod801 - Apr-29-2019, 10:17 PM
RE: matrix by vector - by mcgrim - May-01-2019, 08:36 AM
RE: matrix by vector - by paul18fr - May-01-2019, 09:39 AM
RE: matrix by vector - by ichabod801 - May-01-2019, 11:09 AM
RE: matrix by vector - by mcgrim - May-01-2019, 07:04 PM
RE: matrix by vector - by ichabod801 - May-01-2019, 07:59 PM
RE: matrix by vector - by mcgrim - May-01-2019, 08:07 PM
RE: matrix by vector - by ichabod801 - May-02-2019, 10:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create a function vector Cooketaker 4 1,935 Dec-27-2022, 08:22 PM
Last Post: Cooketaker
  Vector field cross product Eduard 2 3,348 Aug-20-2018, 02:54 PM
Last Post: Eduard

Forum Jump:

User Panel Messages

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