as functions: Convert between X.gbd (X.spmd) and X.dmat
Description
This function will convert a matrix of format from
GBD row-major to ddmatrix vice versa.
Usage
as.dmat(X.spmd, bldim = .pbd_env$BLDIM, ICTXT = .pbd_env$ICTXT,
comm = .pbd_env$SPMD.CT$comm) as.gbd(X.dmat, comm = .pbd_env$SPMD.CT$comm)
as.spmd(X.dmat, comm = .pbd_env$SPMD.CT$comm)
Arguments
X.spmd
an input dataset of format GBD/SPMD row-major to be converted.
X.dmat
an input dataset of format ddmatrix
to be converted.
bldim
block dimension, see pbdBASE and pbdDMAT for details.
ICTXT
block context, see pbdBASE and pbdDMAT 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 GBD row-major format. For fully utilizing
pbdBASE and pbdDMAT, it need to be converted to ddmatrix
format.
Examples
Run this code# NOT RUN {
# Examples can be found in the help pages of
# kmeans.step.dmat().
# }
Run the code above in your browser using DataLab