Hi How this code works for multiplying f1 and transformation matrix.

And can we instead of this use this code? (in my code I’m using function multiple that gets two vectors and returns the result on another matrix.)
t = multiple(t,f1); cout << t[0];
Hi How this code works for multiplying f1 and transformation matrix.

And can we instead of this use this code? (in my code I’m using function multiple that gets two vectors and returns the result on another matrix.)
t = multiple(t,f1); cout << t[0];
Hi,
You can use your way also, it seems you’ll get the correct ans
Thanks ,
But my main question is how the code in the picture works.
It works as follows:
It multiply the top row or T with the column of F (element wise) and return the sum of it.
res= T[1][1]*F[1]+T[1][2]*F[2]+T[1][3]*F[3]…T[1][K]*F[K]
this is res.
Hit like if you get it!