ddmatrix-norm {pbdDMAT}R Documentation

Norm

Description

Computes the norm of a distributed matrix.

Usage

## S4 method for signature 'ddmatrix,ANY'
norm(x, type = c("O", "I", "F", "M", "2"))

Arguments

x

numeric distributed matrices.

type

character. Determines which matrix norm is to be used.

Value

Returns a number.

Methods

list("signature(x = \"ddmatrix\")")

Examples

## 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)


[Package pbdDMAT version 0.4-0 Index]