FiniteSet

class odl.set.sets.FiniteSet(*elements)[source]

Bases: odl.set.sets.Set

A set given by a finite number of elements.

Attributes
elements

The elements as a tuple.

examples

Generator creating name-value pairs of set elements.

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 new element.

__init__(self, \*elements)[source]

Initialize a new instance.

Parameters
element1, …, elementNSet

The elements in the set. Any duplicates are ignored.

Examples

>>> set = odl.FiniteSet(1, 'string')