Matrix multiplication | R Documentation |
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>
transpose, colsums
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.