SpaceTest

class odl.core.diagnostics.space.SpaceTest(space, verbose=True, tol=1e-05)[source]

Bases: object

Automated tests for LinearSpace instances.

This class allows users to automatically test various features of a LinearSpace such as linearity and vector space operations.

__init__(space, verbose=True, tol=1e-05)[source]

Initialize a new instance.

Parameters

spaceLinearSpace

Space that should be tested.

verbosebool, optional

If True, print additional info text.

tolfloat, optional

Tolerance parameter used as a base for the actual tolerance in the tests. Depending on the expected accuracy, the actual tolerance used in a test can be a factor times this number.