bdtCrossprod | R Documentation |
This function performs a transposed crossproduct of numerical matrix.
bdtCrossprod(A, B = NULL, block_size = 256, paral = TRUE, threads = NULL)
A |
numerical or Delayed Array matrix |
B |
optional, numerical or Delayed Array matrix |
block_size |
(optional, defalut = 128) block size to make matrix multiplication, if 'block_size = 1' no block size is applied (size 1 = 1 element per block) |
paral, |
(optional, default = TRUE) if paral = TRUE performs parallel computation else performs seria computation |
threads |
(optional) only if bparal = true, number of concurrent threads in parallelization if threads is null then threads = maximum number of threads available |
numerical matrix with crossproduct
n <- 100 p <- 60 X <- matrix(rnorm(n*p), nrow=n, ncol=p) # without DelayedArray bdtCrossprod(X) all.equal(crossprod(X), bdtCrossprod(X)) n <- 100 p <- 100 Y <- matrix(rnorm(n*p), nrow=n) bdtCrossprod(X,Y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.