Closed linliu-stats closed 4 years ago
Also, it seems that mat.mult changes the result from time to time...
a [,1] [,2] [1,] 1 4 [2,] 2 5 [3,] 3 6 b [,1] [,2] [1,] 1 3 [2,] 2 4 mat.mult(a, b) [,1] [,2] [1,] 9 19 [2,] 12 26 mat.mult(a, b) [,1] [,2] [1,] 11 23 [2,] 10 24 mat.mult(a, b) [,1] [,2] [1,] 7 15 [2,] 9 23 mat.mult(a, b) [,1] [,2] [1,] 5 11 [2,] 11 25 mat.mult(a, b) [,1] [,2] [1,] 9 19 [2,] 12 26
We know this is wrong and we will fix it. This mistake has been pointed out by other users as well.
While I'm trying to use mat.mult instead of %*% to do matrix multiplication, I get wrong results. Please see the following as an example:
What's interesting is that I don't have such a problem two months ago the last time I used mat.mult. Any help will be appreciated.