FiniteSet

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

Bases: 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(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 new element.

__init__(*elements)[source]

Initialize a new instance.

Parameters:
element1, ..., elementNSet

The elements in the set. Any duplicates are ignored.

Examples

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