altar.cuda.models.cudaParameterSet

Module Contents

Classes

class altar.cuda.models.cudaParameterSet.cudaParameterSet(name, locator, **kwds)

Bases: altar.models.Contiguous.Contiguous

A contiguous parameter set

count
doc = the number of parameters in this set
prior
doc = the prior distribution
prep
doc = the distribution to use to initialize this parameter set
offset = 0
cuInitialize(self, application)

cuda initialization

cuInitSample(self, theta, batch=None)

Fill {theta} with an initial random sample from my prior distribution.

cuEvalPrior(self, theta, prior, batch=None)

Fill {priorLLK} with the log likelihoods of the samples in {theta} in my prior distribution

cuVerify(self, theta, mask, batch=None)

Check whether the samples in {step.theta} are consistent with the model requirements and update the {mask}, a vector with zeroes for valid samples and non-zero for invalid ones

cuRestrict(self, theta)

Return my portion of the sample matrix {theta}