bdblockmult_sparse | R Documentation |
This function performs a block matrix-matrix multiplication with numeric matrix
bdblockmult_sparse(A, B, paral = NULL, threads = NULL)
A |
a sparse double matrix. |
B |
a sparse double matrix. |
paral, |
(optional, default = TRUE) if paral = TRUE performs parallel computation else performs seria computation |
threads |
(optional) only if paral = true, number of concurrent threads in parallelization if threads is null then threads = maximum number of threads available |
Sparse matrix with results
library(Matrix) library(BigDataStatMeth) k <- 1e3 set.seed(1) x_sparse <- sparseMatrix( i = sample(x = k, size = k), j = sample(x = k, size = k), x = rnorm(n = k) ) set.seed(2) y_sparse <- sparseMatrix( i = sample(x = k, size = k), j = sample(x = k, size = k), x = rnorm(n = k) ) d <- bdblockmult_sparse(x_sparse, y_sparse)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.