PVM.unpack {rpvm}R Documentation

Unpacking data

Description

Unpack data from current active receive buffer.

Usage

.PVM.upkdouble (nitem = 1, stride = 1)
.PVM.upkint (nitem = 1, stride = 1)
.PVM.upkstr (maxlen = 200)

.PVM.upkintvec ()
.PVM.upkdblvec ()
.PVM.upkstrvec ()

.PVM.upkintmat ()
.PVM.upkdblmat ()
.PVM.upkstrmat ()

.PVM.upkfactor ()

Arguments

nitem number of items to unpack.
stride the stride to be used when unpacking the items. For example, if stride = 2 with .PVM.upkdouble then every other element in the buffer will be unpacked.
maxlen maximum length of the string buffer

Details

These functions unpack data packed by corresponding .PVM.pk* functions. The first two functions .PVM.upkdoubl and .PVM.upkint are lower-level correspondents of the PVM library and require the number of items to unpack as an argument.

.PVM.upkstr is used to unpack a string send by C functions or .PVM.pkstr. It requires an argument maxlen that should be larger than the length of the string passed. For packing and unpacking strings between R processes, .PVM.pkstrvec and .PVM.upkstrvec can be used (in the case, the maximum length is part of the message).

Value

Return unpacked data.

Author(s)

Na (Michael) Li nali@umn.edu and A.J. Rossini rossini@u.washington.edu

References

PVM documentation

See Also

PVM.pack

Examples

## Unpack a matrix
## Not run: a <- .PVM.upkdblmat ()

[Package rpvm version 0.6-2 Index]