| arithmetic {pbdDMAT} | R Documentation |
Binary operations for distributed matrix/distributed matrix and distributed matrix/vector operations.
## S4 method for signature 'ddmatrix,numeric' e1 + e2 ## S4 method for signature 'numeric,ddmatrix' e1 + e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 + e2 ## S4 method for signature 'ddmatrix,numeric' e1 - e2 ## S4 method for signature 'numeric,ddmatrix' e1 - e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 - e2 ## S4 method for signature 'ddmatrix,missing' e1 - e2 ## S4 method for signature 'ddmatrix,numeric' e1 * e2 ## S4 method for signature 'numeric,ddmatrix' e1 * e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 * e2 ## S4 method for signature 'ddmatrix,numeric' e1 / e2 ## S4 method for signature 'numeric,ddmatrix' e1 / e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 / e2 ## S4 method for signature 'ddmatrix,numeric' e1 ^ e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 ^ e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 %% e2 ## S4 method for signature 'ddmatrix,numeric' e1 %% e2 ## S4 method for signature 'numeric,ddmatrix' e1 %% e2 ## S4 method for signature 'ddmatrix,ddmatrix' e1 %/% e2 ## S4 method for signature 'numeric,ddmatrix' e1 %/% e2 ## S4 method for signature 'ddmatrix,numeric' e1 %/% e2
e1, e2 |
numeric distributed matrices or numeric vectors |
If e1 and e2 are distributed matrices, then they must be
conformable, on the same BLACS context, and have the same blocking
dimension.
Returns a distributed matrix.
## 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() x <- ddmatrix(1:9, 3, bldim=2) y <- (2*x) - x^(.5) print(y) finalize() ## End(Not run)