altar.models.seismic.cuda.cudaStatic

Module Contents

Classes

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

Bases: altar.cuda.models.cudaBayesian.cudaBayesian

cudaLinear with the new cuda framework

dataobs
default
doc = the observed data
green
doc = the name of the file with the Green functions
GF
gGF
gDataPred
cublas_handle
initialize(self, application)

Initialize the state of the model given a {problem} specification

forwardModelBatched(self, theta, green, prediction, batch, observation=None)

Linear Forward Model prediction= G theta

forwardModel(self, theta, green, prediction, observation=None)

Static/Linear forward model prediction = green * theta :param theta: a parameter set, vector with size parameters :param green: green’s function, matrix with size (observations, parameters) :param prediction: data prediction, vector with size observations :return: data prediction if observation is none; otherwise return residual

cuEvalLikelihood(self, theta, likelihood, batch)

Compute data likelihood from the forward model, :param theta: parameters, matrix [samples, parameters] :param likelihood: data likelihood P(d|theta), vector [samples] :param batch: the number of samples to be computed, batch <=samples :return: likelihood, in case of model ensembles, data likelihood of this model is added to the input likelihood

mergeCovarianceToGF(self)

merge data covariance (cd) with green function

forwardProblem(self, application, theta=None)

Perform the forward modeling with given {theta}