Matrix multiplication, Cross and Tcross product.
Matrix multiplication, Cross and Tcross product.
mat.mult(x, y) Crossprod(x,y) Tcrossprod(x,y)
x |
A numerical matrix. |
y |
A numerical matrix. |
The functions performs matrix multiplication, croos product and transpose cross product. There are faster(!) than R's function for large matrices. Depending on the computer, maybe higher dimensions are required for the function to make a difference. The function runs in parallel in C++.
A matrix, the result of the matrix multiplication.
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>
## Not run: x <- matrnorm(100, 100) y <- matrnorm(100, 100) a <- x b <- mat.mult(x, y) b <- Crossprod(x, y) b <- Tcrossprod(x, y) x <- NULL y <- NULL b <- NULL ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.