Because by passing r & t I'm sending the size of the matrix to the innerprod function as opposed to sending the actual input?
This is just for my understanding?
Thanks,
J
You want the dot product of row i and column j so you should pass those to your
innerproduct function, not the maximum allowed values of i and j. Since your
matrices are supposed to be square you can remove some redundancy later.
Comment