Here's the question you clicked on:
angela210793
May someone help me pls???
You have matrices A(mxn) and B(nxp) how many operations of multiplication and addition are needed to calculate AxB???
AxB i take means matrix multiplication; otherwise knnown as a dot product
yes tht's wht it means
there is some 2^something jargon that i can never recall but we could try to work it out
mxn * nxp every m rows is doted to every n column; and each term is added n-1 times
1 2 3 a b c a1 + b2 + b3 = 3 multiplicataion and 2 addition for a total of 5 flops i think the term is 1x3 * 3x1 = 5 flops 123 ad 456 be cf a1+b2+c3 a4+b5+c6 def def 12 multiples and 8 adds makes 20 for a 2x3*3x2 this might take awhile lol
n*m sets of dots each dot has n multipliers in it n*m*n and each has n-1 adds in it n*n*m*(n-1) maybe
mxn nxp m*p dot products each one having n multipliers and n-1 additions might sound better to me without resorting to google lol
2x3 3x2 (2*2)(3*2) = 24 n+n-1 operations per row ....
(2*2)(3+2) = 20 that seemst o work
|dw:1329485736294:dw| don't u have n*n in there???
mxn * nxp (m*p)(n+n-1)
so a 2x2 * 2x1 2*1(2+1) = 6 operations ab 1 cd 2 a1+b2 c1+d2 2*3 = 6 operations 3x2 * 2x2 should equal 6(3), 18 flops? ab 12 cd 34 ef a1,b3 c1,d3 e1,fe and 9 more = 18
m*p(n+n-1) is good to me
this notebook rental is sooo small, hard to see the screen :/
the n parts do have n multiplications, but there is n-1 additions between them
After reading it 100 times i finally understood it :) Thank u very much ^^