pygrenade_vx.common.CartesianProductMultiIndexSequence

class pygrenade_vx.common.CartesianProductMultiIndexSequence

Bases: pygrenade_common.MultiIndexSequence

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pygrenade_common.CartesianProductMultiIndexSequence) -> None

  2. __init__(self: pygrenade_common.CartesianProductMultiIndexSequence, first: pygrenade_common.MultiIndexSequence, second: pygrenade_common.MultiIndexSequence) -> None

Construct sequence.

  1. __init__(self: pygrenade_common.CartesianProductMultiIndexSequence, arg0: pygrenade_common.CartesianProductMultiIndexSequence) -> None

Methods

__init__(*args, **kwargs)

Overloaded function.

copy(self)

dimensionality(self)

Get dimensionality of multi-indices in sequence.

distinct_projection(self, dimensions)

Get distinct projection of sequence onto given dimensions.

get_dimension_units(self)

Get dimension units.

get_elements(self)

Get elements in sequence.

get_first(self)

Get first sequence.

get_second(self)

Get second sequence.

includes(self, other)

Get whether all elements of other sequence are present in this sequence.

is_injective(self)

Get whether sequence of elements is injective.

move(self)

set_dimension_units(self, value)

Set dimension units.

set_first(self, value)

Set first sequence.

set_second(self, value)

Set second sequence.

size(self)

Get number of elements in sequence.

copy(self: pygrenade_common.CartesianProductMultiIndexSequence)pygrenade_common.MultiIndexSequence
dimensionality(self: pygrenade_common.CartesianProductMultiIndexSequence)int

Get dimensionality of multi-indices in sequence.

distinct_projection(self: pygrenade_common.CartesianProductMultiIndexSequence, dimensions: set[int])pygrenade_common.MultiIndexSequence

Get distinct projection of sequence onto given dimensions.

get_dimension_units(self: pygrenade_common.CartesianProductMultiIndexSequence)list[dapr::PropertyHolder<grenade::common::MultiIndexSequence::DimensionUnit, std::unique_ptr>]

Get dimension units.

get_elements(self: pygrenade_common.CartesianProductMultiIndexSequence)list[pygrenade_common.MultiIndex]

Get elements in sequence.

get_first(self: pygrenade_common.CartesianProductMultiIndexSequence)pygrenade_common.MultiIndexSequence

Get first sequence.

get_second(self: pygrenade_common.CartesianProductMultiIndexSequence)pygrenade_common.MultiIndexSequence

Get second sequence.

includes(self: pygrenade_common.CartesianProductMultiIndexSequence, other: pygrenade_common.MultiIndexSequence)bool

Get whether all elements of other sequence are present in this sequence. The dimension units are required to match in addition to set inclusion.

is_injective(self: pygrenade_common.CartesianProductMultiIndexSequence)bool

Get whether sequence of elements is injective. This is the case if all elements are distinct. For the cartesian product this is the case exactly if both the first and second sequence are injective.

move(self: pygrenade_common.CartesianProductMultiIndexSequence)pygrenade_common.MultiIndexSequence
set_dimension_units(self: pygrenade_common.CartesianProductMultiIndexSequence, value: list[dapr::PropertyHolder<grenade::common::MultiIndexSequence::DimensionUnit, std::unique_ptr>])None

Set dimension units.

set_first(self: pygrenade_common.CartesianProductMultiIndexSequence, value: pygrenade_common.MultiIndexSequence)None

Set first sequence.

set_second(self: pygrenade_common.CartesianProductMultiIndexSequence, value: pygrenade_common.MultiIndexSequence)None

Set second sequence.

size(self: pygrenade_common.CartesianProductMultiIndexSequence)int

Get number of elements in sequence.