bdCrossprod_Weighted | R Documentation |
This function performs a Crossproduct with weigths matrix t(A)
bdCrossprod_Weighted(A, W, block_size = NULL, paral = NULL, threads = NULL)
A |
a double matrix. |
W |
a Weighted 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 |
Matrix with t(A)
# with numeric matrix m <- 500 k <- 1500 n <- 400 A <- matrix(rnorm(n*k), nrow=n, ncol=k) B <- matrix(rnorm(n*k), nrow=k, ncol=n) # Serial execution Serie <- bdCrossprod_Weighted(A, B, paral = FALSE) # Parallel execution with 2 threads and blocks 256x256 Par_2cor <- bdCrossprod_Weighted(A, B, paral = TRUE, block_size = 256, threads = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.