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(self, other)

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

contains_set(self, other)

Test if other is a subset of this set.

element(self[, inp])

Create a CartesianProduct element.

__init__(self, \*sets)[source]

Initialize a new instance.