| Comparators {pbdDMAT} | R Documentation |
Logical comparisons.
## S4 method for signature 'ddmatrix,ddmatrix' e1 == e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 != e2 ## S4 method for signature 'ddmatrix' all(x, na.rm = FALSE) ## S4 method for signature 'ddmatrix' any(x, na.rm = FALSE) ## S4 method for signature 'ddmatrix,ddmatrix' e1 < e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 > e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 <= e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 >= e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 | e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 & e2 ## S4 method for signature 'ddmatrix,numeric' e1 < e2 ## S4 method for signature 'numeric,ddmatrix' e1 < e2 ## S4 method for signature 'ddmatrix,numeric' e1 > e2 ## S4 method for signature 'numeric,ddmatrix' e1 > e2 ## S4 method for signature 'ddmatrix,numeric' e1 <= e2 ## S4 method for signature 'numeric,ddmatrix' e1 <= e2 ## S4 method for signature 'ddmatrix,numeric' e1 >= e2 ## S4 method for signature 'numeric,ddmatrix' e1 >= e2 ## S4 method for signature 'ddmatrix,numeric' e1 == e2 ## S4 method for signature 'numeric,ddmatrix' e1 == e2 ## S4 method for signature 'ddmatrix,numeric' e1 != e2 ## S4 method for signature 'numeric,ddmatrix' e1 != e2 ## S4 method for signature 'ddmatrix,numeric' e1 | e2 ## S4 method for signature 'numeric,ddmatrix' e1 | e2 ## S4 method for signature 'ddmatrix,numeric' e1 & e2 ## S4 method for signature 'numeric,ddmatrix' e1 & e2
e1, e2, x |
distributed matrix or numeric vector |
na.rm |
logical, indicating whether or not |
Performs the indicated logical comparison.
If na.rm is TRUE and only NA's are present, then
TRUE is returned.
Returns a distributed matrix.
## 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(sample(0, 1, 9, replace=T), 3) comm.print(x) x <- as.ddmatrix(x, bldim=2) y <- any(x) comm.print(y) finalize() ## End(Not run)