FlatteningOperator.adjoint

property FlatteningOperator.adjoint

Adjoint of the flattening, a scaled version of the inverse.

Examples

>>> space = odl.uniform_discr([-1, -1], [1, 1], shape=(2, 4))
>>> op = odl.FlatteningOperator(space)
>>> y = op.range.element([1, 2, 3, 4, 5, 6, 7, 8])
>>> 1 / space.cell_volume  # the scaling factor
2.0
>>> op.adjoint(y)
uniform_discr([-1., -1.], [ 1.,  1.], (2, 4)).element(
    [[  2.,   4.,   6.,   8.],
     [ 10.,  12.,  14.,  16.]]
)
>>> x = space.element([[1, 2, 3, 4],
...                    [5, 6, 7, 8]])
>>> abs(op.adjoint(op(x)).inner(x) - op(x).inner(op(x))) < 1e-10
True