LinearModel#

class cuqi.model.LinearModel(forward, adjoint=None, range_geometry=None, domain_geometry=None)#

Model based on a Linear forward operator.

Parameters:
  • forward (2D ndarray or callable function.) – Forward operator.

  • adjoint (2d ndarray or callable function. (optional if matrix is passed as forward))

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

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

range_geometry#

The geometry representing the range.

Type:

cuqi.geometry.Geometry

domain_geometry#

The geometry representing the domain.

Type:

cuqi.geometry.Geometry

:meth:`forward` the forward operator.
:meth:`range_dim` the dimension of the range.
:meth:`domain_dim` the dimension of the domain.
:meth:`get_matrix` returns an ndarray with the matrix representing the forward operator.
__init__(forward, adjoint=None, range_geometry=None, domain_geometry=None)#

Methods

__init__(forward[, adjoint, range_geometry, ...])

adjoint(y[, is_par])

Adjoint of the model.

forward(*args[, is_par])

Forward function of the model.

get_matrix()

gradient(direction, wrt[, is_direction_par, ...])

Gradient of the forward operator (Direction-Jacobian product)

Attributes

T

Transpose of linear model.

domain_dim

range_dim