PDEModel#
- class cuqi.model.PDEModel(PDE, range_geometry, domain_geometry)#
Model based on an underlying cuqi.pde.PDE. In the forward operation the PDE is assembled, solved and observed.
- Parameters:
forward (2D ndarray or callable function.) – Forward operator assembling, solving and observing the pde.
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, wrt[, is_direction_par, ...])Gradient of the forward operator (Direction-Jacobian product)
Attributes
The dimension of the domain
The dimension of the range