PointwiseInnerBase

class odl.core.operator.tensor_ops.PointwiseInnerBase(*args, **kwargs)[source]

Bases: PointwiseTensorFieldOperator

Base class for PointwiseInner and PointwiseInnerAdjoint.

Implemented to allow code reuse between the classes.

__init__(adjoint, vfspace, vecfield, weighting=None)[source]

Initialize a new instance.

All parameters are given according to the specifics of the “usual” operator. The adjoint parameter is used to control conversions for the inverse transform.

Parameters

adjointbool

True if the operator should be the adjoint, False otherwise.

vfspaceProductSpace

Space of vector fields on which the operator acts. It has to be a product space of identical spaces, i.e. a power space.

vecfieldvfspace element-like

Vector field with which to calculate the point-wise inner product of an input vector field

weightingarray-like or float, optional

Weighting array or constant for the norm. If an array is given, its length must be equal to len(domain). By default, the weights are is taken from domain.weighting. Note that this excludes unusual weightings with custom inner product, norm or dist.