30-Crossprod | R Documentation |
Calculates the cross product of two MPCR matrices.
It uses BLAS routine gemm()
for A X B operations and syrk()
for A X A^T operations.
## S4 method for signature 'Rcpp_MPCR'
crossprod(x, y = NULL)
## S4 method for signature 'Rcpp_MPCR'
tcrossprod(x, y = NULL)
x |
An MPCR object. |
y |
Either |
Calculates cross product of two MPCR matrices performs:
x %*% y , t(x) %*% x
This function uses blas routine gemm()
for A X B operations & syrk()
for A X A^T operations.
An MPCR matrix.
library(MPCR)
x <- as.MPCR(1:16,4,4,"single")
y <- as.MPCR(1:20,4,5,"double")
z <- crossprod(x) # t(x) x
z <- tcrossprod(x) # x t(x)
z <- crossprod(x,y) # x y
z <- x %*% y # x y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.