ProductSpaceCustomNorm

class odl.core.space.pspace.ProductSpaceCustomNorm(norm)[source]

Bases: CustomNorm

Class for handling a user-specified norm on ProductSpace.

Note that this removes inner.

__init__(norm)[source]

Initialize a new instance.

Parameters

normcallable

The norm implementation. It must accept a ProductSpaceElement argument, return a float and satisfy the following conditions for all space elements x, y and scalars s:

  • ||x|| >= 0

  • ||x|| = 0 if and only if x = 0

  • ||s * x|| = |s| * ||x||

  • ||x + y|| <= ||x|| + ||y||