# math: Miscellaneous Mathematical Functions In pbdDMAT: 'pbdR' Distributed Matrix Methods

## Description

Binary operations for distributed matrix/distributed matrix and distributed matrix/vector operations.

## Usage

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47``` ```## S4 method for signature 'ddmatrix' sqrt(x) ## S4 method for signature 'ddmatrix' abs(x) ## S4 method for signature 'ddmatrix' exp(x) ## S4 method for signature 'ddmatrix' log(x, base = exp(1)) ## S4 method for signature 'ddmatrix' log2(x) ## S4 method for signature 'ddmatrix' log10(x) ## S4 method for signature 'ddmatrix' log1p(x) ## S4 method for signature 'ddmatrix' sin(x) ## S4 method for signature 'ddmatrix' cos(x) ## S4 method for signature 'ddmatrix' tan(x) ## S4 method for signature 'ddmatrix' asin(x) ## S4 method for signature 'ddmatrix' acos(x) ## S4 method for signature 'ddmatrix' atan(x) ## S4 method for signature 'ddmatrix' sinh(x) ## S4 method for signature 'ddmatrix' cosh(x) ## S4 method for signature 'ddmatrix' tanh(x) ```

## Arguments

 `x` numeric distributed matrix `base` a positive number: the base with respect to which logarithms are computed. Defaults to e='exp(1)'.

## Details

Performs the miscellaneous mathematical calculation on a distributed matrix.

## Value

Returns a distributed matrix.

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17``` ```## 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:9, 3) x <- as.ddmatrix(x) y <- sqrt(abs(log(x/10))) comm.print(y) finalize() ## End(Not run) ```

pbdDMAT documentation built on May 29, 2017, 1:23 p.m.