Multiplying matrices in C++
I have recently come across a (click-bait) post on X claiming that multiplying two 1000×1000 matrices in Python was several times faster than in C++ or other languages. So how do you multiply matrices in C++? Let’s see. First of all, how do you multiply matrices? It’s pretty simple: Here, c11 is computed as follows: … Read more