B barb New member Joined Jan 28, 2011 Messages 1 Jan 28, 2011 #1 I need help with this Compute the number of operations required to run a program that multiplies two matrices of size 20
I need help with this Compute the number of operations required to run a program that multiplies two matrices of size 20
tkhunny Moderator Staff member Joined Apr 12, 2005 Messages 11,325 Jan 28, 2011 #2 I assume you mean 20x20? Just add them up. Each of the 400 entries requires 20 multiplications and 19 additions. Of course, with much intelligent reduction available, this is only a ridiculous upper bound.
I assume you mean 20x20? Just add them up. Each of the 400 entries requires 20 multiplications and 19 additions. Of course, with much intelligent reduction available, this is only a ridiculous upper bound.