Skip to content

Composite DPs

Series

DPSeries dataclass

Bases: PrimitiveDP[object, object]

A series composition of two or more DPs.

Attributes:

Name Type Description
F

The functionality poset \(\F\)

R

The resources poset \(\R\)

subs list[PrimitiveDP[object, object]]

The list of DPs

Source code in src/act4e_mcdp/primitivedps.py
@dataclass(frozen=True)
class DPSeries(PrimitiveDP[object, object]):
    r"""
    A series composition of two or more DPs.

    Attributes:
        F: The functionality poset $\F$
        R: The resources poset $\R$
        subs: The list of DPs
    """

    subs: list[PrimitiveDP[object, object]]

Parallel (Tensor)

Feedback

DPLoop2 dataclass

Bases: Generic[F1, R1, M], PrimitiveDP[F1, R1]

Source code in src/act4e_mcdp/primitivedps.py
@dataclass(frozen=True)
class DPLoop2(Generic[F1, R1, M], PrimitiveDP[F1, R1]):
    r""" """
    dp: PrimitiveDP[tuple[F1, M], tuple[R1, M]]