PointwiseInnerBase

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

Bases: odl.operator.tensor_ops.PointwiseTensorFieldOperator

Base class for PointwiseInner and PointwiseInnerAdjoint.

Implemented to allow code reuse between the classes.

Attributes
adjoint

Adjoint operator.

base_space

Base space X of this operator’s domain and range.

domain

Set of objects on which this operator can be evaluated.

inverse

Return the operator inverse.

is_functional

True if this operator’s range is a Field.

is_linear

True if this operator is linear.

is_weighted

True if weighting is not 1 or all ones.

range

Set in which the result of an evaluation of this operator lies.

vecfield

Fixed vector field G of this inner product.

weights

Weighting array of this operator.

Methods

_call(self, x[, out])

Implementation of the operator evaluation.

derivative(self, point)

Return the operator derivative at point.

norm(self[, estimate])

Return the operator norm of this operator.

__init__(self, 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.