| ddmatrix-print {pbdDMAT} | R Documentation |
Print method for a distributed matrices.
print(x, ...) ## S4 method for signature 'ddmatrix' print(x, ..., all = FALSE, name = "x") ## S4 method for signature 'ddmatrix' show(object)
x, object |
numeric distributed matrix |
... |
additional arguments |
all |
control for whether the entire distributed matrix should be printed to standard output |
name |
character string that will be printed to standard output along with the matrix elements |
Print method for class ddmatrix.
If argument all=TRUE, then a modified version of the ScaLAPACK TOOLS
routine PDLAPRNT is used to print the entire distributed matrix. The matrix
will be printed in column-major fashion, with one element of the matrix per
line. If all=FALSE then the name= argument is ignored.
The function silently returns 0.
## 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) print(dx) print(dx, all=T) finalize() ## End(Not run)