| ddmatrix-norm {pbdDMAT} | R Documentation |
Computes the norm of a distributed matrix.
## S4 method for signature 'ddmatrix,ANY'
norm(x, type = c("O", "I", "F", "M", "2"))
x |
numeric distributed matrices. |
type |
character. Determines which matrix norm is to be used. |
Returns a number.
## 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()
comm.set.seed(diff=T)
x <- ddmatrix("rnorm", 10, 10)
nrm <- norm(x)
comm.print(nrm)
finalize()
## End(Not run)