ValuesΒΆ
- class ValuesΒΆ
Mapping from variables to numeric values in a solution.
Methods
- class KeysViewΒΆ
View of keys in
Values.- __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)ΒΆ
- class ValuesViewΒΆ
View of values in
Values.- __init__(*args, **kwargs)ΒΆ
- __iter__(self) ValuesViewΒΆ
- Return type:
- __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ΒΆ
Return the value of the variable.
- Parameters:
arg (Poly) β The variable to look up. It has to be a polynomial of one variable.
- Returns:
The value that the solution gives to the variable.
- Return type:
- Raises:
KeyError β The key is not a single variable, it comes from another
VariableGenerator, or the solution gives it no value.
- __init__(*args, **kwargs)ΒΆ
- values(self) ValuesViewΒΆ
- Return type: