Closed aljabadi closed 4 years ago
I think I've misunderstood what mat.mult
actually does. What kind of matrix multiplication is it that results in the following? Am I missing something?
library(Rfast)
#> Loading required package: Rcpp
#> Loading required package: RcppZiggurat
X <- matrix(1:4, ncol = 2)
Y <- matrix(4:1, ncol = 2)
X
#> [,1] [,2]
#> [1,] 1 3
#> [2,] 2 4
Y
#> [,1] [,2]
#> [1,] 4 2
#> [2,] 3 1
mat.mult(X, Y)
#> [,1] [,2]
#> [1,] -3.276909e+10 -1.638455e+10
#> [2,] 2.780271e-309 1.390124e-309
Created on 2020-01-23 by the reprex package (v0.3.0)
Which rfast version do you use? There was a bug in mat.mult once. Maybe I forgot to remove it... I will make some tests...
There was a bug in mat.mult. I have fixed it for the next version.
Thanks for the great package. Just wondering why
mat.mult
with long matrices crashes my RStudio:Created on 2020-01-23 by the reprex package (v0.3.0)
Best,
Al