CartesianProduct

class odl.set.sets.CartesianProduct(*sets)[source]

Bases: odl.set.sets.Set

Cartesian product of a finite number of sets.

The elements of this set are tuples where the i-th entry is an element of the i-th set.

Attributes
examples

Generator creating name-value pairs of set elements.

sets

The sets of this cartesian product as a tuple.

Methods

contains_all(other)

Test if all elements in other are contained in this set.

contains_set(other)

Test if other is a subset of this set.

element([inp])

Create a CartesianProduct element.

__init__(*sets)[source]

Initialize a new instance.