| binds {pbdDMAT} | R Documentation |
Row and column binds.
## S4 method for signature 'ANY' rbind(..., ICTXT = .pbd_env$ICTXT, deparse.level = 1) ## S4 method for signature 'ANY' cbind(..., ICTXT = .pbd_env$ICTXT, deparse.level = 1)
... |
vectors, matrices, or distributed matrices. |
ICTXT |
BLACS communicator number for return object. |
deparse.level |
integer controlling the construction of labels in the case of non-matrix-like arguments. Does nothing for distributed matrices. |
The ... list of arguments can be vectors, matrices, or distributed
matrices so long as non-distributed objects are not used with distributed
objects. This kind of mixing-and-matching will lead to chaos. Currently no
check is performed to prevent the user from this mixing-and-matching for
performance reasons (it is slow enough already).
Returns a vector, matrix, or distributed matrix, depending on input.
an R object.
## 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() x <- ddmatrix(1:16, ncol=4, bldim=2) y <- rbind(x, x) print(y) finalize() ## End(Not run)