Learn R Programming

pbdDMAT (version 0.2-3)

kappa: Compute or estimate the Condition Number of a Distributed Matrix

Description

Computes or estimates the condition number.

Usage

## S3 method for class 'ddmatrix':
kappa(z, exact = FALSE, norm = NULL,
                           method = c("qr", "direct"), ...)
## S3 method for class 'ddmatrix':
rcond(x, norm = c("O", "I", "1"), 
                           triangular = FALSE, ...)

Arguments

x,z
numeric distributed matrices.
exact
logical. Determines whether exact condition number or approximation should be computed.
norm
character. Determines which matrix norm is to be used.
method
character. Determines the method use in computing condition number.
triangular
logical. If true, only the lower triangle is used.
...
Extra arguments.

Value

  • Returns a number.

See Also

Norm

Examples

Run this code
# 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)

cnm <- rcond(x)

comm.print(cnm)

finalize()

Run the code above in your browser using DataLab