| isdot {pbdDMAT} | R Documentation |
Functions to check for various types.
is.ddmatrix(x) ## S4 method for signature 'ddmatrix' is.na(x) ## S4 method for signature 'ddmatrix' is.nan(x) ## S4 method for signature 'ddmatrix' is.numeric(x) ## S4 method for signature 'ddmatrix' is.infinite(x)
x |
numeric distributed matrix |
Performs the appropriate type check.
Returns boolean in the case of is.numeric() and
is.ddmatrix(), otherwise a distributed matrix.
## Not run:
# Save code in a file "demo.r" and run with 2 processors by
# > mpiexec -np 2 Rscript demo.r
suppressPackageStartupMessages(library(pbdDMAT, quiet=T))
init.grid()
comm.set.seed(seed=1234, diff=TRUE)
x <- ddmatrix("rnorm", 5, 5, bldim=2)
test <- comm.any(is.na(x))
comm.print(test)
x[1,1] <- NA
test <- comm.any(is.na(x))
comm.print(test)
finalize()
## End(Not run)