ValuesΒΆ

class ValuesΒΆ

Mapping from variables to numeric values in a solution.

Methods

class ItemsViewΒΆ

View of key-value pairs in Values.

__bool__(self) boolΒΆ
Return type:

bool

__init__(*args, **kwargs)ΒΆ
__iter__(self) ItemsViewΒΆ
Return type:

ItemsView

__len__(self) intΒΆ
Return type:

int

__next__(self) tuple[Poly, float]ΒΆ
Return type:

tuple[Poly, float]

class KeysViewΒΆ

View of keys in Values.

__bool__(self) boolΒΆ
Return type:

bool

__contains__(self, arg: Poly, /) boolΒΆ
__contains__(self, arg: object, /) bool

__contains__

Overload 1.

Args:
  • arg (amplify.Poly)

Returns:

bool:

Overload 2.

Args:
  • arg (object)

Returns:

bool:

__init__(*args, **kwargs)ΒΆ
__iter__(self) KeysViewΒΆ
Return type:

KeysView

__len__(self) intΒΆ
Return type:

int

__next__(self) PolyΒΆ
Return type:

Poly

class ValuesViewΒΆ

View of values in Values.

__bool__(self) boolΒΆ
Return type:

bool

__init__(*args, **kwargs)ΒΆ
__iter__(self) ValuesViewΒΆ
Return type:

ValuesView

__len__(self) intΒΆ
Return type:

int

__next__(self) floatΒΆ
Return type:

float

__bool__(self) boolΒΆ
Return type:

bool

__contains__(self, arg: Poly, /) boolΒΆ
__contains__(self, arg: object, /) bool

__contains__

Overload 1.

Args:
  • arg (amplify.Poly)

Returns:

bool:

Overload 2.

Args:
  • arg (object)

Returns:

bool:

__getitem__(self, arg: Poly, /) floatΒΆ
Parameters:

arg (Poly)

Return type:

float

__init__(*args, **kwargs)ΒΆ
__iter__(self) KeysViewΒΆ
Return type:

KeysView

__len__(self) intΒΆ
Return type:

int

__repr__(self) strΒΆ
Return type:

str

__str__(self) strΒΆ
Return type:

str

items(self) ItemsViewΒΆ
Return type:

ItemsView

keys(self) KeysViewΒΆ
Return type:

KeysView

values(self) ValuesViewΒΆ
Return type:

ValuesView