Hello, I need to make a code for two transposition matrices, and then they are counted according to the task in the picture. How can I do that? I just don't understand at all
Matrix A
|1|
|2|
|4|
Matrix B
|0|
|3|
|2|
Task
C=2A*B
transposition over the letter A or multiplication * (T)
I think I get it. The * means transposition.
So it's saying transpose A, then multiple by with B.
OP, you should practice transposing/multiplying 2x1 and 1x2 matrices first, and see the patterns there, and then see the pattern in 3x1 and 1x3. Show us what what result should be in your example problem.
https://imgur.com/a/YozrsK8
Here is a picture that shows more which matrices are in the task and which task is under them
Also, I found out code, but whether it does transpose matrices I still don't understand. And which code makes the task easier and more correct? This one or which made by lastchance?
For anyone that doesn't want to click on the screenshot, it's just saying: 2 ATB
Both your 'found' code and lastchance's do essentially the same thing.
Both are written in such a way that the A array is "pre-transposed" so you are essentially just doing a dot product and then scaling it by 2.
We have no idea what the requirements of your actual assignment are. The code in question produces the answer to the "problem" in the screenshot you have shown. If that's all you need to do, then you're done.
The code executes the multiplication/addition at run-time (assuming the compiler isn't aggressively optimizing).
Not sure what you're asking.