Learn R Programming

pmclust (version 0.1-4)

as.dmat: Convert X.spmd to X.dmat

Description

This function will convert a matrix of format from SPDM row-major to ddmatrix.

Usage

as.dmat(X.spmd, bldim = c(2, 2), ICTXT = 0, comm = .SPMD.CT$comm)

Arguments

X.spmd
an input dataset of format SPMD row-major to be converted.
bldim
block dimension, see pbdBASE for details.
ICTXT
block context, see pbdBASE for details.
comm
communicator, see pbdMPI for details.

Value

  • A ddmatrix is returned.

Details

This function will provide a quick conversion to the input data X.spmd which is a default dataset to be clustered in pmclust. Usually, this matrix is distributed in SPMD row-major format. For fully utilizing pbdBASE and pbdDMAT, it need to be converted to ddmatrix format.

References

High Performance Statistical Computing (HPSC) Website: http://thirteen-01.stat.iastate.edu/snoweye/hpsc/

Programming with Big Data in R Website: http://r-pbd.org/

See Also

kmeans.step.dmat.

Examples

Run this code
# Examples can be found in the help pages of
# kmeans.step.dmat().

Run the code above in your browser using DataLab