Description Usage Arguments Value
View source: R/spadd_allreduce.r
Given a sparse matrix on each process, this computes the sum of all of those matrices. The return will be stored as a sparse matrix, although it is not guaranteed to be sparse.
1 2 3 4 5 6 7 8 9 | spadd_allreduce(x, comm = 0L, type = "double")
spadd_reduce(x, root = 0L, comm = 0L, type = "double")
## S3 method for class 'dgCMatrix'
spadd_allreduce(x, comm = 0L, type = "double")
## S3 method for class 'dgCMatrix'
spadd_reduce(x, root = 0L, comm = 0L, type = "double")
|
x |
The input data. Should be a sparse |
comm |
MPI communicator number. |
type |
The type used for the intermediate operations. Should be one of "double" or "float". |
root |
MPI rank that should receive the return in the non-all version. |
If the all version is called or if the calling rank is equal to root
,
then a sparse "dgCMatrix"
object is returned, and otherwise
NULL
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.