NormOperator

class odl.operator.default_ops.NormOperator(*args, **kwargs)[source]

Bases: odl.operator.operator.Operator

Vector space norm as an operator.

Implements:

NormOperator()(x) <==> x.norm()

This is only applicable in normed spaces, i.e., spaces implementing a norm method.

See also

InnerProductOperator

Inner product with a fixed space element.

DistOperator

Distance to a fixed space element.

Attributes
adjoint

Adjoint of this operator (abstract).

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.

range

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

Methods

_call(self, x)

Return the norm of x.

derivative(self, point)

Derivative of this operator in point.

norm(self[, estimate])

Return the operator norm of this operator.

__init__(self, space)[source]

Initialize a new instance.

Parameters
spaceLinearSpace

Space to take the norm in.

Examples

>>> r2 = odl.rn(2)
>>> op = NormOperator(r2)
>>> op([3, 4])
5.0