SpaceTest
- class odl.core.diagnostics.space.SpaceTest(space, verbose=True, tol=1e-05)[source]
Bases:
objectAutomated tests for
LinearSpaceinstances.This class allows users to automatically test various features of a
LinearSpacesuch as linearity and vector space operations.- __init__(space, verbose=True, tol=1e-05)[source]
Initialize a new instance.
Parameters
- space
LinearSpace 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.
- space