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)

Arguments

defn

the computation definition

data

the data for the computation

pubkey_bits

the number of bits for the public key (used only if he is TRUE in computation definition)

pubkey_n

the n for public key (used only if he is TRUE in computation definition)

den_bits

the number of bits for the denominator (used only if he is TRUE in computation definition)

Value

a worker object of the appropriate class based on the definition

See also