makeWorker.Rd
The function makeWorker
returns an object of the
appropriate type based on a computation definition and sets the
data for the object. The types of objects that can be created
depend upon the available computations
makeWorker(defn, data, pubkey_bits = NULL, pubkey_n = NULL, den_bits = NULL)
defn | the computation definition |
---|---|
data | the data for the computation |
pubkey_bits | the number of bits for the public key (used only
if |
pubkey_n | the |
den_bits | the number of bits for the denominator (used only
if |
a worker object of the appropriate class based on the definition