I need to have a 4×4 matrix like this:
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
represented as an array like this:
[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16]
How do I multiply two such “matrices”? I’ve been struggling with how to make the work for a few days now. I’m thinking this would require three for loops? Maybe two? Would they go to 4 or 16? Some pseudocode would be greatly appreciated 🙁
I think I did it!
result = A*B: