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
戻り値の型:

bool

__init__(*args, **kwargs)
__iter__(self) ItemsView
戻り値の型:

ItemsView

__len__(self) int
戻り値の型:

int

__next__(self) tuple[Poly, float]
戻り値の型:

tuple[Poly, float]

class KeysView

View of keys in Values.

__bool__(self) bool
戻り値の型:

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
戻り値の型:

KeysView

__len__(self) int
戻り値の型:

int

__next__(self) Poly
戻り値の型:

Poly

class ValuesView

View of values in Values.

__bool__(self) bool
戻り値の型:

bool

__init__(*args, **kwargs)
__iter__(self) ValuesView
戻り値の型:

ValuesView

__len__(self) int
戻り値の型:

int

__next__(self) float
戻り値の型:

float

__bool__(self) bool
戻り値の型:

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
パラメータ:

arg (Poly)

戻り値の型:

float

__init__(*args, **kwargs)
__iter__(self) KeysView
戻り値の型:

KeysView

__len__(self) int
戻り値の型:

int

__repr__(self) str
戻り値の型:

str

__str__(self) str
戻り値の型:

str

items(self) ItemsView
戻り値の型:

ItemsView

keys(self) KeysView
戻り値の型:

KeysView

values(self) ValuesView
戻り値の型:

ValuesView