PDEModel#

class cuqi.model.PDEModel(PDE, range_geometry, domain_geometry)#

Model based on an underlying cuqi.pde.PDE. In the forward method the PDE is assembled, solved and observed.

Parameters:
  • PDE (cuqi.pde.PDE) – The PDE that specifies the forward operator.

  • range_geometry (integer or cuqi.geometry.Geometry, optional) – If integer is given, a cuqi.geometry._DefaultGeometry is created with dimension of the integer.

  • domain_geometry (integer or cuqi.geometry.Geometry, optional) – If integer is given, a cuqi.geometry._DefaultGeometry is created with dimension of the integer.

Variables:
  • range_geometry – The geometry representing the range.

  • domain_geometry – The geometry representing the domain.

__init__(PDE, range_geometry, domain_geometry)#

Methods

__init__(PDE, range_geometry, domain_geometry)

forward(*args[, is_par])

Forward function of the model.

gradient(direction, *args[, ...])

Gradient of the forward operator (Direction-Jacobian product)

Attributes

domain_dim

The dimension of the domain

domain_geometry

The geometry representing the domain of the model.

number_of_inputs

The number of inputs of the model.

range_dim

The dimension of the range

range_geometry

The geometry representing the range of the model.