Learn R Programming

pbdDMAT (version 0.4-2)

transpose: Distributed Matrix Transpose

Description

Transposes a distributed dense matrix.

Usage

t(x)

# S4 method for ddmatrix t(x)

Arguments

x

numeric distributed matrix.

Value

The transposed matrix.

Examples

Run this code
# 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 <- solve(t(A) %*% A)
print(y)

finalize()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab