| ddmatrix-sumstats {pbdDMAT} | R Documentation |
Get basic summary statistics.
## S4 method for signature 'ddmatrix' sum(x, ..., na.rm = FALSE) ## S4 method for signature 'ddmatrix' mean(x, na.rm = FALSE) ## S4 method for signature 'ddmatrix' prod(x, na.rm = FALSE) ## S4 method for signature 'ddmatrix' min(x, na.rm = FALSE) ## S4 method for signature 'ddmatrix' max(x, na.rm = FALSE) ## S4 method for signature 'ddmatrix' median(x, na.rm = FALSE)
x |
numeric distributed matrix |
... |
Additional arguments. |
na.rm |
Handling of NA's. |
The return is on process 0 only.
A single value, owned by all ranks in the MPI communicator.
## Not run: # Save code in a file "demo.r" and run with 2 processors by # > mpiexec -np 2 Rscript demo.r library(pbdDMAT, quiet = TRUE) init.grid() # don't do this in production code x <- matrix(1:16, ncol=4) dx <- as.ddmatrix(x) summary(dx) finalize() ## End(Not run)