NormOperator

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

Bases: 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__(x[, out])

Return self(x[, out, **kwargs]).

derivative(point)

Derivative of this operator in point.

norm([estimate])

Return the operator norm of this operator.

__init__(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