c++ - How do you multiply a matrix by itself? -


It's up to me yet, but I do not think it's right.

  (matrix [i] [j] + = matrix [i] [j] * for matrix [i] (int i = 0; i  

I do not think you can increase a matrix by yourself.

For
  (i = 0; i <5; i ++) {For (j = 0; j & lt; 5; j ++) {product [i] [j] = 0; for (k = 0; k & lt; 5; k ++) {product [i] [J] + = matrix [i] [k] * matrix [k] [j];}}}  

Even if you minus nothing and iuml; matrix times ( I.e. (n 3 ) use some other than algorithm, even if you have additional storage.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -