samples

odl.diagnostics.examples.samples(\*sets)[source]

Generate samples from the given sets using their examples method.

Parameters
set1, …, setNSet instance

Set(s) from which to generate the samples.

Returns
samplesgenerator

Generator that yields tuples of examples from the sets.

Examples

>>> R, C = odl.RealNumbers(), odl.ComplexNumbers()
>>> for [name_x, x], [name_y, y] in samples(R, C): pass  # use examples