The time complexity of the matrix product is $O(n^3)$ if calculated normally for each element.
If computed on GPU, is it $O(n)$?
What I thought:
- GPU can compute each element of the matrix product in parallel.
- Each element is computed by a inner product of vectors $\sum_{k=1}^n a_kb_k$
- Each $a_kb_k$ can be calculated in parallel, but the sum takes $O(n)$